speckit-tinyspec-tinyspec
Generate a single lightweight spec file with context, plan, and tasks for small changes
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- speckit-tinyspec-tinyspec
- metadata
- { "author": "github-spec-kit", "source": "tinyspec:commands/speckit.tinyspec.md" }
- description
- Generate a single lightweight spec file with context, plan, and tasks for small changes
- compatibility
- Requires spec-kit project structure with .specify/ directory
03 SKILL.md 正文
TinySpec
Generate a single lightweight specification file for small tasks that don't warrant the full SDD workflow. Combines context, requirements, implementation plan, and tasks into one concise document — minimal overhead, maximum clarity.
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty). The user describes the small change they want to make (e.g., "add a logout button to the navbar", "fix the date format in the invoice PDF", "add input validation to the signup form").
Prerequisites
- Verify a spec-kit project exists by checking for
.specify/directory - Verify git is available and the project is a git repository
- Verify the user has described the change (if not, ask what they want to build)
Outline
-
Assess scope: Quickly evaluate whether this task is appropriate for tinyspec:
- Good fit: Single feature, bug fix, UI tweak, config change, small refactor — anything that touches 1-5 files and takes under ~1 hour
- Bad fit: Multi-module features, architectural changes, new services, database schema redesigns — recommend full
/speckit.specifyinstead - If the task seems too large, warn the user and suggest the full workflow
-
Identify affected files: Scan the codebase to determine:
- Which files will be modified (list them explicitly)
- Which files provide context (imports, types, related components)
- Which test files will need updates
-
Generate tinyspec file: Create a single file at
specs/tiny/{feature-name}.mdwith this structure:# TinySpec: {Title} **Branch**: {current-branch or new-branch-name} **Date**: {YYYY-MM-DD} **Status**: draft **Complexity**: small ## North-star case - **Failure moved**: {stopped when it shouldn't | ran and produced garbage | ran but needed the owner} - **Number that shows it**: {the loop-health / scorecard read and its current value} - **Cut when**: {the observation under which this change is deleted} ## What {1-3 sentence description of what this change does and why} ## Context | File | Role | |------|------| | `src/components/Navbar.tsx` | Will be modified — add logout button | | `src/hooks/useAuth.ts` | Context — provides logout function | | `src/components/Navbar.test.tsx` | Will be modified — add test for logout | ## Requirements 1. {Requirement 1 — clear, testable} 2. {Requirement 2} 3. {Requirement 3} ## Plan 1. {Step 1 — what to change and where} 2. {Step 2} 3. {Step 3} ## Tasks - [ ] {Task 1} - [ ] {Task 2} - [ ] {Task 3} - [ ] {Test task} ## Done When - [ ] All tasks checked off - [ ] Tests pass - [ ] No lint errors -
Report:
# TinySpec Created | Field | Value | |-------|-------| | **File** | `specs/tiny/{feature-name}.md` | | **Tasks** | {N} tasks | | **Files affected** | {N} files | ## Next Steps - Review the tinyspec at `specs/tiny/{feature-name}.md` - Run `/speckit.tinyspec.implement` to build it - Or implement manually — the spec is your checklist
Rules
- One file only — never generate separate spec.md, plan.md, tasks.md for tinyspec
- Keep it short — the entire tinyspec should be under 80 lines
- No boilerplate — skip sections that add no value for this specific task
- Concrete file references — always list the actual files that will be changed
- Testable requirements — every requirement must be verifiable
- Warn on scope creep — if the task grows beyond 5 files or 10 tasks, recommend upgrading to full SDD
- Respect constitution — follow project conventions from
.specify/memory/constitution.md
04 同仓库更多 Skills
diagnosing-bugs
Use when a test, build or CI check is red and the cause is not obvious from its log.
speckit-verify-tasks
Verify tasks marked [X] in tasks.md are implemented, not phantom completions (marked done but backed by missing or dead code).
speckit-verify-tasks-run
Verify tasks marked [X] in tasks.md are implemented, not phantom completions (marked done but backed by missing or dead code).
speckit-trace-report
暂无简介
speckit-trace-orphans
暂无简介
speckit-trace-gaps
暂无简介