Skip to content
Development
Skill

/gsd-intel

Use when the user asks what the codebase intel knows, or runs /gsd-intel query, status, diff, or refresh. Queries or rebuilds the .planning/intel/ files, and stops with a disabled message when intel is off in .planning/config.json.

From plugin
coco
631200 skills53 agents42 commands3 hooks

Claude Code

$ npx -y skills add coco-research/coco --skill gsd-intel --agent claude-code

SKILL.md

gsd-intel.SKILL.md
name: gsd-intel
description: "Use when the user asks what the codebase intel knows, or runs /gsd-intel query, status, diff, or refresh. Queries or rebuilds the .planning/intel/ files, and stops with a disabled message when intel is off in .planning/config.json."
argument-hint: "[query <term>|status|diff|refresh]"
allowed-tools:
  - Read
  - Bash
  - Task

**STOP -- DO NOT READ THIS FILE. You are already reading it. This prompt was injected into your context by Claude Code's command system. Using the Read tool on this file wastes tokens. Begin executing Step 0 immediately.**

Step 0 -- Banner

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

GSD > INTEL

Then proceed to Step 1.

Step 1 -- Config Gate

Check if intel is enabled by reading `.planning/config.json` directly using the Read tool.

**DO NOT use the gsd-tools config get-value command** -- it hard-exits on missing keys.

1. Read `.planning/config.json` using the Read tool 2. If the file does not exist: display the disabled message below and **STOP** 3. Parse the JSON content. Check if `config.intel && config.intel.enabled === true` 4. If `intel.enabled` is NOT explicitly `true`: display the disabled message below and **STOP** 5. If `intel.enabled` is `true`: proceed to Step 2

**Disabled message:**

GSD > INTEL

Intel system is disabled. To activate:

  node $HOME/.claude/get-shit-done/bin/gsd-tools.cjs config-set intel.enabled true

Then run /gsd-intel refresh to build the initial index.

---

Step 2 -- Parse Argument

Parse `$ARGUMENTS` 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` | Spawn intel-updater agent (Step 3) | | No argument or unknown | Show usage message |

**Usage message** (shown when no argument or unrecognized argument):

GSD > INTEL

Usage: /gsd-intel <mode>

Modes:
  query <term>  Search intel files for a term
  status        Show intel file freshness and staleness
  diff          Show changes since last snapshot
  refresh       Rebuild all intel files from codebase analysis

Step 2a -- Query

Run:

node $HOME/.claude/get-shit-done/bin/gsd-tools.cjs intel query <term>

Parse the JSON output and display results:

  • If the output contains `"disabled": true`, display the disabled message from Step 1 and **STOP**
  • If no matches found, display: `No intel matches for '<term>'. Try /gsd-intel refresh to build the index.`
  • Otherwise, display matching entries grouped by intel file

**STOP** after displaying results. Do not spawn an agent.

Step 2b -- Status

Run:

node $HOME/.claude/get-shit-done/bin/gsd-tools.cjs intel status

Parse the JSON output and display each intel file with:

  • File name
  • Last `updated_at` timestamp
  • STALE or FRESH status (stale if older than 24 hours or missing)

**STOP** after displaying status. Do not spawn an agent.

Step 2c -- Diff

Run:

node $HOME/.claude/get-shit-done/bin/gsd-tools.cjs intel diff

Parse the JSON output and display:

  • Added entries since last snapshot
  • Removed entries since last snapshot
  • Changed entries since last snapshot

If no snapshot exists, suggest running `refresh` first.

**STOP** after displaying diff. Do not spawn an agent.

---

Step 3 -- Refresh (Agent Spawn)

Display before spawning:

GSD > Spawning intel-updater agent to analyze codebase...

Spawn a Task:

Task(
  description="Refresh codebase intelligence files",
  prompt="You are the gsd-intel-updater agent. Your job is to analyze this codebase and write/update intelligence files in .planning/intel/.

Project root: ${CWD}
gsd-tools path: $HOME/.claude/get-shit-done/bin/gsd-tools.cjs

Instructions:
1. Analyze the codebase structure, dependencies, APIs, and architecture
2. Write JSON intel files to .planning/intel/ (stack.json, api-map.json, dependency-graph.json, file-roles.json, arch-decisions.json)
3. Each file must have a _meta object with updated_at timestamp
4. Use gsd-tools intel extract-exports <file> to analyze source files
5. Use gsd-tools intel patch-meta <file> to update timestamps after writing
6. Use gsd-tools intel validate to check your output

When complete, output: ## INTEL UPDATE COMPLETE
If something fails, output: ## INTEL UPDATE FAILED with details."
)

Wait for the agent to complete.

---

Step 4 -- Post-Refresh Summary

After the agent completes, run:

node $HOME/.claude/get-shit-done/bin/gsd-tools.cjs intel status

Display a summary showing:

  • Which intel files were written or updated
  • Last update timestamps
  • Overall health of the intel index

---

Anti-Patterns

1. DO NOT spawn an agent for query/status/diff operations -- these are inline CLI calls 2. DO NOT modify intel files directly -- the agent handles writes during refresh 3. DO NOT skip the config gate check 4. DO NOT use the gsd-tools config get-value CLI for the config gate -- it exits on missing keys

Read more
@coco-research
Ships withcoco

495 personas across 13 departments, 229 skills[^installed] and 388 commands in the full catalog (coco 1.9.0, 2026-10-21). Agent skills, slash commands and subagents for Claude Code, Cursor, Codex and other AI coding agents.

631200 skills53 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
631
Star history of coco-research/coco on GitHub, a chart by star-history.com

Other skills on coco.

create-rule

create-rule

Create Cursor rules for persistent AI guidance. Use when the user wants to create a rule, add coding standards, set up project…

@coco-research@coco-researchInstall Skill
create-skill

create-skill

Guides users through creating effective Agent Skills for Cursor. Use when the user wants to create, write, or author a new skill,…

@coco-research@coco-researchInstall Skill
create-subagent

create-subagent

Create custom subagents for specialized AI tasks. Use when the user wants to create a new type of subagent, set up task-specific…

@coco-research@coco-researchInstall Skill
migrate-to-skills

migrate-to-skills

Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills…

@coco-research@coco-researchInstall Skill
agent-lightning

agent-lightning

Train and optimize AI agents using Microsoft's Agent Lightning framework with reinforcement learning. Use when setting up agent…

@coco-research@coco-researchInstall Skill

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.

skills2w309k
@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,…

ecc2w293k
@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…

react5d252k
@facebook@facebookInstall Skill

Questions about gsd-intel.

Which coding agents can use gsd-intel?
gsd-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.