Skip to content
Development
Skill

/intel

Refresh or query codebase intelligence (file graph, APIs, dependencies, architecture).

From plugin
plan-build-run
1847 skills18 agents70 commands

Claude Code

$ npx -y skills add SienkLogic/plan-build-run --skill intel --agent claude-code

SKILL.md

intel.SKILL.md
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.**

Step 0 -- Banner

**Before ANY tool calls**, display this banner:

╔══════════════════════════════════════════════════════════════╗
║  PLAN-BUILD-RUN ► INTEL UPDATE                              ║
╚══════════════════════════════════════════════════════════════╝

Then proceed to Step 1.

Step 1 -- Config Gate

Check if intel is enabled by reading `.planning/config.json` directly (do NOT use Bash for this -- `config get` throws on missing keys):

1. Read `.planning/config.json` 2. Check if `intel.enabled` is explicitly `false` 3. If `false`, 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.

---

Step 2 -- Parse Argument

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) |

Step 2a -- Query

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.

Step 2b -- Status

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.

Step 2c -- Diff

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.

---

Step 3 -- Refresh (Agent Spawn)

**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"`
  • Spawn prompt containing:
  • `pbr-tools` is available as a bare command in PATH
  • `focus: full` (default) or `focus: partial --files <paths>` if user specified particular files
  • Project root path (current working directory)
  • Any existing `.planning/intel/stack.json` content (if it exists) for context

Wait for agent completion.

---

Step 4 -- Post-Refresh Summary

After the agent completes, run:

pbr-tools intel status

Display a summary showing:

  • Which intel files were written/updated
  • Last update timestamps
  • Brief overview of what was discovered

---

Anti-Patterns

1. DO NOT spawn an agent for query/status/diff operations -- these are inline CLI calls 2. DO NOT read agent .md files -- auto-loaded via subagent_type 3. DO NOT modify intel files directly -- the agent handles writes 4. DO NOT skip the config gate check 5. DO NOT use general-purpose agents -- always use `pbr:intel-updater`

Read more
@sienklogic
Ships withplan-build-run

Plan it. Build it. Run it. A Claude Code plugin for structured development with context-engineered agents.

1847 skills18 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
18
Star history of SienkLogic/plan-build-run on GitHub, a chart by star-history.com

Other skills on plan-build-run.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc11d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about intel.

Which coding agents can use intel?
intel installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.