Android 工程内统一 WebView 远程调试开关。android-webview-debug-enable 将 setWebContentsDebuggingEnabled 全部设为 true 并记录修改位置与修改前内容;android-webview-debug-revert 按记录恢复,与记录不符的项在最后列出并等待人工确认。适用于需要统一开启或恢复 WebView 调试的 Android 项目。
From open-skillsnpx claudepluginhub fudesign2008/open-skills --plugin open-skillsThis skill uses the workspace's default tool permissions.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Generates FastAPI project templates with async routes, dependency injection, Pydantic schemas, repository patterns, middleware, and config for PostgreSQL/MongoDB backends.
setWebContentsDebuggingEnabled 改为 true,并记录修改位置与修改前内容,供后续 revert 使用。.android-webview-debug-state.json。{
"version": 1,
"createdAt": "ISO8601",
"projectRoot": "/absolute/path/to/project",
"entries": [
{
"file": "app/src/main/java/.../CoreWebView.kt",
"line": 42,
"original": "setWebContentsDebuggingEnabled(AppContext.isDebug())",
"replaced": "setWebContentsDebuggingEnabled(true)"
}
]
}
true 的不写入 entries)。建议将 .android-webview-debug-state.json 加入 .gitignore,避免误提交。setWebContentsDebuggingEnabled(含注释行),列出所有出现位置。.android-webview-debug-state.json,先提示「已有 enable 记录,是否覆盖并继续?」待用户确认后再覆盖。entries,写入 .android-webview-debug-state.json(路径为工程根目录)。setWebContentsDebuggingEnabled(true);默认不修改被注释的调用,除非用户明确说「连注释的也改」或「取消注释」。.android-webview-debug-state.json。若不存在则提示「未找到 enable 记录,无法执行 revert」并结束。replaced 比较(或判断是否包含 setWebContentsDebuggingEnabled(true))。original(恢复为修改前内容)。setWebContentsDebuggingEnabled 调用;用户可一句话覆盖(如「注释的也改」)。setWebContentsDebuggingEnabled 应为 true,且根目录存在 .android-webview-debug-state.json 且 entries 与本次修改一一对应。original 一致;与记录不符的项已列出并经用户确认处理。