@votruongdanh/ai-agent-skills 3.3.2 → 3.3.4

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 (75) hide show
  1. package/.agents/.skills-version +1 -0
  2. package/{.kiro → .agents}/skills/agents/SKILL.md +3 -0
  3. package/{.kiro → .agents}/skills/brainstorm/SKILL.md +3 -0
  4. package/{.kiro → .agents}/skills/clean/SKILL.md +3 -0
  5. package/{.kiro → .agents}/skills/create/SKILL.md +3 -0
  6. package/{.kiro → .agents}/skills/debug/SKILL.md +12 -6
  7. package/{.kiro → .agents}/skills/deploy/SKILL.md +3 -0
  8. package/{.kiro → .agents}/skills/enhance/SKILL.md +3 -0
  9. package/{.kiro → .agents}/skills/explain/SKILL.md +3 -0
  10. package/{.kiro → .agents}/skills/integrate/SKILL.md +3 -0
  11. package/{.kiro → .agents}/skills/motion-ui/SKILL.md +3 -0
  12. package/{.kiro → .agents}/skills/orchestrate/SKILL.md +3 -0
  13. package/{.kiro → .agents}/skills/plan/SKILL.md +3 -0
  14. package/{.kiro → .agents}/skills/preview/SKILL.md +3 -0
  15. package/{.kiro → .agents}/skills/status/SKILL.md +3 -0
  16. package/{.kiro → .agents}/skills/test/SKILL.md +3 -0
  17. package/{.kiro → .agents}/skills/ui-ux-pro-max/SKILL.md +3 -0
  18. package/.kiro/.skills-version +1 -0
  19. package/README.md +13 -2
  20. package/bin/cli.js +3 -0
  21. package/lib/skill-bundle.js +8 -3
  22. package/package.json +3 -1
  23. package/scripts/sync-all.js +20 -0
  24. package/skills/_scripts/.ai-memory-template.md +55 -0
  25. package/skills/_scripts/checklist.md +35 -0
  26. package/skills/_scripts/memory-compact.md +142 -0
  27. package/skills/_scripts/memory-dedupe.md +26 -0
  28. package/skills/_scripts/pre-deploy.md +42 -0
  29. package/skills/_scripts/verify-all.md +28 -0
  30. package/skills/agents/SKILL.md +88 -0
  31. package/skills/agents/agents/backend-specialist.md +29 -0
  32. package/skills/agents/agents/database-architect.md +28 -0
  33. package/skills/agents/agents/debugger.md +29 -0
  34. package/skills/agents/agents/devops-engineer.md +30 -0
  35. package/skills/agents/agents/documentation-writer.md +29 -0
  36. package/skills/agents/agents/frontend-specialist.md +30 -0
  37. package/skills/agents/agents/orchestrator.md +36 -0
  38. package/skills/agents/agents/performance-optimizer.md +29 -0
  39. package/skills/agents/agents/project-planner.md +30 -0
  40. package/skills/agents/agents/security-auditor.md +30 -0
  41. package/skills/agents/agents/test-engineer.md +29 -0
  42. package/skills/brainstorm/SKILL.md +69 -0
  43. package/skills/clean/SKILL.md +93 -0
  44. package/skills/create/SKILL.md +66 -0
  45. package/skills/debug/SKILL.md +77 -0
  46. package/skills/deploy/SKILL.md +69 -0
  47. package/skills/enhance/SKILL.md +61 -0
  48. package/skills/explain/SKILL.md +72 -0
  49. package/skills/instructions.md +95 -0
  50. package/skills/integrate/SKILL.md +53 -0
  51. package/skills/motion-ui/SKILL.md +495 -0
  52. package/skills/orchestrate/SKILL.md +76 -0
  53. package/skills/plan/SKILL.md +72 -0
  54. package/skills/preview/SKILL.md +58 -0
  55. package/skills/status/SKILL.md +60 -0
  56. package/skills/test/SKILL.md +61 -0
  57. package/skills/ui-ux-pro-max/SKILL.md +68 -0
  58. /package/{.kiro → .agents}/skills/_scripts/.ai-memory-template.md +0 -0
  59. /package/{.kiro → .agents}/skills/_scripts/checklist.md +0 -0
  60. /package/{.kiro → .agents}/skills/_scripts/memory-compact.md +0 -0
  61. /package/{.kiro → .agents}/skills/_scripts/memory-dedupe.md +0 -0
  62. /package/{.kiro → .agents}/skills/_scripts/pre-deploy.md +0 -0
  63. /package/{.kiro → .agents}/skills/_scripts/verify-all.md +0 -0
  64. /package/{.kiro → .agents}/skills/agents/agents/backend-specialist.md +0 -0
  65. /package/{.kiro → .agents}/skills/agents/agents/database-architect.md +0 -0
  66. /package/{.kiro → .agents}/skills/agents/agents/debugger.md +0 -0
  67. /package/{.kiro → .agents}/skills/agents/agents/devops-engineer.md +0 -0
  68. /package/{.kiro → .agents}/skills/agents/agents/documentation-writer.md +0 -0
  69. /package/{.kiro → .agents}/skills/agents/agents/frontend-specialist.md +0 -0
  70. /package/{.kiro → .agents}/skills/agents/agents/orchestrator.md +0 -0
  71. /package/{.kiro → .agents}/skills/agents/agents/performance-optimizer.md +0 -0
  72. /package/{.kiro → .agents}/skills/agents/agents/project-planner.md +0 -0
  73. /package/{.kiro → .agents}/skills/agents/agents/security-auditor.md +0 -0
  74. /package/{.kiro → .agents}/skills/agents/agents/test-engineer.md +0 -0
  75. /package/{.kiro → .agents}/skills/instructions.md +0 -0
