| name | speckit-memory |
| description | Capture stable lessons from a speckit run into persistent project memory and create/update helper skills when repeated repo-specific workflows emerge. |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"automata-cli"} |
User Input
$ARGUMENTS
Use any user-provided notes as additional context, but do not require them.
Goal
Persist reusable lessons from the current speckit-full execution so the next run starts with better repo-specific context and less friction.
Write durable memory to .specify/memory/speckit-memory.md. Create or update a helper skill under .agents/skills/ only when a repeated repo-specific workflow is stable enough to deserve its own instructions.
What Belongs In Memory
Record only information that is likely to help future runs:
- Stable project defaults repeatedly chosen during autonomous execution
- Repo-specific implementation patterns that beat generic defaults
- Process friction and the reliable way around it
- Reviewer or documentation expectations that should influence future runs
- Reusable multi-step workflows that are better captured as helper skills
Do not record:
- Feature-specific business requirements
- Temporary branch names, PR URLs, or one-off timestamps
- File-by-file implementation diaries
- Incidents that are unlikely to recur
- Anything contradicted by current code,
AGENTS.md, or .specify/memory/constitution.md
Outline
-
Resolve the active feature with .specify/scripts/bash/check-prerequisites.sh --json --paths-only.
-
Read only the artifacts needed to extract durable lessons:
.specify/memory/constitution.md
AGENTS.md
- Existing
.specify/memory/speckit-memory.md if present
- Active feature
spec.md, plan.md, tasks.md
research.md, pr-report.md, and spec-decisions.md if present
- The current diff or completed-task state when useful to confirm what actually worked
-
Extract candidate lessons and classify each one:
keep: stable and reusable
promote: stable enough for a helper skill
drop: too specific, stale, or noisy
-
If .specify/memory/speckit-memory.md does not exist, create it from .specify/templates/speckit-memory-template.md.
-
Update the memory file by section:
## Autonomous Defaults
## Implementation Patterns
## Process Friction
## Helper Skills
-
Use concise bullets in this format:
- **<topic>**: <rule or preferred action>. Why: <short rationale>. Confirmed: <YYYY-MM-DD>.
-
De-duplicate semantically similar bullets, refresh the Confirmed date for surviving entries, and remove entries that are now contradicted.
-
Keep the file lean:
- Prefer updating an existing bullet over adding a near-duplicate
- Keep each section short and high-signal
- If a section grows noisy, collapse repeated details into one stronger rule
Helper Skill Promotion Rule
Create or update a helper skill only if all of the following are true:
- The workflow is likely to recur across multiple features
- It contains at least three ordered steps, branching rules, or tool-specific gotchas
- A short bullet in memory would be insufficient guidance
- The workflow can be described without feature-specific product details
When promoting:
- Create or update
.agents/skills/<skill-name>/SKILL.md
- Keep the helper skill narrow and procedural
- Reference
.specify/memory/speckit-memory.md only when needed; do not copy large memory sections into the skill
- Add or refresh a matching bullet in the memory file's
## Helper Skills section
If a candidate workflow does not meet the bar, keep it as a memory bullet instead of creating a new skill.
Output
Report:
- Memory file path
- Bullets added, updated, or removed
- Helper skills created or updated
- Any candidate lessons intentionally discarded as too specific