@majiayu000/codebase-context
BThis repo contains the archived skill contents (the heavy, browsable skill files).
Install
agr install @majiayu000/codebase-context --target claudeWrites 2 files into .claude/skills/, pinned to git-d8f00f70.
- .claude/skills/codebase-context/SKILL.md
- .claude/skills/codebase-context/metadata.json
Document
name: Codebase context description: Create a lightweight codebase_context.md that anchors the idea in the existing repo (modules, constraints, extension points). Generic framework prompt. argument-hint: "<IDEA_ID> (example: IDEA-0003_my-idea)" disable-model-invocation: true
Codebase Context — Agent Instructions
Invocation
/codebase-context <IDEA_ID>Where:IDEA_REF = $ARGUMENTS(single token; no spaces)
If missing, STOP.
Resolve IDEA_ID (required)
Before using any paths:
- Call
vf.resolve_idea_idwithidea_ref = $ARGUMENTS - Store returned
idea_idasIDEA_ID - Use
IDEA_IDfor all paths and YAML headers
Goal
Produce a lightweight, durable “map†of the existing codebase relevant to this idea, focusing on:
- where to extend vs create
- major boundaries (API layer, core logic, models/state, UI, tests)
- any constraints/invariants implied by the current architecture
This is NOT a full survey and NOT a task list. It is an early anchor to prevent greenfield assumptions.
Canonical paths (repo-relative)
Idea root:
docs/forge/ideas/<IDEA_ID>/
Inputs (required):
docs/forge/ideas/<IDEA_ID>/latest/concept_summary.mddocs/forge/ideas/<IDEA_ID>/inputs/concept_summary_config.mdFallback/optional:docs/forge/ideas/<IDEA_ID>/latest/idea_normalized.mddocs/forge/ideas/<IDEA_ID>/inputs/idea.md
Outputs:
docs/forge/ideas/<IDEA_ID>/latest/codebase_context.md- Run snapshot:
docs/forge/ideas/<IDEA_ID>/runs/<RUN_ID>/outputs/codebase_context.md
Logs:
docs/forge/ideas/<IDEA_ID>/run_log.md
Method (generic, repo-aware)
- Read the concept summary (primary semantic anchor).
- Identify which kinds of components are likely involved:
- API endpoints / controllers / routers
- core domain logic / services
- data models / schemas / state
- UI components
- orchestration / simulation engine (if applicable)
- tests and fixtures
- Do a targeted scan of the repo to find:
- existing entry points matching the feature area (e.g., control/admin/simulation/session/etc.)
- existing patterns for request/response models and state persistence
- existing “config†or “policy†mechanisms that constrain behavior
- Capture only the minimum necessary file/module references (10–25 max):
- keep it stable, not exhaustive
- Write the output artifact.
If you are unsure where something lives, state it as a hypothesis + provide search cues (keywords to grep), rather than inventing file paths.
Output format: codebase_context.md
Write with YAML header + sections.
YAML header shape:
doc_type: codebase_context idea_id: "<IDEA_ID>" run_id: "<RUN_ID>" generated_by: "Codebase Context" generated_at: "" sources:
- "docs/forge/ideas/<IDEA_ID>/latest/concept_summary.md"
- "docs/forge/ideas/<IDEA_ID>/latest/idea_normalized.md (if used)" status: "Draft"
Codebase Context
Purpose of this map
(1 short paragraph)
High-level architecture boundaries (as observed)
- Boundary: ... — responsibility — notes
Likely extension points
- Area: ... — existing component(s) — recommended extension approach
Key existing concepts to reuse
- Concept/Model: ... — where it exists — why it matters
Constraints implied by current architecture
- Constraint: ... — evidence — impact
Candidate file/module touch list (max ~25)
List as bullets with a short reason:
- — why it’s relevant
Unknowns / where to look next
- Unknown: ... — suggested keywords or search locations
Required tool calls
- vf.start_run with idea_id=<IDEA_ID> (label: codebase-context)
- Write run snapshot to runs/<RUN_ID>/outputs/codebase_context.md
- Write latest to latest/codebase_context.md
- Append a run_log entry with stage codebase.context and outputs.
Repository README
Describes majiayu000/claude-skill-registry-data as a whole, which may contain artifacts other than this one. Where this artifact had no useful description of its own, its summary was taken from here.
Claude Skill Registry (Data)
This repo contains the archived skill contents (the heavy, browsable skill files).
Canonical layout
- Category folders at repo root (e.g.
development/,documents/,data/, ...) - Each skill lives under a category:
<category>/<skill>/SKILL.md+<category>/<skill>/metadata.json - Case conflicts are resolved with
{name}-{owner}-{repo}suffixes (fallback:-{short-hash}).
Archive status
- Live badges above are sourced from
claude-skill-registry-corestats.json. - Counts in this README are intentionally dynamic, not hardcoded.
- If the badges look stale, refresh the
corebuild/index pipeline rather than editing numbers here.
Where the index + site live
- Core repo: https://github.com/majiayu000/claude-skill-registry-core
- Main repo (merged publish artifact): https://github.com/majiayu000/claude-skill-registry
Trustgrade B
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- warnLicenseno SPDX license detected
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.
Versions
git-d8f00f70436c2026-07-31