
speckit-baseline
Generate feature specifications by analyzing existing source code.
- Installs
- 1.5K
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/dceoy/speckit-agent-skills --skill speckit-baseline- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads speckit-baseline automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Spec Kit Baseline Skill
When to Use
- You need a spec for existing or legacy code.
- You want to document a feature before refactoring.
- You inherited a codebase without written requirements.
Inputs
- A target path, file list, or glob pattern describing the code to analyze.
- Repo context with
.specify/scripts and templates.
If the target is missing or ambiguous, ask a focused question before continuing.
Goal
Generate a technology-agnostic spec for existing code, then create the feature branch/spec file using the standard Spec Kit templates.
Workflow
-
Parse target input: Identify files, directories, or patterns to analyze.
- Accept file paths, glob patterns, or directory paths.
- If empty: stop and ask for a concrete target.
-
Discover and read source files:
- Expand globs to a file list.
- Read file contents for analysis.
- Identify primary language(s) and frameworks.
- Map key file relationships and dependencies.
-
Analyze code structure:
- Identify entry points and public interfaces.
- Extract function/method signatures and behaviors.
- Find data models and entities.
- Detect API endpoints and routes.
- Identify user-facing functionality.
-
Generate a short name (2-4 words) from the analyzed code:
- Use action-noun format (e.g., "user-auth", "payment-processing").
- Base on primary functionality discovered.
- Preserve technical terms where meaningful.
-
Create the feature branch and spec file:
- Find the highest existing feature number for this short name (branches/specs).
- Run
.specify/scripts/bash/create-new-feature.sh --jsonwith the calculated number and short name. - Read BRANCH_NAME, FEATURE_DIR, and SPEC_FILE paths from the script JSON output.
- For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'''m Groot' (or double-quote if possible: "I'm Groot").
-
Load the spec template from
.specify/templates/spec-template.md. -
Draft the specification using the template structure:
- User Stories: Infer from user-facing code paths and interactions.
- Acceptance Scenarios: Derive from validation logic, error handling, and tests.
- Functional Requirements: Extract from business rules and constraints.
- Key Entities: Identify from data models and schemas.
- Success Criteria: Infer from metrics, logging, or performance-related code.
- Assumptions: Document inferences made during analysis.
-
Abstract implementation details:
- Convert technical patterns to user-focused requirements.
- Remove framework-specific terminology.
- Focus on WHAT the code does, not HOW it does it.
-
Create spec quality checklist at
FEATURE_DIR/checklists/requirements.md. -
Report completion with:
- Branch name and spec file path.
- Summary of analyzed files.
- Key features discovered.
- Areas needing clarification or review.
Outputs
specs/<feature>/spec.mdspecs/<feature>/checklists/requirements.md
Key rules
- Focus on extracting WHAT and WHY from HOW.
- Abstract away implementation details in the generated spec.
- Document assumptions made during code analysis.
- Flag areas where code behavior is unclear.
- Preserve discovered business rules and constraints.
- Use
[NEEDS CLARIFICATION]for ambiguous code sections (max 3). - Generated specs should be validated by someone who knows the feature.
Examples
Code Pattern → Spec Requirement:
if (user.role === 'admin')→ "System MUST restrict action to administrator users"password.length >= 8→ "Passwords MUST be at least 8 characters"cache.set(key, value, 3600)→ "System MUST cache results for improved performance"try { ... } catch (e) { notify(e) }→ "System MUST notify users when errors occur"
Code Pattern → User Story:
- Login endpoint with OAuth → "As a user, I can sign in using my social account"
- Shopping cart logic → "As a customer, I can add items to my cart for later purchase"
- Report generation → "As an analyst, I can generate reports on system activity"
Next Steps
After generating spec.md:
- Clarify with domain experts using speckit-clarify.
- Plan modernization/refactoring with speckit-plan.
- Compare the generated spec with actual requirements to identify gaps.
FAQ
What does the speckit-baseline skill do?
Generate feature specifications by analyzing existing source code.
How do I install speckit-baseline?
Run npx skills add https://github.com/dceoy/speckit-agent-skills --skill speckit-baseline in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/speckit-baseline/ (personal) or .claude/skills/speckit-baseline/ (project).
Which AI agents can use speckit-baseline?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is speckit-baseline safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains speckit-baseline?
It is published by dceoy in dceoy/speckit-agent-skills. It has 1,490 recorded installs.
More from dceoy/speckit-agent-skills
speckit-specify
dceoy/speckit-agent-skills
Create or update the feature specification from a natural language feature description.
speckit-plan
dceoy/speckit-agent-skills
Execute the implementation planning workflow using the plan template to generate design artifacts.
speckit-tasks
dceoy/speckit-agent-skills
Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.
speckit-implement
dceoy/speckit-agent-skills
Execute the implementation plan by processing and executing all tasks defined in tasks.md
speckit-constitution
dceoy/speckit-agent-skills
Create or update the project constitution from interactive or provided principle inputs.
speckit-clarify
dceoy/speckit-agent-skills
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
Popular ai & agents skills
google-agents-cli-publish
google/agents-cli
This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).
google-agents-cli-eval
google/agents-cli
This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).
skill-creator
anthropics/skills
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
codex-pet
prime-skills/runcomfy-agent-skills
Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.
full-output-enforcement
leonxlnx/taste-skill
Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.
executing-plans
obra/superpowers
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available