@@ -0,0 +1 @@
1
+ 3.3.3
@@ -75,6 +75,9 @@ For complex requests that span domains:
75
75
  4. Execute sequentially, sharing state via `.ai-memory.md`
76
76
  5. Merge results with consistency checks
77
77
 
78
+ - [ ] Clean code chuẩn (Standard clean code applied)
79
+ - [ ] Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated)
80
+
78
81
  ## Quality Gate
79
82
  After completing any routed task, read `.kiro/skills/_scripts/checklist.md` for cross-cutting quality checks.
80
83
 
@@ -50,6 +50,9 @@ If any answer is unclear, ASK before proceeding.
50
50
  - [ ] Next step recommended
51
51
  - [ ] Memory file updated
52
52
 
53
+ - [ ] Clean code chuẩn (Standard clean code applied)
54
+ - [ ] Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated)
55
+
53
56
  ## Rules
54
57
  - Prefer practical ideas grounded in the current project.
55
58
  - Avoid pretending uncertain assumptions are facts.
@@ -73,6 +73,9 @@ Proceed with deletion? (y/n)
73
73
  - [ ] .gitignore updated if needed
74
74
  - [ ] Memory file updated
75
75
 
76
+ - [ ] Clean code chuẩn (Standard clean code applied)
77
+ - [ ] Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated)
78
+
76
79
  ## Quality Gate
77
80
  After completing, read `.kiro/skills/_scripts/checklist.md` for cross-cutting quality checks.
78
81
 
@@ -46,6 +46,9 @@ If any answer is unclear, ASK before proceeding.
46
46
  - [ ] Usage notes provided
47
47
  - [ ] Memory file updated
48
48
 
49
+ - [ ] Clean code chuẩn (Standard clean code applied)
50
+ - [ ] Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated)
51
+
49
52
  ## Rules
50
53
  - Prefer incremental changes over large rewrites.
51
54
  - Match the project's conventions.
@@ -24,16 +24,17 @@ Before debugging, verify:
24
24
  1. What is the expected behavior vs actual behavior?
25
25
  2. Is there a log, stacktrace, or error message?
26
26
  3. When did this start? (recent change, always broken, intermittent?)
27
+ 4. Have we tried this before?
27
28
  If any answer is missing, ASK before proceeding.
28
29
 
29
30
  ## Workflow
30
31
  1. **Read Memory** — Load `.ai-memory.md` for project context and past bug history.
31
32
  2. Summarize the bug, expected behavior, and actual behavior.
32
33
  3. Gather evidence from logs, stack traces, code paths, config, and recent changes.
33
- 4. List the top hypotheses ranked by likelihood.
34
+ 4. List the top hypotheses ranked by likelihood. **Eliminate previously failed hypotheses immediately.**
34
35
  5. Eliminate hypotheses using direct evidence.
35
- 6. Identify the root cause.
36
- 7. Propose the smallest safe fix.
36
+ 6. Identify the root cause and confirm with evidence before attempting any code changes.
37
+ 7. Propose an effective solution that addresses the root cause definitively. **Ensure clean code standards are met and fully update all related files.**
37
38
  8. Suggest how to verify the fix and prevent regressions.
38
39
  9. **Quality Gate** — Read `.kiro/skills/_scripts/checklist.md` and run cross-cutting quality checks.
39
40
  10. **Update Memory** — Save root cause, fix, and lessons to `.ai-memory.md`.
