agent-manifesto-kit 0.0.0-development → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +159 -95
  3. package/collection/NOTICE.md +36 -36
  4. package/collection/agents/code-reviewer.md +103 -103
  5. package/collection/agents/docs-manager.md +127 -127
  6. package/collection/bundles/kit-adopt/README.md +36 -36
  7. package/collection/bundles/kit-adopt/conventions/recommended-companions.md +43 -43
  8. package/collection/bundles/kit-adopt/pipelines/kit-adopt.md +52 -52
  9. package/collection/bundles/kit-adopt/skills/kit-adopt/SKILL.md +72 -72
  10. package/collection/bundles/qa-automation/README.md +48 -0
  11. package/collection/bundles/qa-automation/RECOMMENDS.md +19 -0
  12. package/collection/bundles/qa-automation/agents/qa-explorer.md +55 -0
  13. package/collection/bundles/qa-automation/agents/qa-test-reviewer.md +71 -0
  14. package/collection/bundles/qa-automation/conventions/qa-verification.md +50 -0
  15. package/collection/bundles/qa-automation/pipelines/qa-test-debug.md +66 -0
  16. package/collection/bundles/qa-automation/pipelines/qa-test-from-spec.md +65 -0
  17. package/collection/bundles/qa-automation/skills/qa-playwright-cli/SKILL.md +83 -0
  18. package/collection/bundles/qa-automation/skills/qa-test-debugger/SKILL.md +60 -0
  19. package/collection/bundles/qa-automation/skills/qa-test-writer/SKILL.md +60 -0
  20. package/collection/bundles/sdd/README.md +50 -50
  21. package/collection/bundles/sdd/RECOMMENDS.md +21 -21
  22. package/collection/bundles/sdd/agents/sdd-gap-analyzer.md +79 -79
  23. package/collection/bundles/sdd/agents/sdd-spec-reviewer.md +75 -75
  24. package/collection/bundles/sdd/conventions/sdd-doc-set.md +136 -136
  25. package/collection/bundles/sdd/pipelines/sdd-adopt.md +60 -60
  26. package/collection/bundles/sdd/pipelines/sdd-bootstrap.md +60 -60
  27. package/collection/bundles/sdd/skills/sdd-doc-author/SKILL.md +69 -69
  28. package/collection/bundles/sdd/skills/sdd-feature-author/SKILL.md +71 -71
  29. package/collection/bundles/sdd/skills/sdd-index-sync/SKILL.md +61 -61
  30. package/collection/bundles/sdd/templates/docs/INDEX.md +35 -35
  31. package/collection/bundles/sdd/templates/docs/api.md +23 -23
  32. package/collection/bundles/sdd/templates/docs/architecture.md +42 -42
  33. package/collection/bundles/sdd/templates/docs/db.md +22 -22
  34. package/collection/bundles/sdd/templates/docs/decisions/ADR-template.md +24 -24
  35. package/collection/bundles/sdd/templates/docs/design.md +43 -43
  36. package/collection/bundles/sdd/templates/docs/idea.md +46 -46
  37. package/collection/bundles/sdd/templates/docs/operations.md +28 -28
  38. package/collection/bundles/sdd/templates/docs/roadmap.md +26 -26
  39. package/collection/bundles/sdd/templates/docs/security.md +24 -24
  40. package/collection/bundles/sdd/templates/docs/testing.md +34 -34
  41. package/collection/bundles/sdd/templates/features/F000_template/requirements.md +38 -38
  42. package/collection/bundles/sdd/templates/features/F000_template/scenarios.md +26 -26
  43. package/collection/bundles/sdd/templates/features/F000_template/tasks.md +11 -11
  44. package/collection/skills/brainstorm/SKILL.md +46 -46
  45. package/collection/skills/business-analyst/SKILL.md +58 -58
  46. package/collection/skills/documentation-maintenance/SKILL.md +60 -60
  47. package/collection/skills/explain-code/SKILL.md +81 -81
  48. package/collection/skills/frontend-audit/SKILL.md +135 -135
  49. package/collection/skills/frontend-impeccable-design/SKILL.md +135 -135
  50. package/collection/skills/frontend-impeccable-polish/SKILL.md +118 -118
  51. package/collection/skills/implement-feature/SKILL.md +99 -99
  52. package/collection/skills/memory-management/SKILL.md +75 -75
  53. package/collection/skills/meta-tags-optimizer/SKILL.md +73 -73
  54. package/collection/skills/pencil-design/SKILL.md +83 -83
  55. package/collection/skills/playwright-cli/SKILL.md +104 -104
  56. package/collection/skills/prepare-release-notes/SKILL.md +109 -109
  57. package/collection/skills/refactor-code/SKILL.md +104 -104
  58. package/collection/skills/review-code/SKILL.md +98 -98
  59. package/collection/skills/schema-markup-generator/SKILL.md +80 -80
  60. package/collection/skills/task-complete/SKILL.md +79 -79
  61. package/collection/skills/task-discovery/SKILL.md +69 -69
  62. package/collection/skills/task-validation/SKILL.md +71 -71
  63. package/collection/skills/test-review/SKILL.md +72 -72
  64. package/collection/skills/test-writer/SKILL.md +78 -78
  65. package/collection/skills/work-with-git/SKILL.md +154 -154
  66. package/dist/cli.js +31 -22
  67. package/dist/commands/adopt.js +240 -40
  68. package/dist/providers.js +3 -6
  69. package/package.json +48 -49
