Claude-skill-registry existing-solution-map
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/existing-solution-map" ~/.claude/skills/majiayu000-claude-skill-registry-existing-solution-map && rm -rf "$T"
manifest:
skills/data/existing-solution-map/SKILL.mdsource content
Existing Solution Map — Agent Instructions
Invocation
Where:/existing-solution-map <IDEA_ID> [--epic EPIC-00X]
(single token; no spaces)IDEA_REF = $ARGUMENTS- Optional
narrows the map to one epic’s features.--epic EPIC-00X
If missing, STOP.
Resolve IDEA_ID (required)
Before using any paths:
- Call
withvf.resolve_idea_ididea_ref = $ARGUMENTS - Store returned
asidea_idIDEA_ID
Goal
Create an actionable map of “what already exists†in the repo for this idea (or for one epic), so that downstream task generation can be extension-oriented and avoid duplicate subsystems.
This artifact is treated as a required input for task generation.
Canonical paths (repo-relative)
Inputs (required):
docs/forge/ideas/<IDEA_ID>/latest/concept_summary.md
(preferred) ordocs/forge/ideas/<IDEA_ID>/latest/features_backlog.md
(fallback)latest/features.md
Optional inputs:
(to resolve epic→feature grouping)docs/forge/ideas/<IDEA_ID>/latest/epics_backlog.md
(if present; use it)docs/forge/ideas/<IDEA_ID>/latest/codebase_context.md
Outputs:
docs/forge/ideas/<IDEA_ID>/latest/existing_solution_map.md- Run snapshot:
docs/forge/ideas/<IDEA_ID>/runs/<RUN_ID>/outputs/existing_solution_map.md
Logs:
docs/forge/ideas/<IDEA_ID>/run_log.md
Method (generic, reuse-first)
- Read concept summary + features backlog.
- If --epic is provided:
- Restrict scope to features that belong to that epic (based on epics backlog if available).
- Identify the main capability areas implied by the features (e.g., API, state, UI, orchestration, logging).
- For each capability area, search the repo for existing implementations:
- find current entrypoints, handlers/controllers/routers, state models, UI components
- find any existing event/message/logging mechanism
- find existing configs/policies that constrain the design
- Produce:
- Reuse decisions: what to extend, what not to duplicate
- Touch list: concrete files/modules likely to change
- Gap list: what truly does not exist yet (and where new code may be acceptable)
- Keep it actionable but not bloated:
- aim for 15–40 touch list entries for a large repo
- attach a short reason to each
Output format: existing_solution_map.md
Write with YAML header + sections.
YAML header shape:
doc_type: existing_solution_map idea_id: "<IDEA_ID>" run_id: "<RUN_ID>" generated_by: "Existing Solution Map" generated_at: "<ISO-8601>" scope: epic: "<EPIC-00X or ALL>" inputs_used:
- "docs/forge/ideas/<IDEA_ID>/latest/concept_summary.md"
- "docs/forge/ideas/<IDEA_ID>/latest/features_backlog.md (or features.md)"
- "docs/forge/ideas/<IDEA_ID>/latest/codebase_context.md (if used)" status: "Draft"
Existing Solution Map
Scope
- Idea: <IDEA_ID>
- Epic scope: <ALL or EPIC-00X>
- Features included: list IDs/titles processed
Existing “happy path†flow (as implemented today)
(Short description; if unknown, say so and reference where you looked)
Reuse-first decisions (hard rules)
- Extend <component/pattern>; do NOT create a parallel <thing>
- Reuse <model/state> as the source of truth
- Keep <interface> stable unless explicitly required
Key extension points (by capability area)
API/endpoint layer
- Existing: ...
- Extend by: ...
- Watch-outs: ...
Core logic / domain layer
- Existing: ...
- Extend by: ...
Models / state / schemas
- Existing: ...
- Reuse by: ...
UI layer
- Existing: ...
- Extend by: ...
Orchestration / simulation (if relevant)
- Existing: ...
- Extend by: ...
Testing
- Existing test patterns: ...
- Where to add tests: ...
Touch list (concrete)
List in priority order:
- <path-or-module> — reason — expected change type (extend/modify/add small helper)
Gaps / missing pieces
- Gap: ... — recommended minimal new module (if needed) — constraints
Risks of duplication / overlap
- Risk: ... — mitigation
Search breadcrumbs
Keywords/phrases that reliably find the relevant areas:
- keyword: ...
Required tool calls
- vf.start_run with idea_id=<IDEA_ID> (label: existing-solution-map)
- Write run snapshot to runs/<RUN_ID>/outputs/existing_solution_map.md
- Write latest to latest/existing_solution_map.md
- Append a run_log entry with stage codebase.existing_solution_map and outputs.