@@ -41,23 +42,28 @@ If any answer is missing, ASK before proceeding.
41
42
  ## Output format
42
43
  - Symptom
43
44
  - Evidence collected
45
+ - Failed Attempts (to avoid repetition)
44
46
  - Hypotheses (ranked by likelihood)
45
47
  - Root cause
46
- - Fix (smallest safe change)
48
+ - Fix (Clean code & complete file updates)
47
49
  - Verification steps
48
50
  - Regression prevention
49
51
 
50
52
  ## Checklist
51
53
  - [ ] Bug clearly described (expected vs actual)
52
- - [ ] Evidence gathered (logs, stacktrace, code)
54
+ - [ ] Past failed attempts reviewed to prevent loop
55
+ - [ ] Evidence gathered and root cause definitively confirmed
53
56
  - [ ] Hypotheses listed and ranked
54
57
  - [ ] Root cause confirmed with evidence
55
- - [ ] Fix is minimal and safe
58
+ - [ ] Fix is effective and addresses root cause directly
56
59
  - [ ] No side effects introduced
57
60
  - [ ] Verification steps provided
58
61
  - [ ] Regression prevention suggested
59
62
  - [ ] Memory file updated
60
63
 
64
+ - [ ] Clean code chuẩn (Standard clean code applied)
65
+ - [ ] Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated)
66
+
61
67
  ## Rules
62
68
  - Do not guess when evidence is missing; say what must be checked.
63
69
  - Prefer deterministic reproduction steps.
@@ -53,6 +53,9 @@ If any answer is unclear, ASK before proceeding.
53
53
  - [ ] Post-deploy verification planned
54
54
  - [ ] Memory file updated
55
55
 
56
+ - [ ] Clean code chuẩn (Standard clean code applied)
57
+ - [ ] Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated)
58
+
56
59
  ## Rules
57
60
  - Prefer least-risk rollout patterns.
58
61
  - Never expose secrets.
@@ -45,6 +45,9 @@ If any answer is unclear, ASK before proceeding.
45
45
  - [ ] Tests still passing
46
46
  - [ ] Memory file updated
47
47
 
48
+ - [ ] Clean code chuẩn (Standard clean code applied)
49
+ - [ ] Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated)
50
+
48
51
  ## Rules
49
52
  - Preserve behavior unless the user asked for a behavior change.
50
53
  - Prefer small, meaningful upgrades over broad rewrites.
@@ -56,6 +56,9 @@ If any answer is unclear, ASK before proceeding.
56
56
  - [ ] Follow-up suggestions provided
57
57
  - [ ] Memory file updated
58
58
 
59
+ - [ ] Clean code chuẩn (Standard clean code applied)
60
+ - [ ] Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated)
61
+
59
62
  ## Rules
60
63
  - Explain the WHY, not just the WHAT — developers can read syntax themselves.
61
64
  - Match explanation depth to the user's familiarity level.
@@ -18,6 +18,9 @@ Before editing, verify these inputs exist. If any is missing or ambiguous, ASK:
18
18
  2. The **target location** in this project (file/module/feature area).
19
19
  3. Constraints: must keep API stable? must keep UI stable? backward compatible?
20
20
 
21
+ - [ ] Clean code chuẩn (Standard clean code applied)
22
+ - [ ] Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated)
23
+
21
24
  ## Rules (Blast-radius control)
22
25
  - Touch the **smallest** possible set of files.
23
26
  - Do **not** reformat or restructure unrelated code.
@@ -341,6 +341,9 @@ If any answer is unclear, ASK before proceeding.
341
341
  - [ ] Color contrast verified (WCAG AA)
342
342
  - [ ] Memory file updated
343
343
 
344
+ - [ ] Clean code chuẩn (Standard clean code applied)
345
+ - [ ] Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated)
346
+
344
347
  ## Rules
345
348
  - Motion should enhance, not distract.
346
349
  - Keep animations subtle and purposeful.
@@ -59,6 +59,9 @@ If any answer is unclear, ASK before proceeding.
59
59
  - [ ] Done criteria set
60
60
  - [ ] Memory file updated
61
61
 
62
+ - [ ] Clean code chuẩn (Standard clean code applied)
63
+ - [ ] Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated)
64
+
62
65
  ## Rules
63
66
  - Keep plans realistic for the current project.
64
67
  - Surface unknowns early.
@@ -54,6 +54,9 @@ If any answer is unclear, ASK before proceeding.
54
54
  - [ ] First action recommended
55
55
  - [ ] Memory file updated
56
56
 
