بنقرة واحدة
speckit-discovery-codebase
Assess legacy codebase risks, reusable assets, constraints, and integration hazards.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Assess legacy codebase risks, reusable assets, constraints, and integration hazards.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Wrap core analysis with behavior-first vertical consistency checks.
Apply approved architecture refactors by updating plan and task artifacts directly.
Perform a framework-agnostic architecture review validating implementation against spec.md, plan.md, tasks.md, and the governance and architecture constitutions.
Perform an architecture-aware verification gate validating implementation against spec.md, plan.md, tasks.md, and the Architecture Constitution.
Run a single architecture workflow that prefers memory-first context and can incorporate security review when available.
Run implementation with memory context, then review the produced implementation against security and architecture constraints.
| name | speckit-discovery-codebase |
| description | Assess legacy codebase risks, reusable assets, constraints, and integration hazards. |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"discovery:commands/codebase.md"} |
$ARGUMENTS
The user may provide:
Infer optional fields only from repository context and conversation, and label all inferred values as assumptions. Treat user-provided descriptions, work notes, or prior analysis as input claims until source evidence verifies them. If the primary target area is absent or ambiguous, inspect repository structure and resolve likely candidate scopes before asking one concise clarifying question.
1. Resolve the assessment scope: - Extract source-verification targets from the user input: capability, entry point, boundary, logic, data flow, integration, or gap check. - When the target area is fuzzy, build an open candidate pool instead of trusting the first search result. - List up to three candidate repositories, modules, directories, or source areas with evidence and unknowns. - Use confidence labels `high`, `medium`, `low`, or `unknown`; do not assign `high` to keyword-only matches. - Distinguish scope confidence from behavior proof. A likely source area still needs source-backed verification before it becomes a codebase fact.Probe available evidence capabilities:
Map the relevant codebase area:
Normalize source-backed findings:
Identify planning-relevant outcomes:
Create or update legacy-codebase-risk-assessment.md by rendering .specify/templates/legacy-codebase-risk-assessment.md. Prefer the active feature directory when it exists. Otherwise create it under discovery/<short-name>/legacy-codebase-risk-assessment.md. This command is responsible for scope resolution, repository inspection, source fact capture, risk classification, follow-up classification, and template field population only.
Rate each risk as:
lowmediumhighunknownRecommend whether follow-up /speckit.discovery.poc, /speckit.discovery.feasibility, or /speckit.discovery.techselect work is needed before formal planning.