@@ -1,118 +1,118 @@
1
- ---
2
- name: frontend-impeccable-polish
3
- description: Final-pass visual and interaction polish for an already-built frontend UI before shipping. Use when the user asks to polish, refine, tighten, or clean up a built-out interface — typography rhythm, spacing, color discipline, motion, copy, and removal of generic "AI made this" tells. Do not use for initial design from scratch, accessibility audits, or performance work.
4
- ---
5
-
6
- ## Scope
7
-
8
- - Tighten an already-built UI surface: typography, spacing, color, motion, copy.
9
- - Replace generic patterns with committed aesthetic choices.
10
- - Remove "AI made this" tells.
11
-
12
- ## Prerequisites
13
-
14
- - A target identified by the user: a route, component file, directory, or screenshot.
15
- - Ability to edit source files in the target's project.
16
- - If the project has brand context files (e.g., `PRODUCT.md`, `DESIGN.md`, brand guidelines), read them before editing. If none exist, infer the register from the surface in focus and state the inference in the report.
17
-
18
- ## Safety Constraints
19
-
20
- - Never run this skill on initial-design tasks. If the target is empty, a wireframe, or unbuilt, stop and tell the user this skill polishes existing UI only.
21
- - Never change behavior or component contracts while polishing. Visual and copy changes only. If a polish requires a behavior change, stop and surface the options to the user.
22
- - Do not modify or remove accessibility attributes or ARIA semantics. The only allowed change is fixing an obvious regression that another polish edit would otherwise introduce. If the user asks for ARIA or a11y changes, stop and direct them to a dedicated accessibility audit.
23
-
24
- ## Procedure
25
-
26
- Work each section in order. Skip a section only if it does not apply to the target; record the skip and the reason in the report.
27
-
28
- ### 1. Color
29
-
30
- - Replace literal `#000` and `#fff` with neutrals tinted toward the brand hue (in OKLCH, chroma ~0.005–0.01).
31
- - Reduce chroma as lightness approaches 0 or 100.
32
- - Identify and state the color strategy actually in use: restrained (one accent ≤10%), committed (one color carries 30–60%), full palette (3–4 named roles), or drenched. If the surface is incoherent across strategies, pick one and align to it.
33
-
34
- ### 2. Typography
35
-
36
- - Cap body line length at 65–75ch.
37
- - Enforce a ≥1.25 ratio between hierarchy steps. Rewrite flat scales.
38
- - Carry hierarchy through size and weight, not color.
39
-
40
- ### 3. Layout
41
-
42
- - Vary spacing for rhythm; remove uniform padding repeated across unrelated regions.
43
- - Remove card wrappers that serve no affordance. Eliminate nested cards.
44
- - Drop container wrappers that impose no real constraint.
45
-
46
- ### 4. Motion
47
-
48
- - Replace animations of layout properties (width, height, top, left, margin) with transform/opacity equivalents.
49
- - Use ease-out exponential curves. Remove bounce and elastic easing.
50
-
51
- ### 5. Copy
52
-
53
- - Cut restated headings and intros that repeat the title.
54
- - Replace em dashes (and `--`) with commas, colons, semicolons, periods, or parentheses.
55
- - Tighten labels and error messages to single concrete actions.
56
-
57
- ### 6. AI-slop removal
58
-
59
- If any of the following appear in the target, rewrite the element rather than tweaking it:
60
-
61
- - Side-stripe borders: `border-left`/`border-right` greater than 1px used as a colored accent on cards, list items, callouts, or alerts.
62
- - Gradient text: `background-clip: text` combined with a gradient fill.
63
- - Decorative glassmorphism used as a default surface treatment.
64
- - Hero-metric template: big number + small label + supporting stats + gradient accent.
65
- - Identical card grids: same-sized icon + heading + text repeated as the page's primary layout.
66
- - Modal as the first reach for a workflow that could be inline or progressive.
67
-
68
- ### 7. Category-reflex check
69
-
70
- Before reporting done, ask whether someone could guess the surface's theme and palette from the product category alone (e.g., observability → dark blue, healthcare → white + teal, fintech → navy + gold, crypto → neon on black). If yes, the polish has not escaped the training-data reflex. Rework color and theme until the answer is not obvious from the domain.
71
-
72
- ## Stop Triggers
73
-
74
- Stop and report instead of editing when any of the following apply:
75
-
76
- - The target does not exist, is empty, or is not yet implemented.
77
- - The requested change requires behavior or contract changes rather than visual polish.
78
- - Brand context files are present but conflict with each other; surface the conflict.
79
- - More than one materially valid polish option exists for the same element. Continue unrelated unambiguous work first, then present deferred cases with options, recommendation, and trade-off at the end for the user to choose.
80
-
81
- ## Verification
82
-
83
- After edits:
84
-
85
- - Confirm each changed file still compiles or type-checks if the project has those gates available.
86
- - Re-read each changed region against this skill's sections to confirm no banned pattern was reintroduced.
87
- - If a dev server or preview is reasonably available, run it and confirm the affected surface renders without obvious regression. If not available, state that visual verification was skipped.
88
-
89
- ## Output Contract
90
-
91
- Emit:
92
-
93
- `Skill: frontend-impeccable-polish - output below`
94
-
95
- Then include:
96
-
97
- ### Sections Applied
98
-
99
- | Section | Status | Notes |
100
- | --- | --- | --- |
101
-
102
- `Status` is one of: Applied, Skipped (not applicable), Skipped (no occurrences), Deferred (ambiguous).
103
-
104
- ### Changes
105
-
106
- List each changed file with a one-line description of the polish applied.
107
-
108
- ### Deferred Ambiguities
109
-
110
- For each deferred case: target, options considered, recommendation, trade-off. Empty list if none.
111
-
112
- ### Verification
113
-
114
- State which verification steps ran and their result, including any that were skipped and why.
115
-
116
- ## Attribution
117
-
118
- See `collection/NOTICE.md` for attribution.
1
+ ---
2
+ name: frontend-impeccable-polish
3
+ description: Final-pass visual and interaction polish for an already-built frontend UI before shipping. Use when the user asks to polish, refine, tighten, or clean up a built-out interface — typography rhythm, spacing, color discipline, motion, copy, and removal of generic "AI made this" tells. Do not use for initial design from scratch, accessibility audits, or performance work.
4
+ ---
5
+
6
+ ## Scope
7
+
8
+ - Tighten an already-built UI surface: typography, spacing, color, motion, copy.
9
+ - Replace generic patterns with committed aesthetic choices.
10
+ - Remove "AI made this" tells.
11
+
12
+ ## Prerequisites
13
+
14
+ - A target identified by the user: a route, component file, directory, or screenshot.
15
+ - Ability to edit source files in the target's project.
16
+ - If the project has brand context files (e.g., `PRODUCT.md`, `DESIGN.md`, brand guidelines), read them before editing. If none exist, infer the register from the surface in focus and state the inference in the report.
17
+
18
+ ## Safety Constraints
19
+
20
+ - Never run this skill on initial-design tasks. If the target is empty, a wireframe, or unbuilt, stop and tell the user this skill polishes existing UI only.
21
+ - Never change behavior or component contracts while polishing. Visual and copy changes only. If a polish requires a behavior change, stop and surface the options to the user.
22
+ - Do not modify or remove accessibility attributes or ARIA semantics. The only allowed change is fixing an obvious regression that another polish edit would otherwise introduce. If the user asks for ARIA or a11y changes, stop and direct them to a dedicated accessibility audit.
23
+
24
+ ## Procedure
25
+
26
+ Work each section in order. Skip a section only if it does not apply to the target; record the skip and the reason in the report.
27
+
28
+ ### 1. Color
29
+
30
+ - Replace literal `#000` and `#fff` with neutrals tinted toward the brand hue (in OKLCH, chroma ~0.005–0.01).
31
+ - Reduce chroma as lightness approaches 0 or 100.
32
+ - Identify and state the color strategy actually in use: restrained (one accent ≤10%), committed (one color carries 30–60%), full palette (3–4 named roles), or drenched. If the surface is incoherent across strategies, pick one and align to it.
33
+
34
+ ### 2. Typography
35
+
36
+ - Cap body line length at 65–75ch.
37
+ - Enforce a ≥1.25 ratio between hierarchy steps. Rewrite flat scales.
38
+ - Carry hierarchy through size and weight, not color.
39
+
40
+ ### 3. Layout
41
+
42
+ - Vary spacing for rhythm; remove uniform padding repeated across unrelated regions.
43
+ - Remove card wrappers that serve no affordance. Eliminate nested cards.
44
+ - Drop container wrappers that impose no real constraint.
45
+
46
+ ### 4. Motion
47
+
48
+ - Replace animations of layout properties (width, height, top, left, margin) with transform/opacity equivalents.
49
+ - Use ease-out exponential curves. Remove bounce and elastic easing.
50
+
51
+ ### 5. Copy
52
+
53
+ - Cut restated headings and intros that repeat the title.
54
+ - Replace em dashes (and `--`) with commas, colons, semicolons, periods, or parentheses.
55
+ - Tighten labels and error messages to single concrete actions.
56
+
57
+ ### 6. AI-slop removal
58
+
59
+ If any of the following appear in the target, rewrite the element rather than tweaking it:
60
+
61
+ - Side-stripe borders: `border-left`/`border-right` greater than 1px used as a colored accent on cards, list items, callouts, or alerts.
62
+ - Gradient text: `background-clip: text` combined with a gradient fill.
63
+ - Decorative glassmorphism used as a default surface treatment.
64
+ - Hero-metric template: big number + small label + supporting stats + gradient accent.
65
+ - Identical card grids: same-sized icon + heading + text repeated as the page's primary layout.
66
+ - Modal as the first reach for a workflow that could be inline or progressive.
67
+
68
+ ### 7. Category-reflex check
69
+
70
+ Before reporting done, ask whether someone could guess the surface's theme and palette from the product category alone (e.g., observability → dark blue, healthcare → white + teal, fintech → navy + gold, crypto → neon on black). If yes, the polish has not escaped the training-data reflex. Rework color and theme until the answer is not obvious from the domain.
71
+
72
+ ## Stop Triggers
73
+
74
+ Stop and report instead of editing when any of the following apply:
75
+
76
+ - The target does not exist, is empty, or is not yet implemented.
77
+ - The requested change requires behavior or contract changes rather than visual polish.
78
+ - Brand context files are present but conflict with each other; surface the conflict.
79
+ - More than one materially valid polish option exists for the same element. Continue unrelated unambiguous work first, then present deferred cases with options, recommendation, and trade-off at the end for the user to choose.
80
+
81
+ ## Verification
82
+
83
+ After edits:
84
+
85
+ - Confirm each changed file still compiles or type-checks if the project has those gates available.
86
+ - Re-read each changed region against this skill's sections to confirm no banned pattern was reintroduced.
87
+ - If a dev server or preview is reasonably available, run it and confirm the affected surface renders without obvious regression. If not available, state that visual verification was skipped.
88
+
89
+ ## Output Contract
90
+
91
+ Emit:
92
+
93
+ `Skill: frontend-impeccable-polish - output below`
94
+
95
+ Then include:
96
+
97
+ ### Sections Applied
98
+
99
+ | Section | Status | Notes |
100
+ | --- | --- | --- |
101
+
102
+ `Status` is one of: Applied, Skipped (not applicable), Skipped (no occurrences), Deferred (ambiguous).
103
+
104
+ ### Changes
105
+
106
+ List each changed file with a one-line description of the polish applied.
107
+
108
+ ### Deferred Ambiguities
109
+
110
+ For each deferred case: target, options considered, recommendation, trade-off. Empty list if none.
111
+
112
+ ### Verification
113
+
114
+ State which verification steps ran and their result, including any that were skipped and why.
115
+
116
+ ## Attribution
117
+
118
+ See `collection/NOTICE.md` for attribution.
@@ -1,99 +1,99 @@
1
- ---
2
- name: implement-feature
3
- description: Executes additive work by introducing new behavior. Use when new functionality is being added to an existing codebase.
4
- ---
5
-
6
- ## Scope
7
-
8
- - Introduce new behavior into the project.
9
-
10
- ## Prerequisites
11
-
12
- Before editing, confirm:
13
- - The user requested or approved adding new behavior.
14
- - The desired behavior, affected workflow, and success criteria are clear enough to implement.
15
- - Relevant code, tests, configuration, conventions, and project documentation can be read.
16
- - Unrelated user work has been identified so it can be preserved.
17
-
18
- If approval, scope, or required context is missing, report the blocker before editing.
19
-
20
- ## Safety Constraints
21
-
22
- - Do not bundle unrelated cleanup, refactors, formatting churn, or dependency upgrades into the feature.
23
- - Do not bypass established abstractions, layer boundaries, or project conventions to make the feature fit.
24
- - Do not invent product rules, defaults, permissions, or user-facing behavior not supported by the request or repository evidence.
25
- - Do not overwrite unrelated user changes.
26
-
27
- ## Stop Conditions
28
-
29
- Stop and report the implementation as blocked when:
30
- - The requested behavior or success criteria cannot be stated concretely.
31
- - Required implementation context cannot be read.
32
- - The change requires a breaking public API change, schema migration, destructive data operation, new dependency, security/auth change, generated artifact rewrite, or broad architectural change not explicitly approved.
33
- - Existing architecture or project conventions conflict with the requested approach.
34
- - Required verification cannot be run or cannot provide meaningful evidence.
35
-
36
- ## Procedure
37
-
38
- ### 1. Frame The Change
39
-
40
- Before editing, state:
41
- - user-facing intent of the change
42
- - touched components or abstractions
43
- - expected blast radius
44
- - success criteria
45
- - intended verification approach
46
-
47
- If intent or scope is ambiguous, stop and surface the ambiguity before editing.
48
-
49
- ### 2. Read Required Context
50
-
51
- Before editing, read:
52
- - the relevant architecture and design documentation
53
- - conventions or coding standards for the project
54
- - existing implementations in the affected area to understand established patterns
55
-
56
- ### 3. Implement Under Project Boundaries
57
-
58
- Follow project coding conventions.
59
-
60
- If a needed abstraction is missing, stop and surface the gap instead of bypassing the project's established patterns.
61
-
62
- When multiple implementation approaches are plausible and differ materially in blast radius, public contract, persistence model, or long-term ownership, stop and surface the options instead of choosing silently.
63
-
64
- ### 4. Add Or Adjust Tests
65
-
66
- Add or update tests proportional to the risk level of the change.
67
-
68
- ### 5. Verify
69
-
70
- Run the verification checks appropriate to what changed: type checks, linting, unit tests, and integration tests as required.
71
-
72
- If any required check fails, fix the underlying cause and re-run the full required set.
73
-
74
- ## Verification
75
-
76
- Before reporting completion, verify:
77
- - The diff is limited to the requested feature and necessary supporting changes.
78
- - Tests or checks cover the new behavior at the appropriate risk level.
79
- - Any failed or skipped verification is reported with enough context for follow-up.
80
-
81
- ## Output Contract
82
-
83
- Emit:
84
-
85
- `Skill: implement-feature - output below`
86
-
87
- Then include:
88
-
89
- | Field | Content |
90
- | --- | --- |
91
- | Status | `completed` or `blocked` |
92
- | Scope | Feature, behavior, or workflow implemented |
93
- | Changed Files | Files changed, or `none` |
94
- | Assumptions | Inferences used, or `none` |
95
- | Verification | Commands/checks run and results |
96
- | Skipped Checks | Checks not run with reasons, or `none` |
97
- | Blockers | Remaining blockers, or `none` |
98
-
99
- `Status` may be `completed` only when the requested behavior is implemented, required verification has passed, and any non-required skipped checks are justified.
1
+ ---
2
+ name: implement-feature
3
+ description: Executes additive work by introducing new behavior. Use when new functionality is being added to an existing codebase.
4
+ ---
5
+
6
+ ## Scope
7
+
8
+ - Introduce new behavior into the project.
9
+
10
+ ## Prerequisites
11
+
12
+ Before editing, confirm:
13
+ - The user requested or approved adding new behavior.
14
+ - The desired behavior, affected workflow, and success criteria are clear enough to implement.
15
+ - Relevant code, tests, configuration, conventions, and project documentation can be read.
16
+ - Unrelated user work has been identified so it can be preserved.
17
+
18
+ If approval, scope, or required context is missing, report the blocker before editing.
19
+
20
+ ## Safety Constraints
21
+
22
+ - Do not bundle unrelated cleanup, refactors, formatting churn, or dependency upgrades into the feature.
23
+ - Do not bypass established abstractions, layer boundaries, or project conventions to make the feature fit.
24
+ - Do not invent product rules, defaults, permissions, or user-facing behavior not supported by the request or repository evidence.
25
+ - Do not overwrite unrelated user changes.
26
+
27
+ ## Stop Conditions
28
+
29
+ Stop and report the implementation as blocked when:
30
+ - The requested behavior or success criteria cannot be stated concretely.
31
+ - Required implementation context cannot be read.
32
+ - The change requires a breaking public API change, schema migration, destructive data operation, new dependency, security/auth change, generated artifact rewrite, or broad architectural change not explicitly approved.
33
+ - Existing architecture or project conventions conflict with the requested approach.
34
+ - Required verification cannot be run or cannot provide meaningful evidence.
35
+
36
+ ## Procedure
37
+
38
+ ### 1. Frame The Change
39
+
40
+ Before editing, state:
41
+ - user-facing intent of the change
42
+ - touched components or abstractions
43
+ - expected blast radius
44
+ - success criteria
45
+ - intended verification approach
46
+
47
+ If intent or scope is ambiguous, stop and surface the ambiguity before editing.
48
+
49
+ ### 2. Read Required Context
50
+
51
+ Before editing, read:
52
+ - the relevant architecture and design documentation
53
+ - conventions or coding standards for the project
54
+ - existing implementations in the affected area to understand established patterns
55
+
56
+ ### 3. Implement Under Project Boundaries
57
+
58
+ Follow project coding conventions.
59
+
60
+ If a needed abstraction is missing, stop and surface the gap instead of bypassing the project's established patterns.
61
+
62
+ When multiple implementation approaches are plausible and differ materially in blast radius, public contract, persistence model, or long-term ownership, stop and surface the options instead of choosing silently.
63
+
64
+ ### 4. Add Or Adjust Tests
65
+
66
+ Add or update tests proportional to the risk level of the change.
67
+
68
+ ### 5. Verify
69
+
70
+ Run the verification checks appropriate to what changed: type checks, linting, unit tests, and integration tests as required.
71
+
72
+ If any required check fails, fix the underlying cause and re-run the full required set.
73
+
74
+ ## Verification
75
+
76
+ Before reporting completion, verify:
77
+ - The diff is limited to the requested feature and necessary supporting changes.
78
+ - Tests or checks cover the new behavior at the appropriate risk level.
79
+ - Any failed or skipped verification is reported with enough context for follow-up.
80
+
81
+ ## Output Contract
82
+
83
+ Emit:
84
+
85
+ `Skill: implement-feature - output below`
86
+
87
+ Then include:
88
+
89
+ | Field | Content |
90
+ | --- | --- |
91
+ | Status | `completed` or `blocked` |
92
+ | Scope | Feature, behavior, or workflow implemented |
93
+ | Changed Files | Files changed, or `none` |
94
+ | Assumptions | Inferences used, or `none` |
95
+ | Verification | Commands/checks run and results |
96
+ | Skipped Checks | Checks not run with reasons, or `none` |
97
+ | Blockers | Remaining blockers, or `none` |
98
+
99
+ `Status` may be `completed` only when the requested behavior is implemented, required verification has passed, and any non-required skipped checks are justified.
@@ -1,75 +1,75 @@
1
- ---
2
- name: memory-management
3
- description: Maintains a tiered project-memory store (HOT / WARM / COLD) so cross-session context stays compact, current, and recoverable. Use when recording a new durable memory, running periodic hygiene, promoting or demoting an entry, or purging on user request.
4
- ---
5
-
6
- ## Scope
7
-
8
- - Operate on a project-memory root the consumer declares (e.g. `memory/`, `.memory/`, or an AI-tool-provided location). The skill does not invent a root.
9
- - Maintain three tiers:
10
- - **HOT** — always loaded at session start. Hard cap so context cost stays bounded. Contains active priorities, canonical facts, current goals.
11
- - **WARM** — loaded on demand by topic. Contains decisions, glossary, research, longer-lived references.
12
- - **COLD** — archived; queried only on explicit request. Contains retired WARM files and historical snapshots.
13
- - Apply hygiene: line and byte caps, staleness scan, frontmatter audit, duplicate detection.
14
- - Apply lifecycle: promote on repeated reference, demote on disuse, archive on user-confirmed retirement.
15
- - Apply purge: remove a named entity across all tiers on explicit user request, leaving a tombstone so the entry is not silently reingested.
16
-
17
- ## Boundaries
18
-
19
- - Single responsibility: maintain the memory store. Do not author project content, plan tasks, or route to other capabilities.
20
- - Do not change the memory root layout (tier directories, index file location) once a project has adopted one. Layout changes require explicit user approval.
21
- - Do not delete or rewrite an existing entry's body without user confirmation; corrections are allowed only when the user identifies the entry and supplies the correction.
22
-
23
- ## Safety Constraints
24
-
25
- - Treat the memory store as user-owned record. Edits must be auditable: every change names the file, the operation (add / update / promote / demote / archive / purge), and the reason.
26
- - Respect tier caps. If a write would exceed the HOT cap, demote the lowest-priority HOT entry to WARM in the same operation; never silently truncate.
27
- - Never write secrets, credentials, tokens, or personal data the user has not asked to record.
28
- - Purges must remove the entry from every tier and from any index file, then write a tombstone marker so a future ingestion step recognizes the entry as retired.
29
-
30
- ## Stop Conditions
31
-
32
- Halt the current operation and ask the user (the user must reply before the operation resumes):
33
- - No memory root is declared and none can be inferred from the project profile or AI-tool defaults.
34
- - The requested operation is ambiguous, e.g. "remember this" without a clear subject, scope, or target tier.
35
-
36
- Halt the current operation and emit a `blocked` row in the output table (no user reply required to close the run):
37
- - An existing entry's frontmatter is malformed and cannot be parsed without guessing.
38
- - A purge target appears in files the skill cannot edit, e.g. read-only or outside the declared memory root.
39
-
40
- ## Procedure
41
-
42
- If any Stop Condition fires during a step, halt that step immediately and follow the effect declared above; do not continue to later steps until the trigger is resolved.
43
-
44
- 1. Identify the memory root and confirm the three tier locations (or their declared equivalents).
45
- 2. Classify the requested operation: record, recall, hygiene, promote, demote, archive, or purge.
46
- 3. For **record**: choose tier based on user intent and entry kind. HOT only for entries that must load every session. Write the file with required frontmatter, then update the tier index.
47
- 4. For **recall**: scan the relevant tier's index first; load only files that match the topic. Do not bulk-load tiers.
48
- 5. For **hygiene**: scan for entries older than the declared staleness threshold (skill defaults: 30 days for WARM, 7 days for HOT — a consumer may override these defaults in the memory-root index file or via explicit user instruction at run time), oversized files, missing frontmatter fields, and exact-duplicate descriptions. Report findings before changing anything.
49
- 6. For **promote / demote**: move the file between tier directories, update both tier indexes, and preserve the original frontmatter and edit history.
50
- 7. For **archive**: move the file to COLD with a retirement note in its frontmatter. Remove its entry from the WARM index. Leave a one-line back-link in the WARM index pointing to the archived path.
51
- 8. For **purge**: locate every reference to the named entity across all tiers and indexes, remove them, then write a tombstone file under COLD recording the entity name, purge date, and reason.
52
- 9. Emit the output contract.
53
-
54
- ## Verification
55
-
56
- Before emitting the output, verify:
57
- - The declared memory root exists and the operation touched only files under it.
58
- - HOT tier remains within its cap after the operation.
59
- - Tier indexes reflect every add, move, or removal.
60
- - For purges, no remaining reference to the named entity exists in any tier or index.
61
-
62
- ## Output Contract
63
-
64
- Emit:
65
-
66
- `Skill: memory-management - output below`
67
-
68
- Include:
69
-
70
- | Operation | Tier(s) | File(s) | Status | Notes |
71
- | --- | --- | --- | --- | --- |
72
-
73
- Status must be one of: `applied`, `applied with demotion`, `reported only`, `blocked`.
74
-
75
- `Notes` must name the reason for any demotion, archive, purge, or block, and must list any tombstone written.
1
+ ---
2
+ name: memory-management
3
+ description: Maintains a tiered project-memory store (HOT / WARM / COLD) so cross-session context stays compact, current, and recoverable. Use when recording a new durable memory, running periodic hygiene, promoting or demoting an entry, or purging on user request.
4
+ ---
5
+
6
+ ## Scope
7
+
8
+ - Operate on a project-memory root the consumer declares (e.g. `memory/`, `.memory/`, or an AI-tool-provided location). The skill does not invent a root.
9
+ - Maintain three tiers:
10
+ - **HOT** — always loaded at session start. Hard cap so context cost stays bounded. Contains active priorities, canonical facts, current goals.
11
+ - **WARM** — loaded on demand by topic. Contains decisions, glossary, research, longer-lived references.
12
+ - **COLD** — archived; queried only on explicit request. Contains retired WARM files and historical snapshots.
13
+ - Apply hygiene: line and byte caps, staleness scan, frontmatter audit, duplicate detection.
14
+ - Apply lifecycle: promote on repeated reference, demote on disuse, archive on user-confirmed retirement.
15
+ - Apply purge: remove a named entity across all tiers on explicit user request, leaving a tombstone so the entry is not silently reingested.
16
+
17
+ ## Boundaries
18
+
19
+ - Single responsibility: maintain the memory store. Do not author project content, plan tasks, or route to other capabilities.
20
+ - Do not change the memory root layout (tier directories, index file location) once a project has adopted one. Layout changes require explicit user approval.
21
+ - Do not delete or rewrite an existing entry's body without user confirmation; corrections are allowed only when the user identifies the entry and supplies the correction.
22
+
23
+ ## Safety Constraints
24
+
25
+ - Treat the memory store as user-owned record. Edits must be auditable: every change names the file, the operation (add / update / promote / demote / archive / purge), and the reason.
26
+ - Respect tier caps. If a write would exceed the HOT cap, demote the lowest-priority HOT entry to WARM in the same operation; never silently truncate.
27
+ - Never write secrets, credentials, tokens, or personal data the user has not asked to record.
28
+ - Purges must remove the entry from every tier and from any index file, then write a tombstone marker so a future ingestion step recognizes the entry as retired.
29
+
30
+ ## Stop Conditions
31
+
32
+ Halt the current operation and ask the user (the user must reply before the operation resumes):
33
+ - No memory root is declared and none can be inferred from the project profile or AI-tool defaults.
34
+ - The requested operation is ambiguous, e.g. "remember this" without a clear subject, scope, or target tier.
35
+
36
+ Halt the current operation and emit a `blocked` row in the output table (no user reply required to close the run):
37
+ - An existing entry's frontmatter is malformed and cannot be parsed without guessing.
38
+ - A purge target appears in files the skill cannot edit, e.g. read-only or outside the declared memory root.
39
+
40
+ ## Procedure
41
+
42
+ If any Stop Condition fires during a step, halt that step immediately and follow the effect declared above; do not continue to later steps until the trigger is resolved.
43
+
44
+ 1. Identify the memory root and confirm the three tier locations (or their declared equivalents).
45
+ 2. Classify the requested operation: record, recall, hygiene, promote, demote, archive, or purge.
46
+ 3. For **record**: choose tier based on user intent and entry kind. HOT only for entries that must load every session. Write the file with required frontmatter, then update the tier index.
47
+ 4. For **recall**: scan the relevant tier's index first; load only files that match the topic. Do not bulk-load tiers.
48
+ 5. For **hygiene**: scan for entries older than the declared staleness threshold (skill defaults: 30 days for WARM, 7 days for HOT — a consumer may override these defaults in the memory-root index file or via explicit user instruction at run time), oversized files, missing frontmatter fields, and exact-duplicate descriptions. Report findings before changing anything.
49
+ 6. For **promote / demote**: move the file between tier directories, update both tier indexes, and preserve the original frontmatter and edit history.
50
+ 7. For **archive**: move the file to COLD with a retirement note in its frontmatter. Remove its entry from the WARM index. Leave a one-line back-link in the WARM index pointing to the archived path.
51
+ 8. For **purge**: locate every reference to the named entity across all tiers and indexes, remove them, then write a tombstone file under COLD recording the entity name, purge date, and reason.
52
+ 9. Emit the output contract.
53
+
54
+ ## Verification
55
+
56
+ Before emitting the output, verify:
57
+ - The declared memory root exists and the operation touched only files under it.
58
+ - HOT tier remains within its cap after the operation.
59
+ - Tier indexes reflect every add, move, or removal.
60
+ - For purges, no remaining reference to the named entity exists in any tier or index.
61
+
62
+ ## Output Contract
63
+
64
+ Emit:
65
+
66
+ `Skill: memory-management - output below`
67
+
68
+ Include:
69
+
70
+ | Operation | Tier(s) | File(s) | Status | Notes |
71
+ | --- | --- | --- | --- | --- |
72
+
73
+ Status must be one of: `applied`, `applied with demotion`, `reported only`, `blocked`.
74
+
75
+ `Notes` must name the reason for any demotion, archive, purge, or block, and must list any tombstone written.