57
+ - [ ] Clean code chuẩn (Standard clean code applied)
58
+ - [ ] Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated)
59
+
57
60
  ## Rules
58
61
  - Plans should be specific enough to execute.
59
62
  - Prefer task sizes that can be completed and reviewed quickly.
@@ -40,6 +40,9 @@ If any answer is unclear, ASK before proceeding.
40
40
  - [ ] Implementation differences noted
41
41
  - [ ] Memory file updated
42
42
 
43
+ - [ ] Clean code chuẩn (Standard clean code applied)
44
+ - [ ] Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated)
45
+
43
46
  ## Rules
44
47
  - Keep previews realistic and consistent with the current project.
45
48
  - Label illustrative content clearly when it is mock data.
@@ -42,6 +42,9 @@ Summarize where things stand right now, leveraging the memory file for deep cont
42
42
  - [ ] Next priority recommended
43
43
  - [ ] Memory file updated with status snapshot
44
44
 
45
+ - [ ] Clean code chuẩn (Standard clean code applied)
46
+ - [ ] Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated)
47
+
45
48
  ## Rules
46
49
  - Be specific and evidence-based.
47
50
  - Separate facts from inference.
@@ -45,6 +45,9 @@ If any answer is unclear, ASK before proceeding.
45
45
  - [ ] Run instructions provided
46
46
  - [ ] Memory file updated
47
47
 
48
+ - [ ] Clean code chuẩn (Standard clean code applied)
49
+ - [ ] Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated)
50
+
48
51
  ## Rules
49
52
  - Prefer stable tests over brittle tests.
50
53
  - Cover both happy path and key edge cases.
@@ -52,6 +52,9 @@ If any answer is unclear, ASK before proceeding.
52
52
  - [ ] Brand consistency maintained
53
53
  - [ ] Memory file updated
54
54
 
55
+ - [ ] Clean code chuẩn (Standard clean code applied)
56
+ - [ ] Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated)
57
+
55
58
  ## Rules
56
59
  - Optimize for clarity before decoration.
57
60
  - Respect existing brand and component patterns when present.
@@ -0,0 +1 @@
1
+ 3.3.3
package/README.md CHANGED
@@ -110,6 +110,16 @@ The `add` command:
110
110
 
111
111
  Native skill targets keep the full skill directory. Generated compatibility targets (Cursor `.mdc` rules, Antigravity workflows) only render `SKILL.md` content — companion `scripts/`, `references/`, and `assets/` remain native-only.
112
112
 
113
+ ## For AI Agents & Developers: How to Edit Skills
114
+
115
+ All skills are now stored in the `skills/` directory at the root of the project. This is the **canonical source of truth**.
116
+
117
+ When you need to edit, update, or add a new skill:
118
+ 1. Edit the Markdown files directly in the `skills/` directory.
119
+ 2. Run `npm run sync:all` to automatically synchronize your changes to all supported IDE formats (Cursor, Kiro, Antigravity, VS Code, Codex, etc.).
120
+
121
+ **Note:** DO NOT manually edit the generated files in `.agent/workflows/`, `.cursor/rules/`, or similar IDE-specific folders, as your changes will be overwritten upon sync.
122
+
113
123
  ## Available Skills (16)
114
124
 
115
125
  | Skill | Description |
@@ -169,16 +179,17 @@ The router handles keyword matching, Vietnamese triggers, compound keywords, and
169
179
  ## How the Package is Structured
170
180
 
171
181
  ```
172
- .kiro/skills/ # Canonical skill source (16 skills)
182
+ skills/ # Canonical skill source (16 skills)
173
183
  .agents/skills/ # Cross-client interop root
174
184
  lib/skill-bundle.js # Discovery, YAML parsing, catalog, render, install
175
185
  bin/cli.js # Interactive CLI with colors, prompts, GitHub fetcher
176
186
  bin/install-skills.ps1 # Optional PowerShell wrapper
177
187
  scripts/render-targets.js # Sample output renderer
188
+ scripts/sync-all.js # Script to sync 'skills/' to all IDE folders
178
189
  verify.js # 44-check test suite
179
190
  ```
180
191
 
181
- - Canonical source prefers `.skills`, then falls back to `.kiro/skills`
192
+ - Canonical source prefers `skills/`, then falls back to `.skills`
182
193
  - `lib/skill-bundle.js` contains all discovery, parsing, rendering, and install logic
183
194
  - `bin/cli.js` provides interactive install, GitHub `add`, list, status, and help commands
184
195
  - Each skill exposes: `slug`, `name`, `description`, `sourceRoot`, `hasScripts`, `hasReferences`, `hasAssets`, and per-target compatibility metadata
