一键导入
intel
Refresh or query codebase intelligence (file graph, APIs, dependencies, architecture).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Refresh or query codebase intelligence (file graph, APIs, dependencies, architecture).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run multiple phases hands-free. Chains discuss, plan, build, and verify automatically.
Start a new project. Deep questioning, research, requirements, and roadmap.
Execute all plans in a phase. Spawns agents to build in parallel, commits atomically.
Configure settings: depth, model profiles, features, git, and gates.
Execute the next logical step automatically. No prompts, no decisions — just do it.
Systematic debugging with hypothesis testing. Persistent across sessions.
| name | intel |
| description | Refresh or query codebase intelligence (file graph, APIs, dependencies, architecture). |
| allowed-tools | Read, Write, Bash, Glob, Grep, Task, AskUserQuestion |
| argument-hint | [query <term>|refresh|status|diff] |
STOP -- DO NOT READ THIS FILE. You are already reading it. This prompt was injected into your context by Claude Code's plugin system. Using the Read tool on this SKILL.md file wastes tokens. Begin executing Step 0 immediately.
Before ANY tool calls, display this banner:
╔══════════════════════════════════════════════════════════════╗
║ PLAN-BUILD-RUN ► INTEL UPDATE ║
╚══════════════════════════════════════════════════════════════╝
Then proceed to Step 1.
Check if intel is enabled by reading .planning/config.json directly (do NOT use Bash for this -- config get throws on missing keys):
.planning/config.jsonintel.enabled is explicitly falsefalse, display:Intel system is disabled. Enable with: /pbr:config set intel.enabled true
Then STOP. Do not proceed further.
If enabled, not present, or no config file exists (all default to enabled), proceed to Step 2.
Parse the user's argument to determine the operation mode:
| Argument | Action |
|---|---|
query <term> | Run inline query (Step 2a) |
status | Run inline status check (Step 2b) |
diff | Run inline diff check (Step 2c) |
refresh or no argument | Spawn intel-updater agent (Step 3) |
Run:
pbr-tools intel query <term>
Format and display the results. Show matching entries grouped by intel file. If no results found, suggest running refresh first.
STOP after displaying results. Do not spawn an agent.
Run:
pbr-tools intel status
Format and display staleness info for each intel file. Show last update times and whether files exist.
STOP after displaying status. Do not spawn an agent.
Run:
pbr-tools intel diff
Format and display changes since the last full refresh. Show which files have changed and summary of differences.
STOP after displaying diff. Do not spawn an agent.
CRITICAL: Agent type rule -- ALWAYS use subagent_type: "pbr:intel-updater". NEVER use general-purpose or other non-PBR agent types. The PreToolUse hook will block non-PBR agents.
Spawn a Task with:
subagent_type: "pbr:intel-updater"pbr-tools is available as a bare command in PATHfocus: full (default) or focus: partial --files <paths> if user specified particular files.planning/intel/stack.json content (if it exists) for contextWait for agent completion.
After the agent completes, run:
pbr-tools intel status
Display a summary showing:
pbr:intel-updater