with one click
speckit-memorylint-apply
Spec-kit workflow command: speckit-memorylint-apply
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Spec-kit workflow command: speckit-memorylint-apply
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Use when a GitHub Pull Request has unresolved review threads, pending reviews, stale/outdated threads, local findings ingestion, or needs mandatory final-gate proof in one PR-scoped session.
Optional after-specify refinement gate. Bridges an installed obra/superpowers brainstorming skill into the active Spec Kit spec.md without creating a second design document or replacing speckit.specify.
Diagnose the five Superpowers disciplines used by Superb and report the focused hook and standalone-command contract.
Read-only implementation critique against active Spec Kit artifacts.
Apply systematic root-cause investigation to the current failing task.
Complete branch handoff after Spec Kit convergence and fresh checks.
| name | speckit-memorylint-apply |
| description | Spec-kit workflow command: speckit-memorylint-apply |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"memorylint:commands/apply.md"} |
$ARGUMENTS
You are the MemoryLint Apply Gate. Read a previously generated
memorylint-report.json, decide which fixes are eligible, apply only approved
changes, validate the result, and roll everything back if any validation fails.
Default behaviour is report-only. Never mutate files without explicit mode
selection or explicit approval.
| Mode | Behaviour |
|---|---|
report-only | Default. Re-display the report summary without making changes. |
apply-safe-fixes | Apply only high-confidence warning/info findings that include executable edits and stay inside safe-fix boundaries. |
apply-all-approved | Apply every explicitly approved finding after preview. |
Before modifying anything, run these checks in order:
memorylint-report.json
artifact or a raw JSON report. It must include schema_version: "1.0",
workspace_root, source_metadata, instruction_map, and findings.source_metadata. If any hash
differs, stop and report the stale file.apply-safe-fixes may only apply findings that meet all of these rules:
confidence: highseverity is info or warningeditssuggested_action is not moveSafe examples:
Unsafe in safe mode:
confidence: medium or confidence: low findingWhen a finding targets .specify/memory/constitution.md:
manual_handoff object as the handoff artifactThe handoff artifact must include:
target_pathtarget_sectionrule_textmerge_rationalerequires_human_reviewFor each approved finding:
edits from the report.If any validation fails, Rollback all changes from the current apply run.
AGENTS.md still has valid heading / list structure..specify/memory/constitution.md exists, compare the before/after rule
count.extension.yml, verify every hook command: still references a
command declared under provides.commands.git diff --check.On success, output:
## Apply Summary
| Metric | Value |
|--------|-------|
| Findings applied | |
| Files modified | |
| Lines changed | |
| Validations passed | |
| Validations failed | |
### Changes Applied
- ML-001: [brief description]
If any validation fails:
## Apply Failed — All Changes Reverted
### Validation Failures
- [which check failed]
### Reverted Files
- [file path]
### Recommendation
- Fix the underlying issue, regenerate the report if needed, and retry.
Rollback is atomic. Partial success is not allowed.
report-only unless the caller explicitly chooses a write mode.apply-safe-fixes is a strict subset of
apply-all-approved.