package/bin/cli.js CHANGED
@@ -185,6 +185,7 @@ async function interactiveInit() {
185
185
  const supportedIDEOptions = [
186
186
  { label: 'Cursor', value: 'cursor', description: '.cursor/skills + .cursor/rules', recommended: true },
187
187
  { label: 'Kiro', value: 'kiro', description: '.kiro/skills' },
188
+ { label: 'Claude Code', value: 'claude-code', description: '.claude/skills' },
188
189
  { label: 'Antigravity', value: 'antigravity', description: '.agent/workflows' },
189
190
  { label: 'Codex', value: 'codex', description: '.agents/skills (+ AGENTS.md / memories)' },
190
191
  { label: 'VS Code', value: 'vscode', description: '.github/skills' },
@@ -416,6 +417,7 @@ async function addSkillFromGitHub() {
416
417
  const ideOptions = [
417
418
  { label: 'Cursor', value: 'cursor', description: '.cursor/skills', recommended: true },
418
419
  { label: 'Kiro', value: 'kiro', description: '.kiro/skills' },
420
+ { label: 'Claude Code', value: 'claude-code', description: '.claude/skills' },
419
421
  { label: 'Antigravity', value: 'antigravity', description: '.agent/workflows' },
420
422
  { label: 'Codex', value: 'codex', description: '.agents/skills (+ AGENTS.md / memories)' },
421
423
  { label: 'VS Code', value: 'vscode', description: '.github/skills' },
@@ -801,6 +803,7 @@ ${c.bold}Supported IDEs:${c.reset}
801
803
 
802
804
  ${c.cyan}cursor${c.reset} ${c.dim}→ .cursor/skills + .cursor/rules${c.reset}
803
805
  ${c.cyan}kiro${c.reset} ${c.dim}→ .kiro/skills${c.reset}
806
+ ${c.cyan}claude-code${c.reset} ${c.dim}→ .claude/skills${c.reset}
804
807
  ${c.cyan}antigravity${c.reset} ${c.dim}→ .agent/workflows${c.reset}
805
808
  ${c.cyan}codex${c.reset} ${c.dim}→ .agents/skills (detected via AGENTS.md / memories)${c.reset}
806
809
  ${c.cyan}vscode${c.reset} ${c.dim}→ .github/skills${c.reset}
@@ -6,8 +6,8 @@ const yaml = require('yaml');
6
6
  const PACKAGE_ROOT = path.join(__dirname, '..');
7
7
  const PORTABLE_SKILLS_DIR = path.join(PACKAGE_ROOT, '.skills');
8
8
  const LEGACY_CANONICAL_SKILLS_DIR = path.join(PACKAGE_ROOT, '.kiro', 'skills');
9
- const CANONICAL_SKILLS_DIR = LEGACY_CANONICAL_SKILLS_DIR;
10
- const CANONICAL_SKILL_ROOTS = ['.skills', '.agents/skills', '.kiro/skills'];
9
+ const CANONICAL_SKILLS_DIR = path.join(PACKAGE_ROOT, 'skills');
10
+ const CANONICAL_SKILL_ROOTS = ['skills', '.skills', '.agents/skills', '.kiro/skills'];
11
11
  const PORTABLE_ASSET_DIRS = ['scripts', 'references', 'assets', 'agents'];
12
12
 
13
13
  const IDE_ALIASES = {
@@ -166,10 +166,15 @@ function getCanonicalSkillRootDefinitions(options = {}) {
166
166
  const bundleRoot = path.resolve(options.bundleRoot || PACKAGE_ROOT);
167
167
 
168
168
  return [
169
+ {
170
+ sourceRoot: 'skills',
171
+ sourceDir: path.join(bundleRoot, 'skills'),
172
+ priority: 0,
173
+ },
169
174
  {
170
175
  sourceRoot: '.skills',
171
176
  sourceDir: path.join(bundleRoot, '.skills'),
172
- priority: 0,
177
+ priority: 1,
173
178
  },
174
179
  {
175
180
  sourceRoot: '.agents/skills',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@votruongdanh/ai-agent-skills",
3
- "version": "3.3.2",
3
+ "version": "3.3.4",
4
4
  "description": "Cross-IDE AI agent skills with native installers for Kiro, Cursor, Antigravity, and VS Code/Copilot",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -9,6 +9,7 @@
9
9
  "scripts": {
10
10
  "build:targets": "node scripts/render-targets.js",
11
11
  "test": "node verify.js",
12
+ "sync:all": "node scripts/sync-all.js",
12
13
  "release:patch": "npm version patch && git push origin main --tags",
13
14
  "release:minor": "npm version minor && git push origin main --tags",
14
15
  "release:major": "npm version major && git push origin main --tags"
@@ -43,6 +44,7 @@
43
44
  },
44
45
  "homepage": "https://github.com/votruongdanh/ai-agent-skills#readme",
45
46
  "files": [
47
+ "skills",
46
48
  ".skills",
47
49
  ".agents",
48
50
  ".kiro",
@@ -0,0 +1,20 @@
1
+ const { installBundle } = require('./lib/skill-bundle.js');
2
+ const targets = ['cursor', 'antigravity', 'kiro', 'vscode', 'codex', 'claude-code'];
3
+ const baseDir = __dirname;
4
+ const pkg = require('./package.json');
5
+
6
+ console.log('Syncing updated skills to all IDE targets...');
7
+ for (const ide of targets) {
8
+ try {
9
+ const result = installBundle({
10
+ baseDir,
11
+ ide,
12
+ scope: 'project',
13
+ version: pkg.version,
14
+ includeCompatibilityAliases: true
15
+ });
16
+ console.log(`Successfully synced to ${result.ide} (${result.skillCount} skills)`);
17
+ } catch (err) {
18
+ console.error(`Failed for ${ide}:`, err.message);
19
+ }
20
+ }
@@ -0,0 +1,55 @@
1
+ # Project Memory
2
+
3
+ > This file is automatically maintained by AI Agent Skills.
4
+ > It persists project understanding across conversations.
5
+ > **Do NOT delete this file** — it helps AI give better, context-aware responses.
6
+
7
+ ## Codex Memory Structure (when available)
8
+ - If the workspace has `memories/`, use it alongside this file.
9
+ - `memories/` = persistent user-level notes.
10
+ - `memories/session/` = temporary notes for current conversation.
11
+ - `memories/repo/` = repository-scoped technical facts and conventions.
12
+ - Keep `.ai-memory.md` as the cross-IDE source of truth; mirror only high-signal repo facts into `memories/repo/`.
13
+
14
+ ## Memory Compaction Rules (IMPORTANT)
15
+ - **Write style**: concise bullets, no paragraphs. Prefer numbers, filenames, and nouns over prose.
16
+ - **No duplication**: if a new note repeats an existing one, update the existing bullet instead of appending.
17
+ - **Deduping rule (anti-duplicate)**:
18
+ - Before writing, **scan the target section** for a similar bullet.
19
+ - Consider bullets “similar” if they match after: lowercasing + trimming + collapsing whitespace + removing trailing punctuation.
20
+ - If similar: **merge into 1 bullet** (keep the most specific wording, add missing file paths/IDs).
21
+ - Never keep 2 bullets that describe the same decision/issue/work item.
22
+ - **Hard limits**:
23
+ - Tech Stack: max 6 bullets
24
+ - Architecture: max 8 bullets
25
+ - Conventions: max 8 bullets
26
+ - Decisions: keep last 12 items
27
+ - Known Issues: keep last 20 items (closed issues can be removed once stable)
28
+ - Recent Work: keep last 15 items
29
+ - **Per bullet**: aim ≤ 140 characters. If longer, split into 2 bullets.
30
+ - **Always include**: files touched (paths), and why (1 short phrase).
31
+
32
+ ## Tech Stack
33
+ - Language: (auto-detected on first use)
34
+ - Framework: (auto-detected on first use)
35
+ - Database: (if any)
36
+ - Package manager: (auto-detected)
37
+
38
+ ## Architecture
39
+ - Pattern: (discovered)
40
+ - Key directories: (discovered)
41
+ - Entry points: (discovered)
42
+
43
+ ## Conventions
44
+ - Naming: (observed from codebase)
45
+ - File structure: (observed)
46
+ - Testing: (framework + patterns observed)
47
+
48
+ ## Decisions
49
+ <!-- Format: - [YYYY-MM-DD] Decision description and rationale -->
50
+
51
+ ## Known Issues
52
+ <!-- Format: - [status] Issue description -->
53
+
54
+ ## Recent Work
55
+ <!-- Format: - [YYYY-MM-DD] What was done, files changed, outcome -->
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: checklist
3
+ description: Reusable pre/post checklists for any skill execution
4
+ ---
5
+
6
+ ## Pre-Execution Checklist (Run before ANY skill)
7
+ - [ ] Read `.ai-memory.md` from project root
8
+ - [ ] Understand user intent (ask if unclear)
9
+ - [ ] Check if similar work was done before (from memory)
10
+ - [ ] Identify the correct agent for the domain
11
+ - [ ] Minimize blast radius: identify the smallest set of files that must change
12
+ - [ ] If any step is uncertain or could cause broad changes, ask before editing
13
+
14
+ ## Post-Execution Checklist (Run after ANY skill)
15
+ - [ ] All checklist items from the skill are satisfied
16
+ - [ ] No regressions introduced
17
+ - [ ] Code follows existing project conventions
18
+ - [ ] Update `.ai-memory.md` with findings (follow "Memory Compaction Rules")
19
+ - [ ] Dedupe `.ai-memory.md` updates: merge similar bullets instead of appending duplicates
20
+ - [ ] If `.ai-memory.md` exceeds 500 lines or sections exceed limits, compact it (see `.kiro/skills/_scripts/memory-compact.md`)
21
+ - [ ] Suggest related next steps
22
+
23
+ ## Code Quality Checklist
24
+ - [ ] No hardcoded secrets or credentials
25
+ - [ ] Error handling at system boundaries
26
+ - [ ] Input validation for user-facing code
27
+ - [ ] Existing tests still pass
28
+ - [ ] New code is covered by tests (if test framework exists)
29
+
30
+ ## Security Checklist
31
+ - [ ] No SQL injection vectors
32
+ - [ ] No XSS vulnerabilities
33
+ - [ ] No exposed secrets in code or logs
34
+ - [ ] Dependencies are up to date
35
+ - [ ] Access controls are appropriate
@@ -0,0 +1,142 @@
1
+ ---
2
+ name: memory-compact
3
+ description: Procedure to compact `.ai-memory.md` when it grows too long
4
+ ---
5
+
6
+ ## When to compact
7
+ Run this procedure when `.ai-memory.md` exceeds **500 lines** or when you notice:
8
+ - Duplicate or near-duplicate bullets
9
+ - Outdated information (old decisions, resolved issues, ancient work items)
10
+ - Verbose bullets that could be shortened
11
+ - Sections exceeding their hard limits (see Memory Compaction Rules)
12
+
13
+ ## Compaction procedure
14
+
15
+ ### 1. Check section limits (from `.ai-memory-template.md`)
16
+ - **Tech Stack**: max 6 bullets
17
+ - **Architecture**: max 8 bullets
18
+ - **Conventions**: max 8 bullets
19
+ - **Decisions**: keep last 12 items
20
+ - **Known Issues**: keep last 20 items (remove resolved/closed)
21
+ - **Recent Work**: keep last 15 items
22
+
23
+ ### 2. Dedupe within each section
24
+ For each section:
25
+ 1. Read all bullets
26
+ 2. Group similar bullets (same topic, same file, same decision)
27
+ 3. Merge groups into single bullets:
28
+ - Keep most specific wording
29
+ - Preserve all file paths, dates, IDs
30
+ - Remove redundant phrases
31
+
32
+ **Example:**
33
+ ```markdown
34
+ Before:
35
+ - [2024-01-15] Added auth middleware to protect routes
36
+ - [2024-01-16] Implemented authentication middleware in src/middleware/auth.js
37
+ - Auth middleware added for route protection
38
+
39
+ After:
40
+ - [2024-01-15] Added auth middleware (src/middleware/auth.js) to protect routes
41
+ ```
42
+
43
+ ### 3. Remove outdated items
44
+ - **Decisions**: Keep only decisions still relevant to current architecture
45
+ - **Known Issues**: Remove resolved/closed issues older than 30 days
46
+ - **Recent Work**: Keep only last 15 items (remove older)
47
+
48
+ ### 4. Shorten verbose bullets
49
+ Target: ≤ 140 characters per bullet
50
+
51
+ **Techniques:**
52
+ - Remove filler words: "basically", "essentially", "in order to"
53
+ - Use abbreviations: "impl" for "implemented", "cfg" for "config"
54
+ - Use file paths instead of descriptions: `src/auth.js` not "the authentication file"
55
+ - Use symbols: `+` for "added", `~` for "updated", `-` for "removed"
56
+
57
+ **Example:**
58
+ ```markdown
59
+ Before:
60
+ - [2024-01-15] We implemented a new authentication system that uses JWT tokens for user sessions in the backend API
61
+
62
+ After:
63
+ - [2024-01-15] + JWT auth system (src/api/auth.js) for user sessions
64
+ ```
65
+
66
+ ### 5. Enforce hard limits
67
+ If a section still exceeds limits after deduping and shortening:
68
+ - **Decisions**: Keep last 12, archive older ones in a comment
69
+ - **Known Issues**: Keep last 20, remove oldest resolved
70
+ - **Recent Work**: Keep last 15, remove oldest
71
+
72
+ **Archive pattern:**
73
+ ```markdown
74
+ ## Decisions
75
+ - [2024-03-01] Current decision 1
76
+ - [2024-02-28] Current decision 2
77
+ ...
78
+
79
+ <!-- Archived decisions (for reference):
80
+ - [2024-01-15] Old decision that's no longer relevant
81
+ -->
82
+ ```
83
+
84
+ ### 6. Verify compaction
85
+ After compacting:
86
+ - [ ] No section exceeds hard limits
87
+ - [ ] No duplicate bullets
88
+ - [ ] All bullets ≤ 140 characters (or split into 2)
89
+ - [ ] File paths preserved
90
+ - [ ] Dates preserved
91
+ - [ ] Recent/important info retained
92
+
93
+ ## Quick compaction (when in a hurry)
94
+ If you need to compact quickly:
95
+ 1. **Recent Work**: Keep last 15, delete rest
96
+ 2. **Known Issues**: Remove all resolved/closed, keep last 20
97
+ 3. **Decisions**: Keep last 12
98
+ 4. Run dedupe on remaining bullets (merge similar ones)
99
+
100
+ ## Automation tip
101
+ When updating memory, always:
102
+ 1. Check if section is at limit BEFORE adding
103
+ 2. If at limit, remove oldest item OR merge with existing
104
+ 3. Never append if it creates a duplicate
105
+
106
+ ## Example: Full compaction
107
+
108
+ **Before (verbose, duplicates, over limits):**
109
+ ```markdown
110
+ ## Recent Work
111
+ - [2024-01-10] Added login page
112
+ - [2024-01-11] Created login component
113
+ - [2024-01-12] Implemented login functionality
114
+ - [2024-01-13] Fixed login bug
115
+ - [2024-01-14] Updated login styles
116
+ - [2024-01-15] Added logout button
117
+ - [2024-01-16] Implemented logout functionality
118
+ - [2024-01-17] Fixed logout bug
119
+ - [2024-01-18] Added user profile page
120
+ - [2024-01-19] Created user profile component
121
+ - [2024-01-20] Implemented profile edit
122
+ - [2024-01-21] Fixed profile bug
123
+ - [2024-01-22] Added settings page
124
+ - [2024-01-23] Created settings component
125
+ - [2024-01-24] Implemented settings save
126
+ - [2024-01-25] Fixed settings bug
127
+ - [2024-01-26] Added dashboard
128
+ - [2024-01-27] Created dashboard component
129
+ ```
130
+
131
+ **After (compact, deduped, within limits):**
132
+ ```markdown
133
+ ## Recent Work
134
+ - [2024-01-27] + Dashboard (src/pages/Dashboard.jsx)
135
+ - [2024-01-26] + Settings page (src/pages/Settings.jsx) with save functionality
136
+ - [2024-01-22] + User profile page (src/pages/Profile.jsx) with edit feature
137
+ - [2024-01-15] + Login/logout (src/pages/Login.jsx, src/components/LogoutBtn.jsx)
138
+ ```
139
+
140
+ ## Related
141
+ - Read `.kiro/skills/_scripts/.ai-memory-template.md` for Memory Compaction Rules
142
+ - Read `.kiro/skills/_scripts/memory-dedupe.md` for dedupe procedure
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: memory-dedupe
3
+ description: Lightweight dedupe procedure for `.ai-memory.md` updates
4
+ ---
5
+
6
+ ## When to use
7
+ Run mentally for every memory update, especially when adding items to **Decisions**, **Known Issues**, or **Recent Work**.
8
+
9
+ ## Dedupe procedure (fast)
10
+ 1. Pick the **target section** (Decisions / Known Issues / Recent Work / etc.).
11
+ 2. Before adding a new bullet, scan existing bullets for a near-match.
12
+ 3. Normalize both bullets and compare:
13
+ - lowercase
14
+ - trim
15
+ - collapse whitespace
16
+ - remove trailing punctuation (`.`, `;`, `,`)
17
+ 4. If it’s the same idea:
18
+ - **merge** into the existing bullet
19
+ - keep the most concrete version (file paths, error codes, IDs, dates)
20
+ - remove the redundant one
21
+ 5. Only append a new bullet if it’s clearly a new fact/event/decision.
22
+
23
+ ## Examples
24
+ - Two bullets both say “Added auth middleware” → keep one, add the specific files touched.
25
+ - “Fix login bug” and “Fixed login issue” → merge into one with the root cause or PR/files.
26
+