Agent skill · AI & Agents

context-gatherer

Phase 0.1 — Automatic codebase scan before PRD generation. Extracts key terms from the user prompt, searches the codebase for related files, identifies existing patterns, and generates context.md in the state directory.

majiayu000github.com/majiayu000GitHub ↗
claude-codecan modify filesMIT
Install
npx skills add majiayu000/claude-skill-registry --skill context-gatherer --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 7 KB
Bundled scripts: none
Allowed tools: -Read-Grep-Glob-Write-Bash(mkdir:*)
Path: skills/analysis/context-gatherer/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Context Gatherer Runs **automatically as Phase 0.1**, before `idea-explorer` asks its first question. Purpose: ground the entire spec in the actual codebase — not assumptions. ## Slug generation Derive `{slug}` from the user's prompt before doing anything else: 1. Lowercase the full prompt string 2. Remove punctuation 3. Split into words; skip stop words: `a an the to for of in with from and or but is are was` 4. Take the first 6 significant words 5. Join with hyphens; truncate to 60 characters **Example:** ``` Prompt: "Allow personal trainers to connect with students after checkout" Slug: allow-personal-trainers-connect-students-checkout ``` ## When to run - Always runs before the first `idea-explorer` question - If `.claude/feature-state/{slug}/context.md` already exists: **load it** (do not re-scan — resume flow) - Rerun from scratch only when explicitly asked ## Step 1: Extract key terms from the user prompt Parse the user's feature prompt for: - **Entities**: nouns that likely map to data models (e.g., "student", "trainer", "subscription") - **Actions**: verbs that describe behavior (e.g., "connect", "enroll", "notify", "list") - **Domain words**: business-specific terms (e.

What's inside
Steps it walks through
  1. Slug generation
  2. When to run
  3. Step 1: Extract key terms from the user prompt
  4. Step 2: Search the codebase for related files
  5. Step 3: Read project context files
  6. Step 4: Extract existing patterns
  7. Architecture patterns
  8. Naming conventions
  9. Similar features
  10. Existing entities related to the prompt
  11. Step 5: Generate context.md
  12. Step 6: Surface to user before first question
  13. Output location
Ships with 1 file
  • metadata.json
Commands it runs
mkdir -p .claude/feature-state/{slug}
More from claude-skill-registry
All skills →
About this skill
What does the context-gatherer skill do?

Phase 0.1 — Automatic codebase scan before PRD generation. Extracts key terms from the user prompt, searches the codebase for related files, identifies existing patterns, and generates context.md in the state directory.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill context-gatherer --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going