home/common/ai/resources/codex/gsd/skills/gsd-intel/SKILL.md
Query, inspect, or refresh codebase intelligence files in .planning/intel/
npx skillsauth add kamushadenes/nix gsd-intelInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
<codex_skill_adapter>
$gsd-intel.$gsd-intel as {{GSD_ARGS}}.{{GSD_ARGS}} as empty.GSD workflows use AskUserQuestion (Claude Code syntax). Translate to Codex request_user_input:
Parameter mapping:
header → headerquestion → question"Label" — description → {label: "Label", description: "description"}id from header: lowercase, replace spaces with underscoresBatched calls:
AskUserQuestion([q1, q2]) → single request_user_input with multiple entries in questions[]Multi-select workaround:
multiSelect. Use sequential single-selects, or present a numbered freeform list asking the user to enter comma-separated numbers.Execute mode fallback:
request_user_input is rejected (Execute mode), present a plain-text numbered list and pick a reasonable default.GSD workflows use Task(...) (Claude Code syntax). Translate to Codex collaboration tools:
Direct mapping:
Task(subagent_type="X", prompt="Y") → spawn_agent(agent_type="X", message="Y")Task(model="...") → omit (Codex uses per-role config, not inline model selection)fork_context: false by default — GSD agents load their own context via <files_to_read> blocksParallel fan-out:
wait(ids) for all to completeResult parsing:
CHECKPOINT, PLAN COMPLETE, SUMMARY, etc.close_agent(id) after collecting results from each agent
</codex_skill_adapter>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.
Before ANY tool calls, display this banner:
GSD > INTEL
Then proceed to Step 1.
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.
.planning/config.json using the Read toolconfig.intel && config.intel.enabled === trueintel.enabled is NOT explicitly true: display the disabled message below and STOPintel.enabled is true: proceed to Step 2Disabled message:
GSD > INTEL
Intel system is disabled. To activate:
node /private$HOME/.codex/get-shit-done/bin/gsd-tools.cjs config-set intel.enabled true
Then run /gsd-intel refresh to build the initial index.
Parse {{GSD_ARGS}} 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
Run:
node /private$HOME/.codex/get-shit-done/bin/gsd-tools.cjs intel query <term>
Parse the JSON output and display results:
"disabled": true, display the disabled message from Step 1 and STOPNo intel matches for '<term>'. Try /gsd-intel refresh to build the index.STOP after displaying results. Do not spawn an agent.
Run:
node /private$HOME/.codex/get-shit-done/bin/gsd-tools.cjs intel status
Parse the JSON output and display each intel file with:
updated_at timestampSTOP after displaying status. Do not spawn an agent.
Run:
node /private$HOME/.codex/get-shit-done/bin/gsd-tools.cjs intel diff
Parse the JSON output and display:
If no snapshot exists, suggest running refresh first.
STOP after displaying diff. Do not spawn an agent.
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: /private$HOME/.codex/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.
After the agent completes, run:
node /private$HOME/.codex/get-shit-done/bin/gsd-tools.cjs intel status
Display a summary showing:
data-ai
Show MemPalace status — room counts, storage usage, and palace health.
tools
Search your MemPalace — semantic search across all mined memories, projects, and conversations.
tools
Mine a project or conversation into your MemPalace — extract and store memories for later retrieval.
development
Initialize a new MemPalace — guided setup for your AI memory palace with ChromaDB backend.