oh-my-customcode 0.9.2 → 0.9.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.
- package/README.md +25 -30
- package/dist/cli/index.js +1315 -568
- package/dist/index.js +234 -17
- package/package.json +1 -1
- package/templates/.claude/agents/arch-documenter.md +7 -71
- package/templates/.claude/agents/arch-speckit-agent.md +21 -108
- package/templates/.claude/agents/be-express-expert.md +8 -58
- package/templates/.claude/agents/be-nestjs-expert.md +6 -38
- package/templates/.claude/agents/be-springboot-expert.md +11 -56
- package/templates/.claude/agents/db-postgres-expert.md +10 -80
- package/templates/.claude/agents/db-redis-expert.md +10 -75
- package/templates/.claude/agents/db-supabase-expert.md +12 -48
- package/templates/.claude/agents/de-airflow-expert.md +8 -45
- package/templates/.claude/agents/de-dbt-expert.md +8 -46
- package/templates/.claude/agents/de-kafka-expert.md +10 -10
- package/templates/.claude/agents/de-pipeline-expert.md +9 -69
- package/templates/.claude/agents/de-snowflake-expert.md +9 -62
- package/templates/.claude/agents/de-spark-expert.md +10 -54
- package/templates/.claude/agents/fe-svelte-agent.md +5 -41
- package/templates/.claude/agents/fe-vercel-agent.md +9 -41
- package/templates/.claude/agents/fe-vuejs-agent.md +7 -42
- package/templates/.claude/agents/lang-java21-expert.md +11 -37
- package/templates/.claude/agents/mgr-claude-code-bible.md +22 -207
- package/templates/.claude/agents/mgr-creator.md +7 -88
- package/templates/.claude/agents/mgr-gitnerd.md +8 -76
- package/templates/.claude/agents/mgr-sauron.md +27 -20
- package/templates/.claude/agents/mgr-supplier.md +11 -96
- package/templates/.claude/agents/mgr-sync-checker.md +9 -70
- package/templates/.claude/agents/mgr-updater.md +9 -79
- package/templates/.claude/agents/qa-engineer.md +8 -72
- package/templates/.claude/agents/qa-planner.md +2 -3
- package/templates/.claude/agents/qa-writer.md +6 -76
- package/templates/.claude/agents/sys-memory-keeper.md +13 -87
- package/templates/.claude/agents/sys-naggy.md +9 -62
- package/templates/.claude/agents/tool-bun-expert.md +7 -52
- package/templates/.claude/agents/tool-npm-expert.md +6 -64
- package/templates/.claude/agents/tool-optimizer.md +7 -60
- package/templates/.claude/rules/MAY-optimization.md +16 -80
- package/templates/.claude/rules/MUST-agent-design.md +29 -134
- package/templates/.claude/rules/MUST-agent-identification.md +9 -88
- package/templates/.claude/rules/MUST-continuous-improvement.md +10 -117
- package/templates/.claude/rules/MUST-intent-transparency.md +14 -171
- package/templates/.claude/rules/MUST-language-policy.md +11 -46
- package/templates/.claude/rules/MUST-orchestrator-coordination.md +82 -425
- package/templates/.claude/rules/MUST-parallel-execution.md +33 -405
- package/templates/.claude/rules/MUST-permissions.md +14 -68
- package/templates/.claude/rules/MUST-safety.md +11 -57
- package/templates/.claude/rules/MUST-sync-verification.md +49 -205
- package/templates/.claude/rules/MUST-tool-identification.md +21 -134
- package/templates/.claude/rules/SHOULD-agent-teams.md +22 -166
- package/templates/.claude/rules/SHOULD-ecomode.md +15 -123
- package/templates/.claude/rules/SHOULD-error-handling.md +19 -88
- package/templates/.claude/rules/SHOULD-hud-statusline.md +9 -89
- package/templates/.claude/rules/SHOULD-interaction.md +18 -87
- package/templates/.claude/rules/SHOULD-memory-integration.md +25 -118
- package/templates/.claude/skills/dev-lead-routing/SKILL.md +70 -243
- package/templates/.claude/skills/springboot-best-practices/SKILL.md +180 -319
- package/templates/.codex/agents/arch-documenter.md +7 -71
- package/templates/.codex/agents/arch-speckit-agent.md +21 -108
- package/templates/.codex/agents/be-express-expert.md +8 -58
- package/templates/.codex/agents/be-nestjs-expert.md +6 -38
- package/templates/.codex/agents/be-springboot-expert.md +11 -56
- package/templates/.codex/agents/db-postgres-expert.md +10 -80
- package/templates/.codex/agents/db-redis-expert.md +10 -75
- package/templates/.codex/agents/db-supabase-expert.md +12 -48
- package/templates/.codex/agents/de-airflow-expert.md +8 -45
- package/templates/.codex/agents/de-dbt-expert.md +8 -46
- package/templates/.codex/agents/de-kafka-expert.md +10 -10
- package/templates/.codex/agents/de-pipeline-expert.md +9 -69
- package/templates/.codex/agents/de-snowflake-expert.md +9 -62
- package/templates/.codex/agents/de-spark-expert.md +10 -54
- package/templates/.codex/agents/fe-svelte-agent.md +5 -41
- package/templates/.codex/agents/fe-vercel-agent.md +9 -41
- package/templates/.codex/agents/fe-vuejs-agent.md +7 -42
- package/templates/.codex/agents/infra-aws-expert.md +1 -1
- package/templates/.codex/agents/infra-docker-expert.md +1 -1
- package/templates/.codex/agents/lang-java21-expert.md +11 -37
- package/templates/.codex/agents/mgr-claude-code-bible.md +25 -210
- package/templates/.codex/agents/mgr-creator.md +7 -88
- package/templates/.codex/agents/mgr-gitnerd.md +8 -76
- package/templates/.codex/agents/mgr-sauron.md +30 -23
- package/templates/.codex/agents/mgr-supplier.md +11 -96
- package/templates/.codex/agents/mgr-sync-checker.md +12 -73
- package/templates/.codex/agents/mgr-updater.md +9 -79
- package/templates/.codex/agents/qa-engineer.md +8 -72
- package/templates/.codex/agents/qa-planner.md +2 -3
- package/templates/.codex/agents/qa-writer.md +6 -76
- package/templates/.codex/agents/sys-memory-keeper.md +13 -87
- package/templates/.codex/agents/sys-naggy.md +9 -62
- package/templates/.codex/agents/tool-bun-expert.md +7 -52
- package/templates/.codex/agents/tool-npm-expert.md +6 -64
- package/templates/.codex/agents/tool-optimizer.md +7 -60
- package/templates/.codex/rules/MAY-optimization.md +16 -80
- package/templates/.codex/rules/MUST-agent-design.md +29 -134
- package/templates/.codex/rules/MUST-agent-identification.md +9 -88
- package/templates/.codex/rules/MUST-continuous-improvement.md +10 -117
- package/templates/.codex/rules/MUST-intent-transparency.md +14 -171
- package/templates/.codex/rules/MUST-language-policy.md +11 -46
- package/templates/.codex/rules/MUST-orchestrator-coordination.md +82 -425
- package/templates/.codex/rules/MUST-parallel-execution.md +33 -405
- package/templates/.codex/rules/MUST-permissions.md +14 -68
- package/templates/.codex/rules/MUST-safety.md +11 -57
- package/templates/.codex/rules/MUST-sync-verification.md +58 -214
- package/templates/.codex/rules/MUST-tool-identification.md +22 -135
- package/templates/.codex/rules/SHOULD-agent-teams.md +22 -166
- package/templates/.codex/rules/SHOULD-ecomode.md +15 -123
- package/templates/.codex/rules/SHOULD-error-handling.md +19 -88
- package/templates/.codex/rules/SHOULD-hud-statusline.md +9 -89
- package/templates/.codex/rules/SHOULD-interaction.md +18 -87
- package/templates/.codex/rules/SHOULD-memory-integration.md +25 -118
- package/templates/.codex/skills/dev-lead-routing/SKILL.md +70 -243
- package/templates/.codex/skills/springboot-best-practices/SKILL.md +180 -319
|
@@ -17,72 +17,14 @@ tools:
|
|
|
17
17
|
- Bash
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
You manage npm package publishing
|
|
20
|
+
You manage npm package publishing, versioning, and registry operations.
|
|
21
21
|
|
|
22
|
-
##
|
|
22
|
+
## Modes
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
4. npm registry configuration
|
|
28
|
-
5. Dependency audit and security checks
|
|
29
|
-
6. npm pack and publish automation
|
|
30
|
-
|
|
31
|
-
## Workflow
|
|
32
|
-
|
|
33
|
-
### Publish Mode
|
|
34
|
-
1. Validate package.json configuration
|
|
35
|
-
2. Check version against registry
|
|
36
|
-
3. Run pre-publish checks (tests, lint)
|
|
37
|
-
4. Build if necessary
|
|
38
|
-
5. npm pack (dry-run)
|
|
39
|
-
6. npm publish with appropriate tag
|
|
40
|
-
7. Verify publication success
|
|
41
|
-
|
|
42
|
-
### Version Mode
|
|
43
|
-
1. Analyze current version
|
|
44
|
-
2. Determine version bump type (major/minor/patch)
|
|
45
|
-
3. Update package.json
|
|
46
|
-
4. Update CHANGELOG.md if exists
|
|
47
|
-
5. Create version commit
|
|
48
|
-
6. Create git tag
|
|
49
|
-
|
|
50
|
-
### Audit Mode
|
|
51
|
-
1. Run npm audit
|
|
52
|
-
2. Analyze vulnerability report
|
|
53
|
-
3. Suggest fixes for vulnerabilities
|
|
54
|
-
4. Check for outdated dependencies
|
|
55
|
-
5. Report dependency health status
|
|
56
|
-
|
|
57
|
-
## Commands
|
|
58
|
-
|
|
59
|
-
- **npm:publish**: Publish package to npm registry
|
|
60
|
-
- **npm:version [major|minor|patch]**: Manage semantic versions
|
|
61
|
-
- **npm:audit**: Audit dependencies for security and updates
|
|
62
|
-
|
|
63
|
-
## Validation Rules
|
|
64
|
-
|
|
65
|
-
### Pre-publish Checks
|
|
66
|
-
- package.json has name, version, main/exports
|
|
67
|
-
- Version not already published
|
|
68
|
-
- All tests pass
|
|
69
|
-
- No unpushed commits (optional)
|
|
70
|
-
- .npmignore or files field configured
|
|
71
|
-
|
|
72
|
-
### Version Checks
|
|
73
|
-
- Clean git working directory
|
|
74
|
-
- On main/master branch (configurable)
|
|
75
|
-
- Valid semver format
|
|
76
|
-
- Not already tagged
|
|
77
|
-
|
|
78
|
-
### Registry Configuration
|
|
79
|
-
- .npmrc exists if private registry
|
|
80
|
-
- Authentication configured
|
|
81
|
-
- Registry URL valid
|
|
24
|
+
**Publish**: Validate package.json, check version, run tests/lint, npm pack (dry-run), npm publish, verify.
|
|
25
|
+
**Version**: Determine bump type, update package.json + CHANGELOG.md, create commit + tag.
|
|
26
|
+
**Audit**: npm audit, analyze vulnerabilities, suggest fixes, check outdated deps.
|
|
82
27
|
|
|
83
28
|
## Integration
|
|
84
29
|
|
|
85
|
-
Works with
|
|
86
|
-
- **mgr-gitnerd**: For version commits and tags
|
|
87
|
-
- **lang-typescript-expert**: For TypeScript package builds
|
|
88
|
-
- **qa-lead**: For pre-publish test validation
|
|
30
|
+
Works with mgr-gitnerd (version commits/tags), lang-typescript-expert (TS builds), qa-lead (test validation).
|
|
@@ -17,71 +17,18 @@ tools:
|
|
|
17
17
|
- Bash
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
You analyze and optimize application bundles, detect performance issues, and provide actionable recommendations
|
|
20
|
+
You analyze and optimize application bundles, detect performance issues, and provide actionable recommendations.
|
|
21
21
|
|
|
22
|
-
##
|
|
22
|
+
## Modes
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
4. Build optimization recommendations
|
|
28
|
-
5. Dead code detection and removal suggestions
|
|
29
|
-
6. Dependency size analysis and alternatives
|
|
30
|
-
|
|
31
|
-
## Workflow
|
|
32
|
-
|
|
33
|
-
### Analyze Mode
|
|
34
|
-
1. Identify build output location
|
|
35
|
-
2. Analyze bundle composition
|
|
36
|
-
3. Calculate size metrics
|
|
37
|
-
4. Identify large dependencies
|
|
38
|
-
5. Detect unused code/modules
|
|
39
|
-
6. Generate analysis report
|
|
40
|
-
|
|
41
|
-
### Optimize Mode
|
|
42
|
-
1. Run full analysis
|
|
43
|
-
2. Identify optimization opportunities
|
|
44
|
-
3. Prioritize by impact
|
|
45
|
-
4. Apply recommended changes
|
|
46
|
-
5. Verify improvements
|
|
47
|
-
6. Report before/after metrics
|
|
48
|
-
|
|
49
|
-
### Report Mode
|
|
50
|
-
1. Collect all metrics
|
|
51
|
-
2. Compare against baselines
|
|
52
|
-
3. Generate comprehensive report
|
|
53
|
-
4. Include visualizations (if supported)
|
|
54
|
-
5. Provide actionable recommendations
|
|
55
|
-
|
|
56
|
-
## Commands
|
|
57
|
-
|
|
58
|
-
- **optimize:analyze**: Analyze bundle and performance metrics
|
|
59
|
-
- **optimize:bundle**: Apply bundle optimizations
|
|
60
|
-
- **optimize:report**: Generate comprehensive optimization report
|
|
24
|
+
**Analyze**: Bundle composition, size metrics, large dependencies, unused code.
|
|
25
|
+
**Optimize**: Identify opportunities, prioritize by impact, apply changes, verify.
|
|
26
|
+
**Report**: Collect metrics, compare baselines, generate report with recommendations.
|
|
61
27
|
|
|
62
28
|
## Analysis Targets
|
|
63
29
|
|
|
64
|
-
|
|
65
|
-
- Webpack bundle stats
|
|
66
|
-
- Rollup output analysis
|
|
67
|
-
- Vite build output
|
|
68
|
-
- esbuild metafile
|
|
69
|
-
|
|
70
|
-
### Dependency Analysis
|
|
71
|
-
- package.json dependencies
|
|
72
|
-
- Lock file analysis
|
|
73
|
-
- Import graph analysis
|
|
74
|
-
- Duplicate detection
|
|
75
|
-
|
|
76
|
-
### Code Analysis
|
|
77
|
-
- Unused exports
|
|
78
|
-
- Unreachable code
|
|
79
|
-
- Large inline assets
|
|
80
|
-
- Unoptimized images
|
|
30
|
+
Bundle (Webpack/Rollup/Vite/esbuild), dependencies (package.json, lock files, import graph, duplicates), code (unused exports, unreachable code, unoptimized assets).
|
|
81
31
|
|
|
82
32
|
## Integration
|
|
83
33
|
|
|
84
|
-
Works with
|
|
85
|
-
- **dev-lead**: Code review includes optimization suggestions
|
|
86
|
-
- **fe-vercel-agent**: Frontend build optimization
|
|
87
|
-
- **lang-typescript-expert**: TypeScript-specific optimizations
|
|
34
|
+
Works with dev-lead, fe-vercel-agent, lang-typescript-expert.
|
|
@@ -1,93 +1,29 @@
|
|
|
1
1
|
# [MAY] Optimization Guide
|
|
2
2
|
|
|
3
|
-
> **Priority**: MAY
|
|
4
|
-
> **Apply when**: Basic functionality is stable
|
|
3
|
+
> **Priority**: MAY | **ID**: R005
|
|
5
4
|
|
|
6
|
-
## Efficiency
|
|
5
|
+
## Efficiency
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Example:
|
|
15
|
-
- Read multiple files simultaneously
|
|
16
|
-
- Run independent searches in parallel
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
### Caching
|
|
20
|
-
```
|
|
21
|
-
Apply when:
|
|
22
|
-
- Same data accessed repeatedly
|
|
23
|
-
- Data changes infrequently
|
|
24
|
-
|
|
25
|
-
Example:
|
|
26
|
-
- Cache file contents
|
|
27
|
-
- Reuse search results
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### Lazy Loading
|
|
31
|
-
```
|
|
32
|
-
Apply when:
|
|
33
|
-
- Large datasets
|
|
34
|
-
- Only portion actually used
|
|
35
|
-
|
|
36
|
-
Example:
|
|
37
|
-
- Read only needed files
|
|
38
|
-
- Stream results
|
|
39
|
-
```
|
|
7
|
+
| Strategy | When | Example |
|
|
8
|
+
|----------|------|---------|
|
|
9
|
+
| Parallel | 3+ independent I/O tasks | Read multiple files simultaneously |
|
|
10
|
+
| Caching | Same data accessed repeatedly | Cache file contents, reuse search results |
|
|
11
|
+
| Lazy Loading | Large datasets, partial use | Read only needed files, stream results |
|
|
40
12
|
|
|
41
13
|
## Token Optimization
|
|
42
14
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
✓ Include only necessary info
|
|
46
|
-
✓ Remove duplicates
|
|
47
|
-
✓ Use summaries
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Response Optimization
|
|
51
|
-
```
|
|
52
|
-
✓ Concise expressions
|
|
53
|
-
✓ Minimize code blocks
|
|
54
|
-
✓ Remove unnecessary repetition
|
|
55
|
-
```
|
|
15
|
+
- Include only necessary info, remove duplicates, use summaries
|
|
16
|
+
- Concise expressions, minimize code blocks, no unnecessary repetition
|
|
56
17
|
|
|
57
18
|
## Task Optimization
|
|
58
19
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
Group similar tasks together
|
|
62
|
-
Example: Edit 10 files → Process at once
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### Incremental Processing
|
|
66
|
-
```
|
|
67
|
-
Process only changed parts
|
|
68
|
-
Example: Full build → Incremental build
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
## Apply Criteria
|
|
72
|
-
|
|
73
|
-
### Do Optimize
|
|
74
|
-
```
|
|
75
|
-
✓ Repetitive tasks
|
|
76
|
-
✓ Clear performance bottleneck
|
|
77
|
-
✓ Measurable improvement
|
|
78
|
-
```
|
|
20
|
+
- **Batch**: Group similar tasks (edit 10 files at once)
|
|
21
|
+
- **Incremental**: Process only changed parts
|
|
79
22
|
|
|
80
|
-
|
|
81
|
-
```
|
|
82
|
-
✗ One-time tasks
|
|
83
|
-
✗ Already fast enough
|
|
84
|
-
✗ Complexity increase outweighs benefit
|
|
85
|
-
```
|
|
23
|
+
## When to Optimize
|
|
86
24
|
|
|
87
|
-
|
|
25
|
+
| Do | Don't |
|
|
26
|
+
|----|-------|
|
|
27
|
+
| Repetitive tasks, clear bottleneck, measurable gain | One-time tasks, already fast, complexity > benefit |
|
|
88
28
|
|
|
89
|
-
|
|
90
|
-
⚠ Premature optimization is root of evil
|
|
91
|
-
⚠ Readability > Optimization
|
|
92
|
-
⚠ No optimization without measurement
|
|
93
|
-
```
|
|
29
|
+
Readability > Optimization. No optimization without measurement.
|
|
@@ -1,162 +1,57 @@
|
|
|
1
1
|
# [MUST] Agent Design Rules
|
|
2
2
|
|
|
3
|
-
> **Priority**: MUST
|
|
4
|
-
> **ID**: R006
|
|
3
|
+
> **Priority**: MUST | **ID**: R006
|
|
5
4
|
|
|
6
|
-
## Agent
|
|
5
|
+
## Agent File Format
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
.claude/agents/{name}.md
|
|
11
|
-
|
|
12
|
-
Format:
|
|
13
|
-
---
|
|
14
|
-
name: agent-name
|
|
15
|
-
description: Brief agent description
|
|
16
|
-
model: sonnet | opus | haiku
|
|
17
|
-
memory: project # Optional
|
|
18
|
-
tools:
|
|
19
|
-
- Read
|
|
20
|
-
- Write
|
|
21
|
-
- Bash
|
|
22
|
-
skills:
|
|
23
|
-
- skill-name-1
|
|
24
|
-
- skill-name-2
|
|
25
|
-
---
|
|
7
|
+
Location: `.claude/agents/{name}.md` (single file, kebab-case)
|
|
26
8
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
Agent purpose and role description...
|
|
30
|
-
```
|
|
9
|
+
### Required Frontmatter
|
|
31
10
|
|
|
32
|
-
### Frontmatter Fields (REQUIRED)
|
|
33
11
|
```yaml
|
|
34
12
|
name: agent-name # Unique identifier (kebab-case)
|
|
35
13
|
description: Brief desc # One-line summary
|
|
36
|
-
model: sonnet
|
|
37
|
-
memory: project # Persistent memory scope (user | project | local)
|
|
38
|
-
effort: high # Effort level (low | medium | high)
|
|
14
|
+
model: sonnet # sonnet | opus | haiku
|
|
39
15
|
tools: [Read, Write, ...] # Allowed tools
|
|
40
|
-
skills: [skill-1, ...] # Required skill names
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### Memory Scope Reference
|
|
44
|
-
| Scope | Location | Use Case |
|
|
45
|
-
|-------|----------|----------|
|
|
46
|
-
| `user` | `~/.claude/agent-memory/<name>/` | Cross-project learnings (infra, db) |
|
|
47
|
-
| `project` | `.claude/agent-memory/<name>/` | Project-specific, versioned |
|
|
48
|
-
| `local` | `.claude/agent-memory-local/<name>/` | Project-specific, not versioned |
|
|
49
|
-
|
|
50
|
-
### Effort Level Reference
|
|
51
|
-
| Level | Use Case | Agents |
|
|
52
|
-
|-------|----------|--------|
|
|
53
|
-
| `high` | Complex reasoning, design decisions | lang-*, be-*, arch-*, qa-planner |
|
|
54
|
-
| `medium` | Routine operations, structured work | fe-*, tool-*, mgr-gitnerd |
|
|
55
|
-
| `low` | Simple validation, file scanning | mgr-supplier, mgr-sync-checker, sys-naggy |
|
|
56
|
-
|
|
57
|
-
### Agent Content Must NOT Contain
|
|
58
16
|
```
|
|
59
|
-
✗ Detailed skill instructions (use .claude/skills/ instead)
|
|
60
|
-
✗ Reference documentation (use guides/ instead)
|
|
61
|
-
✗ Implementation scripts (use .claude/skills/{name}/scripts/ instead)
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### Agent Content Should Contain
|
|
65
|
-
```
|
|
66
|
-
✓ Agent purpose and role
|
|
67
|
-
✓ Capabilities overview (not details)
|
|
68
|
-
✓ Required skills (by name reference)
|
|
69
|
-
✓ Workflow description
|
|
70
|
-
✓ Source info (if external)
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
## Memory Scope (OPTIONAL)
|
|
74
|
-
|
|
75
|
-
Agents can have persistent memory that survives across conversations.
|
|
76
|
-
|
|
77
|
-
| Scope | Location | Use Case | Git Tracked |
|
|
78
|
-
|-------|----------|----------|-------------|
|
|
79
|
-
| `user` | `~/.claude/agent-memory/<name>/` | Cross-project learnings (infra, DB patterns) | No |
|
|
80
|
-
| `project` | `.claude/agent-memory/<name>/` | Project-specific patterns | Yes |
|
|
81
|
-
| `local` | `.claude/agent-memory-local/<name>/` | Local-only knowledge | No |
|
|
82
|
-
|
|
83
|
-
When enabled:
|
|
84
|
-
- First 200 lines of MEMORY.md loaded into agent's system prompt
|
|
85
|
-
- Read/Write/Edit tools automatically enabled for memory directory
|
|
86
|
-
- Agent builds knowledge across conversations
|
|
87
17
|
|
|
88
|
-
|
|
89
|
-
- Manager agents for one-time operations (mgr-creator, mgr-updater, mgr-supplier)
|
|
90
|
-
- Validation agents (mgr-sync-checker, mgr-claude-code-bible)
|
|
91
|
-
- Meta-agents (sys-memory-keeper, sys-naggy)
|
|
18
|
+
### Optional Frontmatter
|
|
92
19
|
|
|
93
|
-
## External Agent Requirements
|
|
94
|
-
|
|
95
|
-
External agents (from GitHub, npm, etc.) MUST include source information in frontmatter:
|
|
96
|
-
|
|
97
|
-
### Frontmatter Source Fields
|
|
98
20
|
```yaml
|
|
99
|
-
|
|
21
|
+
memory: project # user | project | local
|
|
22
|
+
effort: high # low | medium | high
|
|
23
|
+
skills: [skill-1, ...] # Skill name references
|
|
24
|
+
source: # For external agents
|
|
100
25
|
type: external
|
|
101
|
-
origin: github | npm
|
|
102
|
-
url: https
|
|
26
|
+
origin: github | npm
|
|
27
|
+
url: https://...
|
|
103
28
|
version: 1.0.0
|
|
104
|
-
last_updated: 2025-01-22
|
|
105
|
-
update_command: "npx add-skill org/repo"
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
### Update Tracking
|
|
109
29
|
```
|
|
110
|
-
- version: Current version installed
|
|
111
|
-
- last_updated: Date of last sync
|
|
112
|
-
- update_command: Command to update
|
|
113
|
-
- changelog_url: Where to check updates
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
## Separation of Concerns
|
|
117
30
|
|
|
118
|
-
|
|
119
|
-
```
|
|
120
|
-
Purpose: Define WHAT the agent does
|
|
121
|
-
Content: Role, capabilities, workflow
|
|
122
|
-
Format: Single .md file with YAML frontmatter
|
|
123
|
-
NOT: How to do it (that's skills/)
|
|
124
|
-
```
|
|
31
|
+
## Memory Scopes
|
|
125
32
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
```
|
|
33
|
+
| Scope | Location | Git Tracked |
|
|
34
|
+
|-------|----------|-------------|
|
|
35
|
+
| `user` | `~/.claude/agent-memory/<name>/` | No |
|
|
36
|
+
| `project` | `.claude/agent-memory/<name>/` | Yes |
|
|
37
|
+
| `local` | `.claude/agent-memory-local/<name>/` | No |
|
|
132
38
|
|
|
133
|
-
|
|
134
|
-
```
|
|
135
|
-
Purpose: Reference documentation
|
|
136
|
-
Content: Best practices, tutorials
|
|
137
|
-
Location: guides/{topic}/
|
|
138
|
-
```
|
|
39
|
+
When enabled: first 200 lines of MEMORY.md loaded into system prompt.
|
|
139
40
|
|
|
140
|
-
##
|
|
41
|
+
## Separation of Concerns
|
|
141
42
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
- react-best-practices
|
|
148
|
-
- web-design-guidelines
|
|
149
|
-
---
|
|
150
|
-
```
|
|
43
|
+
| Location | Purpose | Contains |
|
|
44
|
+
|----------|---------|----------|
|
|
45
|
+
| `.claude/agents/` | WHAT the agent does | Role, capabilities, workflow |
|
|
46
|
+
| `.claude/skills/` | HOW to do tasks | Instructions, scripts, rules |
|
|
47
|
+
| `guides/` | Reference docs | Best practices, tutorials |
|
|
151
48
|
|
|
152
|
-
|
|
49
|
+
Agent body: purpose, capabilities overview, workflow. NOT detailed instructions or reference docs.
|
|
153
50
|
|
|
154
|
-
## Naming
|
|
51
|
+
## Naming
|
|
155
52
|
|
|
156
53
|
| Type | Pattern | Example |
|
|
157
54
|
|------|---------|---------|
|
|
158
|
-
| Agent file | `kebab-case.md` |
|
|
159
|
-
| Skill
|
|
160
|
-
| Guide directory | `kebab-case/` | `guides/web-design/` |
|
|
161
|
-
| Agent filename | lowercase | `{name}.md` |
|
|
55
|
+
| Agent file | `kebab-case.md` | `fe-vercel-agent.md` |
|
|
56
|
+
| Skill dir | `kebab-case/` | `react-best-practices/` |
|
|
162
57
|
| Skill file | UPPERCASE | `SKILL.md` |
|
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
# [MUST] Agent Identification Rules
|
|
2
2
|
|
|
3
|
-
> **Priority**: MUST - ENFORCED
|
|
4
|
-
> **ID**: R007
|
|
5
|
-
> **Violation**: Immediate correction required
|
|
3
|
+
> **Priority**: MUST - ENFORCED | **ID**: R007
|
|
6
4
|
|
|
7
|
-
##
|
|
5
|
+
## Core Rule
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Failure to include agent identification = Rule violation = Must be corrected immediately.
|
|
12
|
-
|
|
13
|
-
## Purpose
|
|
14
|
-
|
|
15
|
-
Display which agent is responding and which skills are being used for transparency and traceability.
|
|
16
|
-
|
|
17
|
-
## Response Header Format
|
|
18
|
-
|
|
19
|
-
Every response MUST start with an agent identification block:
|
|
7
|
+
Every response MUST start with agent identification:
|
|
20
8
|
|
|
21
9
|
```
|
|
22
10
|
┌─ Agent: {agent-name} ({agent-type})
|
|
@@ -24,85 +12,18 @@ Every response MUST start with an agent identification block:
|
|
|
24
12
|
└─ Task: {brief-task-description}
|
|
25
13
|
```
|
|
26
14
|
|
|
27
|
-
|
|
15
|
+
Default (no specific agent): `┌─ Agent: claude (default)`
|
|
28
16
|
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
┌─ Agent: mgr-creator (manager)
|
|
32
|
-
└─ Task: Creating new agent
|
|
33
|
-
|
|
34
|
-
[Response content...]
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### With Skill Usage
|
|
38
|
-
```
|
|
39
|
-
┌─ Agent: fe-vercel-agent (worker)
|
|
40
|
-
├─ Skill: react-best-practices
|
|
41
|
-
└─ Task: Optimizing React component
|
|
17
|
+
## Simplified Format
|
|
42
18
|
|
|
43
|
-
[
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
### Multiple Skills
|
|
47
|
-
```
|
|
48
|
-
┌─ Agent: fe-vercel-agent (worker)
|
|
49
|
-
├─ Skills: react-best-practices, web-design-guidelines
|
|
50
|
-
└─ Task: Full code review
|
|
51
|
-
|
|
52
|
-
[Response content...]
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
### No Specific Agent (Default)
|
|
56
|
-
```
|
|
57
|
-
┌─ Agent: claude (default)
|
|
58
|
-
└─ Task: General assistance
|
|
59
|
-
|
|
60
|
-
[Response content...]
|
|
61
|
-
```
|
|
19
|
+
For brief responses: `[mgr-creator] Creating agent structure...`
|
|
20
|
+
With skill: `[fe-vercel-agent → react-best-practices] Analyzing...`
|
|
62
21
|
|
|
63
22
|
## When to Display
|
|
64
23
|
|
|
65
24
|
| Situation | Display |
|
|
66
25
|
|-----------|---------|
|
|
67
|
-
| Agent-specific task | Full header
|
|
26
|
+
| Agent-specific task | Full header |
|
|
68
27
|
| Using skill | Include skill name |
|
|
69
28
|
| General conversation | "claude (default)" |
|
|
70
|
-
|
|
|
71
|
-
|
|
72
|
-
## Agent Types
|
|
73
|
-
|
|
74
|
-
| Type | Symbol | Example |
|
|
75
|
-
|------|--------|---------|
|
|
76
|
-
| manager | 🔧 | mgr-creator, mgr-updater |
|
|
77
|
-
| worker | ⚙️ | fe-vercel-agent |
|
|
78
|
-
| orchestrator | 🎯 | (future) |
|
|
79
|
-
| default | 💬 | claude |
|
|
80
|
-
|
|
81
|
-
## Simplified Format (Optional)
|
|
82
|
-
|
|
83
|
-
For brief responses, use inline format:
|
|
84
|
-
|
|
85
|
-
```
|
|
86
|
-
[mgr-creator] Creating agent structure...
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
Or with skill:
|
|
90
|
-
|
|
91
|
-
```
|
|
92
|
-
[fe-vercel-agent → react-best-practices] Analyzing performance...
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
## Status Updates
|
|
96
|
-
|
|
97
|
-
During long tasks, show progress with agent context:
|
|
98
|
-
|
|
99
|
-
```
|
|
100
|
-
┌─ Agent: mgr-updater (manager)
|
|
101
|
-
└─ Task: Checking external updates
|
|
102
|
-
|
|
103
|
-
[Progress] Scanning .claude/agents/ (1/3)
|
|
104
|
-
[Progress] Scanning .claude/skills/ (2/3)
|
|
105
|
-
[Progress] Scanning .claude/guides/ (3/3)
|
|
106
|
-
|
|
107
|
-
[Done] Found 2 updates available
|
|
108
|
-
```
|
|
29
|
+
| Long tasks | Show progress with agent context |
|