oh-my-customcode 0.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.
- package/LICENSE +21 -0
- package/README.md +287 -0
- package/dist/cli/index.js +13299 -0
- package/dist/index.js +927 -0
- package/package.json +74 -0
- package/templates/.claude/contexts/dev.md +20 -0
- package/templates/.claude/contexts/ecomode.md +63 -0
- package/templates/.claude/contexts/index.yaml +41 -0
- package/templates/.claude/contexts/research.md +28 -0
- package/templates/.claude/contexts/review.md +23 -0
- package/templates/.claude/hooks/hooks.json +185 -0
- package/templates/.claude/hooks/hud/index.yaml +27 -0
- package/templates/.claude/hooks/hud/update-status.sh +32 -0
- package/templates/.claude/hooks/index.yaml +46 -0
- package/templates/.claude/hooks/memory-persistence/pre-compact.sh +37 -0
- package/templates/.claude/hooks/memory-persistence/session-end.sh +64 -0
- package/templates/.claude/hooks/memory-persistence/session-start.sh +41 -0
- package/templates/.claude/hooks/strategic-compact/suggest-compact.sh +50 -0
- package/templates/.claude/install-hooks.sh +100 -0
- package/templates/.claude/rules/MAY-optimization.md +93 -0
- package/templates/.claude/rules/MUST-agent-design.md +107 -0
- package/templates/.claude/rules/MUST-agent-identification.md +108 -0
- package/templates/.claude/rules/MUST-continuous-improvement.md +132 -0
- package/templates/.claude/rules/MUST-intent-transparency.md +199 -0
- package/templates/.claude/rules/MUST-language-policy.md +62 -0
- package/templates/.claude/rules/MUST-orchestrator-coordination.md +266 -0
- package/templates/.claude/rules/MUST-parallel-execution.md +341 -0
- package/templates/.claude/rules/MUST-permissions.md +84 -0
- package/templates/.claude/rules/MUST-safety.md +69 -0
- package/templates/.claude/rules/MUST-sync-verification.md +219 -0
- package/templates/.claude/rules/MUST-tool-identification.md +112 -0
- package/templates/.claude/rules/SHOULD-ecomode.md +145 -0
- package/templates/.claude/rules/SHOULD-error-handling.md +102 -0
- package/templates/.claude/rules/SHOULD-hud-statusline.md +89 -0
- package/templates/.claude/rules/SHOULD-interaction.md +103 -0
- package/templates/.claude/rules/SHOULD-memory-integration.md +114 -0
- package/templates/.claude/rules/SHOULD-pipeline-mode.md +165 -0
- package/templates/.claude/rules/index.yaml +125 -0
- package/templates/.claude/uninstall-hooks.sh +52 -0
- package/templates/CLAUDE.md.en +259 -0
- package/templates/CLAUDE.md.ko +259 -0
- package/templates/agents/index.yaml +237 -0
- package/templates/agents/infra-engineer/aws-expert/AGENT.md +47 -0
- package/templates/agents/infra-engineer/aws-expert/index.yaml +27 -0
- package/templates/agents/infra-engineer/docker-expert/AGENT.md +47 -0
- package/templates/agents/infra-engineer/docker-expert/index.yaml +27 -0
- package/templates/agents/manager/creator/AGENT.md +274 -0
- package/templates/agents/manager/creator/index.yaml +66 -0
- package/templates/agents/manager/gitnerd/AGENT.md +91 -0
- package/templates/agents/manager/gitnerd/index.yaml +55 -0
- package/templates/agents/manager/sauron/AGENT.md +153 -0
- package/templates/agents/manager/sauron/index.yaml +52 -0
- package/templates/agents/manager/supplier/AGENT.md +142 -0
- package/templates/agents/manager/supplier/index.yaml +31 -0
- package/templates/agents/manager/sync-checker/AGENT.md +34 -0
- package/templates/agents/manager/sync-checker/index.yaml +32 -0
- package/templates/agents/manager/updater/AGENT.md +125 -0
- package/templates/agents/manager/updater/index.yaml +31 -0
- package/templates/agents/orchestrator/dev-lead/AGENT.md +116 -0
- package/templates/agents/orchestrator/dev-lead/index.yaml +73 -0
- package/templates/agents/orchestrator/planner/AGENT.md +102 -0
- package/templates/agents/orchestrator/planner/index.yaml +38 -0
- package/templates/agents/orchestrator/qa-lead/AGENT.md +92 -0
- package/templates/agents/orchestrator/qa-lead/index.yaml +40 -0
- package/templates/agents/orchestrator/secretary/AGENT.md +132 -0
- package/templates/agents/orchestrator/secretary/index.yaml +55 -0
- package/templates/agents/qa-team/qa-engineer/AGENT.md +98 -0
- package/templates/agents/qa-team/qa-engineer/index.yaml +59 -0
- package/templates/agents/qa-team/qa-planner/AGENT.md +75 -0
- package/templates/agents/qa-team/qa-planner/index.yaml +47 -0
- package/templates/agents/qa-team/qa-writer/AGENT.md +98 -0
- package/templates/agents/qa-team/qa-writer/index.yaml +44 -0
- package/templates/agents/sw-architect/documenter/AGENT.md +120 -0
- package/templates/agents/sw-architect/documenter/index.yaml +39 -0
- package/templates/agents/sw-architect/speckit-agent/AGENT.md +127 -0
- package/templates/agents/sw-architect/speckit-agent/index.yaml +78 -0
- package/templates/agents/sw-engineer/backend/express-expert/AGENT.md +132 -0
- package/templates/agents/sw-engineer/backend/express-expert/index.yaml +36 -0
- package/templates/agents/sw-engineer/backend/fastapi-expert/AGENT.md +47 -0
- package/templates/agents/sw-engineer/backend/fastapi-expert/index.yaml +27 -0
- package/templates/agents/sw-engineer/backend/go-backend-expert/AGENT.md +47 -0
- package/templates/agents/sw-engineer/backend/go-backend-expert/index.yaml +27 -0
- package/templates/agents/sw-engineer/backend/nestjs-expert/AGENT.md +107 -0
- package/templates/agents/sw-engineer/backend/nestjs-expert/index.yaml +43 -0
- package/templates/agents/sw-engineer/backend/springboot-expert/AGENT.md +103 -0
- package/templates/agents/sw-engineer/backend/springboot-expert/index.yaml +69 -0
- package/templates/agents/sw-engineer/frontend/svelte-agent/AGENT.md +71 -0
- package/templates/agents/sw-engineer/frontend/svelte-agent/index.yaml +41 -0
- package/templates/agents/sw-engineer/frontend/vercel-agent/AGENT.md +67 -0
- package/templates/agents/sw-engineer/frontend/vercel-agent/index.yaml +43 -0
- package/templates/agents/sw-engineer/frontend/vuejs-agent/AGENT.md +71 -0
- package/templates/agents/sw-engineer/frontend/vuejs-agent/index.yaml +48 -0
- package/templates/agents/sw-engineer/language/golang-expert/AGENT.md +47 -0
- package/templates/agents/sw-engineer/language/golang-expert/index.yaml +27 -0
- package/templates/agents/sw-engineer/language/java21-expert/AGENT.md +122 -0
- package/templates/agents/sw-engineer/language/java21-expert/index.yaml +51 -0
- package/templates/agents/sw-engineer/language/kotlin-expert/AGENT.md +47 -0
- package/templates/agents/sw-engineer/language/kotlin-expert/index.yaml +27 -0
- package/templates/agents/sw-engineer/language/python-expert/AGENT.md +47 -0
- package/templates/agents/sw-engineer/language/python-expert/index.yaml +27 -0
- package/templates/agents/sw-engineer/language/rust-expert/AGENT.md +47 -0
- package/templates/agents/sw-engineer/language/rust-expert/index.yaml +27 -0
- package/templates/agents/sw-engineer/language/typescript-expert/AGENT.md +47 -0
- package/templates/agents/sw-engineer/language/typescript-expert/index.yaml +27 -0
- package/templates/agents/sw-engineer/tooling/bun-expert/AGENT.md +73 -0
- package/templates/agents/sw-engineer/tooling/bun-expert/index.yaml +46 -0
- package/templates/agents/sw-engineer/tooling/npm-expert/AGENT.md +160 -0
- package/templates/agents/sw-engineer/tooling/npm-expert/index.yaml +45 -0
- package/templates/agents/sw-engineer/tooling/optimizer/AGENT.md +170 -0
- package/templates/agents/sw-engineer/tooling/optimizer/index.yaml +45 -0
- package/templates/agents/system/memory-keeper/AGENT.md +126 -0
- package/templates/agents/system/memory-keeper/index.yaml +45 -0
- package/templates/agents/system/naggy/AGENT.md +72 -0
- package/templates/agents/system/naggy/index.yaml +35 -0
- package/templates/commands/COMMANDS.md +136 -0
- package/templates/commands/creator/agent.md +121 -0
- package/templates/commands/dev/refactor.md +126 -0
- package/templates/commands/dev/review.md +82 -0
- package/templates/commands/git/branch.yaml +8 -0
- package/templates/commands/git/commit.yaml +4 -0
- package/templates/commands/git/pr.yaml +4 -0
- package/templates/commands/git/status.yaml +4 -0
- package/templates/commands/git/sync.yaml +4 -0
- package/templates/commands/index.yaml +225 -0
- package/templates/commands/intent/explain.md +144 -0
- package/templates/commands/memory/recall.md +164 -0
- package/templates/commands/memory/save.md +128 -0
- package/templates/commands/naggy/add.yaml +8 -0
- package/templates/commands/naggy/done.yaml +8 -0
- package/templates/commands/naggy/list.yaml +4 -0
- package/templates/commands/naggy/priority.yaml +11 -0
- package/templates/commands/naggy/remind.yaml +4 -0
- package/templates/commands/npm/audit.yaml +62 -0
- package/templates/commands/npm/publish.yaml +52 -0
- package/templates/commands/npm/version.yaml +62 -0
- package/templates/commands/optimize/analyze.yaml +34 -0
- package/templates/commands/optimize/bundle.yaml +50 -0
- package/templates/commands/optimize/report.yaml +56 -0
- package/templates/commands/pipeline/list.md +81 -0
- package/templates/commands/pipeline/run.md +127 -0
- package/templates/commands/sauron/quick.yaml +4 -0
- package/templates/commands/sauron/report.yaml +4 -0
- package/templates/commands/sauron/watch.yaml +4 -0
- package/templates/commands/supplier/audit.md +133 -0
- package/templates/commands/supplier/fix.md +121 -0
- package/templates/commands/sync/agents.yaml +4 -0
- package/templates/commands/sync/check.yaml +4 -0
- package/templates/commands/sync/commands.yaml +4 -0
- package/templates/commands/sync/docs.yaml +4 -0
- package/templates/commands/sync/fix.yaml +4 -0
- package/templates/commands/system/help.md +137 -0
- package/templates/commands/system/lists.md +86 -0
- package/templates/commands/system/status.md +163 -0
- package/templates/commands/updater/docs.md +165 -0
- package/templates/commands/updater/external.md +214 -0
- package/templates/guides/aws/common-patterns.md +169 -0
- package/templates/guides/aws/index.yaml +26 -0
- package/templates/guides/aws/well-architected.md +143 -0
- package/templates/guides/claude-code/01-overview.md +42 -0
- package/templates/guides/claude-code/03-tools.md +107 -0
- package/templates/guides/claude-code/04-agent-skills.md +90 -0
- package/templates/guides/claude-code/05-agent-sdk.md +129 -0
- package/templates/guides/claude-code/06-mcp.md +165 -0
- package/templates/guides/claude-code/07-prompt-engineering.md +100 -0
- package/templates/guides/claude-code/08-testing.md +58 -0
- package/templates/guides/claude-code/09-guardrails.md +80 -0
- package/templates/guides/claude-code/10-monitoring.md +89 -0
- package/templates/guides/claude-code/index.yaml +51 -0
- package/templates/guides/docker/compose-best-practices.md +284 -0
- package/templates/guides/docker/dockerfile-best-practices.md +262 -0
- package/templates/guides/docker/index.yaml +26 -0
- package/templates/guides/fastapi/best-practices.md +232 -0
- package/templates/guides/fastapi/index.yaml +21 -0
- package/templates/guides/go-backend/index.yaml +26 -0
- package/templates/guides/go-backend/project-layout.md +243 -0
- package/templates/guides/go-backend/uber-style.md +212 -0
- package/templates/guides/golang/concurrency.md +282 -0
- package/templates/guides/golang/effective-go.md +309 -0
- package/templates/guides/golang/error-handling.md +250 -0
- package/templates/guides/golang/index.yaml +27 -0
- package/templates/guides/index.yaml +101 -0
- package/templates/guides/kotlin/coding-conventions.md +247 -0
- package/templates/guides/kotlin/idioms.md +234 -0
- package/templates/guides/kotlin/index.yaml +26 -0
- package/templates/guides/python/index.yaml +26 -0
- package/templates/guides/python/pep8-style-guide.md +202 -0
- package/templates/guides/python/zen-of-python.md +79 -0
- package/templates/guides/rust/error-handling.md +262 -0
- package/templates/guides/rust/index.yaml +26 -0
- package/templates/guides/rust/ownership.md +180 -0
- package/templates/guides/springboot/best-practices.md +361 -0
- package/templates/guides/springboot/index.yaml +22 -0
- package/templates/guides/typescript/advanced-types.md +225 -0
- package/templates/guides/typescript/index.yaml +26 -0
- package/templates/guides/typescript/type-system.md +219 -0
- package/templates/guides/web-design/accessibility.md +66 -0
- package/templates/guides/web-design/index.yaml +20 -0
- package/templates/guides/web-design/performance.md +102 -0
- package/templates/pipelines/examples/code-review.yaml +66 -0
- package/templates/pipelines/index.yaml +18 -0
- package/templates/pipelines/templates/pipeline-template.yaml +50 -0
- package/templates/skills/backend/fastapi-best-practices/SKILL.md +269 -0
- package/templates/skills/backend/fastapi-best-practices/index.yaml +25 -0
- package/templates/skills/backend/go-backend-best-practices/SKILL.md +337 -0
- package/templates/skills/backend/go-backend-best-practices/index.yaml +26 -0
- package/templates/skills/backend/springboot-best-practices/SKILL.md +356 -0
- package/templates/skills/backend/springboot-best-practices/index.yaml +27 -0
- package/templates/skills/development/go-best-practices/SKILL.md +202 -0
- package/templates/skills/development/go-best-practices/index.yaml +25 -0
- package/templates/skills/development/kotlin-best-practices/SKILL.md +255 -0
- package/templates/skills/development/kotlin-best-practices/index.yaml +27 -0
- package/templates/skills/development/python-best-practices/SKILL.md +221 -0
- package/templates/skills/development/python-best-practices/index.yaml +25 -0
- package/templates/skills/development/react-best-practices/SKILL.md +100 -0
- package/templates/skills/development/react-best-practices/index.yaml +39 -0
- package/templates/skills/development/rust-best-practices/SKILL.md +266 -0
- package/templates/skills/development/rust-best-practices/index.yaml +26 -0
- package/templates/skills/development/typescript-best-practices/SKILL.md +320 -0
- package/templates/skills/development/typescript-best-practices/index.yaml +28 -0
- package/templates/skills/development/vercel-deploy/SKILL.md +73 -0
- package/templates/skills/development/vercel-deploy/index.yaml +30 -0
- package/templates/skills/development/web-design-guidelines/SKILL.md +117 -0
- package/templates/skills/development/web-design-guidelines/index.yaml +34 -0
- package/templates/skills/index.yaml +129 -0
- package/templates/skills/infrastructure/aws-best-practices/SKILL.md +279 -0
- package/templates/skills/infrastructure/aws-best-practices/index.yaml +27 -0
- package/templates/skills/infrastructure/docker-best-practices/SKILL.md +274 -0
- package/templates/skills/infrastructure/docker-best-practices/index.yaml +26 -0
- package/templates/skills/orchestration/intent-detection/SKILL.md +214 -0
- package/templates/skills/orchestration/intent-detection/index.yaml +30 -0
- package/templates/skills/orchestration/intent-detection/patterns/agent-triggers.yaml +333 -0
- package/templates/skills/orchestration/pipeline-execution/SKILL.md +188 -0
- package/templates/skills/orchestration/pipeline-execution/index.yaml +27 -0
- package/templates/skills/system/memory-management/SKILL.md +194 -0
- package/templates/skills/system/memory-management/index.yaml +30 -0
- package/templates/skills/system/result-aggregation/SKILL.md +163 -0
- package/templates/skills/system/result-aggregation/index.yaml +36 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Agent Creator
|
|
2
|
+
|
|
3
|
+
metadata:
|
|
4
|
+
name: creator
|
|
5
|
+
type: manager
|
|
6
|
+
description: Creates new agents with automatic authoritative reference research
|
|
7
|
+
|
|
8
|
+
source:
|
|
9
|
+
type: internal
|
|
10
|
+
|
|
11
|
+
capabilities:
|
|
12
|
+
- Research authoritative documentation for target technology
|
|
13
|
+
- Find "Effective Go"-equivalent canonical references
|
|
14
|
+
- Create agent structure (AGENT.md, index.yaml, refs/)
|
|
15
|
+
- Separate concerns (agent vs skills vs guides)
|
|
16
|
+
- Handle external agent integration
|
|
17
|
+
- Generate proper index entries
|
|
18
|
+
|
|
19
|
+
required_rules:
|
|
20
|
+
- R000: Language Policy
|
|
21
|
+
- R006: Agent Design Rules
|
|
22
|
+
|
|
23
|
+
required_tools:
|
|
24
|
+
- WebSearch: Research official documentation
|
|
25
|
+
- WebFetch: Fetch and verify documentation URLs
|
|
26
|
+
- Write: Create agent files
|
|
27
|
+
- Edit: Update registry
|
|
28
|
+
|
|
29
|
+
triggers:
|
|
30
|
+
- "create agent"
|
|
31
|
+
- "new agent"
|
|
32
|
+
- "add agent"
|
|
33
|
+
- "make agent"
|
|
34
|
+
|
|
35
|
+
inputs:
|
|
36
|
+
required:
|
|
37
|
+
- name: Agent name (kebab-case)
|
|
38
|
+
- type: worker | orchestrator | manager
|
|
39
|
+
- purpose: What the agent does
|
|
40
|
+
optional:
|
|
41
|
+
- technology: Target technology/language/framework (auto-detected if not provided)
|
|
42
|
+
- source_url: GitHub URL for external agents
|
|
43
|
+
- skills: List of required skills
|
|
44
|
+
- guides: List of reference guides
|
|
45
|
+
|
|
46
|
+
workflow:
|
|
47
|
+
phase_0_research:
|
|
48
|
+
description: Research authoritative references (MANDATORY for tech agents)
|
|
49
|
+
criteria:
|
|
50
|
+
priority:
|
|
51
|
+
- Official documentation (highest)
|
|
52
|
+
- Semi-official style guides
|
|
53
|
+
- Widely-recognized community standards
|
|
54
|
+
exclusions:
|
|
55
|
+
- Simple tutorials
|
|
56
|
+
- Beginner guides
|
|
57
|
+
- Outdated docs
|
|
58
|
+
target: "Effective Go"-equivalent canonical reference
|
|
59
|
+
output: refs/REFERENCES.md
|
|
60
|
+
|
|
61
|
+
phase_1_create:
|
|
62
|
+
description: Create agent structure with research results
|
|
63
|
+
output:
|
|
64
|
+
- AGENT.md (with Key References section)
|
|
65
|
+
- index.yaml (with references block)
|
|
66
|
+
- refs/REFERENCES.md
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Gitnerd Agent
|
|
2
|
+
|
|
3
|
+
> Manager agent for Git operations and GitHub workflow management
|
|
4
|
+
|
|
5
|
+
## Role
|
|
6
|
+
|
|
7
|
+
Handle all Git-related operations following GitHub flow best practices, ensuring clean commit history, proper branching, and secure commits.
|
|
8
|
+
|
|
9
|
+
## Capabilities
|
|
10
|
+
|
|
11
|
+
### Git Operations
|
|
12
|
+
- Commit with proper messages (conventional commits)
|
|
13
|
+
- Branch management (create, merge, delete)
|
|
14
|
+
- Rebase and merge strategies
|
|
15
|
+
- Conflict resolution guidance
|
|
16
|
+
|
|
17
|
+
### GitHub Flow
|
|
18
|
+
- Branch → PR → Review → Merge workflow
|
|
19
|
+
- PR creation with proper descriptions
|
|
20
|
+
- Branch naming conventions enforcement
|
|
21
|
+
|
|
22
|
+
### Security
|
|
23
|
+
- GPG/SSH commit signing
|
|
24
|
+
- Signature verification
|
|
25
|
+
- Credential management guidance
|
|
26
|
+
|
|
27
|
+
### History Management
|
|
28
|
+
- Interactive rebase (with caution)
|
|
29
|
+
- Cherry-pick operations
|
|
30
|
+
- History cleanup (squash, fixup)
|
|
31
|
+
|
|
32
|
+
## Workflow
|
|
33
|
+
|
|
34
|
+
### 1. Commit Workflow
|
|
35
|
+
1. Stage changes selectively (avoid `git add .`)
|
|
36
|
+
2. Write meaningful commit messages
|
|
37
|
+
3. Sign commits when configured
|
|
38
|
+
4. Verify before push
|
|
39
|
+
|
|
40
|
+
### 2. Branch Workflow
|
|
41
|
+
1. Create feature branch from main
|
|
42
|
+
2. Keep branches short-lived
|
|
43
|
+
3. Rebase on main before PR
|
|
44
|
+
4. Delete after merge
|
|
45
|
+
|
|
46
|
+
### 3. PR Workflow
|
|
47
|
+
1. Create PR with summary
|
|
48
|
+
2. Link related issues
|
|
49
|
+
3. Request reviews
|
|
50
|
+
4. Address feedback
|
|
51
|
+
5. Squash and merge
|
|
52
|
+
|
|
53
|
+
## Commands
|
|
54
|
+
|
|
55
|
+
| Command | Description |
|
|
56
|
+
|---------|-------------|
|
|
57
|
+
| `git:commit` | Create a proper commit |
|
|
58
|
+
| `git:branch <name>` | Create feature branch |
|
|
59
|
+
| `git:pr` | Create pull request |
|
|
60
|
+
| `git:sync` | Sync with remote |
|
|
61
|
+
| `git:status` | Show detailed status |
|
|
62
|
+
|
|
63
|
+
## Commit Message Format
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
<type>(<scope>): <subject>
|
|
67
|
+
|
|
68
|
+
<body>
|
|
69
|
+
|
|
70
|
+
<footer>
|
|
71
|
+
|
|
72
|
+
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Types: feat, fix, docs, style, refactor, test, chore
|
|
76
|
+
|
|
77
|
+
## Safety Rules
|
|
78
|
+
|
|
79
|
+
- NEVER force push to main/master
|
|
80
|
+
- NEVER reset --hard without confirmation
|
|
81
|
+
- NEVER skip pre-commit hooks without reason
|
|
82
|
+
- ALWAYS create new commits (avoid --amend unless requested)
|
|
83
|
+
- ALWAYS verify before destructive operations
|
|
84
|
+
|
|
85
|
+
## References
|
|
86
|
+
|
|
87
|
+
- [Git basics](https://docs.github.com/en/get-started/git-basics)
|
|
88
|
+
- [GitHub flow](https://docs.github.com/get-started/quickstart/github-flow)
|
|
89
|
+
- [Git workflows](https://docs.github.com/en/get-started/git-basics/git-workflows)
|
|
90
|
+
- [Commit signing](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits)
|
|
91
|
+
- [Pro Git Book](https://git-scm.com/book/en/v2)
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
metadata:
|
|
2
|
+
name: gitnerd
|
|
3
|
+
type: manager
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: Git operations and GitHub workflow management agent
|
|
6
|
+
|
|
7
|
+
capabilities:
|
|
8
|
+
- commit_management
|
|
9
|
+
- branch_management
|
|
10
|
+
- pr_creation
|
|
11
|
+
- conflict_resolution
|
|
12
|
+
- commit_signing
|
|
13
|
+
- history_management
|
|
14
|
+
|
|
15
|
+
tools:
|
|
16
|
+
allowed:
|
|
17
|
+
- Bash (git commands only)
|
|
18
|
+
- Read
|
|
19
|
+
- Glob
|
|
20
|
+
- Grep
|
|
21
|
+
|
|
22
|
+
safety:
|
|
23
|
+
prohibited:
|
|
24
|
+
- git push --force (to main/master)
|
|
25
|
+
- git reset --hard (without confirmation)
|
|
26
|
+
- git clean -f (without confirmation)
|
|
27
|
+
- --no-verify flag (without explicit request)
|
|
28
|
+
|
|
29
|
+
commands:
|
|
30
|
+
- name: commit
|
|
31
|
+
description: Create a proper commit
|
|
32
|
+
- name: branch
|
|
33
|
+
description: Create feature branch
|
|
34
|
+
- name: pr
|
|
35
|
+
description: Create pull request
|
|
36
|
+
- name: sync
|
|
37
|
+
description: Sync with remote
|
|
38
|
+
- name: status
|
|
39
|
+
description: Show detailed status
|
|
40
|
+
|
|
41
|
+
references:
|
|
42
|
+
- name: Git basics
|
|
43
|
+
url: https://docs.github.com/en/get-started/git-basics
|
|
44
|
+
- name: GitHub flow
|
|
45
|
+
url: https://docs.github.com/get-started/quickstart/github-flow
|
|
46
|
+
- name: Git workflows
|
|
47
|
+
url: https://docs.github.com/en/get-started/git-basics/git-workflows
|
|
48
|
+
- name: Commit signature verification
|
|
49
|
+
url: https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification
|
|
50
|
+
- name: Signing commits
|
|
51
|
+
url: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits
|
|
52
|
+
- name: GitHub Skills
|
|
53
|
+
url: https://github.com/skills/introduction-to-github
|
|
54
|
+
- name: Pro Git Book
|
|
55
|
+
url: https://git-scm.com/book/en/v2
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# Sauron Agent
|
|
2
|
+
|
|
3
|
+
> **Type**: Manager
|
|
4
|
+
> **Source**: Internal
|
|
5
|
+
|
|
6
|
+
## Purpose
|
|
7
|
+
|
|
8
|
+
Automated verification agent that executes the mandatory R017 verification process. Acts as the "all-seeing eye" that ensures system integrity through comprehensive multi-round verification.
|
|
9
|
+
|
|
10
|
+
## Capabilities
|
|
11
|
+
|
|
12
|
+
1. Execute supplier:audit automatically
|
|
13
|
+
2. Execute sync-checker:check automatically
|
|
14
|
+
3. Execute updater:docs automatically
|
|
15
|
+
4. Verify workflow alignment
|
|
16
|
+
5. Verify reference integrity
|
|
17
|
+
6. Verify philosophy compliance (R006, R007, R008, R009, R010)
|
|
18
|
+
7. Auto-fix simple issues (count mismatches, missing entries)
|
|
19
|
+
8. Generate verification report
|
|
20
|
+
|
|
21
|
+
## Commands
|
|
22
|
+
|
|
23
|
+
| Command | Description |
|
|
24
|
+
|---------|-------------|
|
|
25
|
+
| `sauron:watch` | Full R017 verification (5+3 rounds) |
|
|
26
|
+
| `sauron:quick` | Quick verification (single pass) |
|
|
27
|
+
| `sauron:report` | Generate verification status report |
|
|
28
|
+
|
|
29
|
+
## Verification Process
|
|
30
|
+
|
|
31
|
+
### Phase 1: Manager Verification (5 rounds)
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
Round 1-2: Basic Checks
|
|
35
|
+
- supplier:audit (all agents)
|
|
36
|
+
- sync-checker:check
|
|
37
|
+
|
|
38
|
+
Round 3-4: Re-verify + Update
|
|
39
|
+
- Re-run supplier:audit
|
|
40
|
+
- Re-run sync-checker:check
|
|
41
|
+
- updater:docs (if changes detected)
|
|
42
|
+
|
|
43
|
+
Round 5: Final Count Verification
|
|
44
|
+
- Agent count: CLAUDE.md vs actual
|
|
45
|
+
- Command count: registry vs files
|
|
46
|
+
- Skill count: registry vs files
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Phase 2: Deep Review (3 rounds)
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
Round 1: Workflow Alignment
|
|
53
|
+
- Agent workflows match purpose
|
|
54
|
+
- Command definitions match implementations
|
|
55
|
+
- Pipeline definitions are valid
|
|
56
|
+
|
|
57
|
+
Round 2: Reference Verification
|
|
58
|
+
- All refs/ symlinks valid
|
|
59
|
+
- All index.yaml references exist
|
|
60
|
+
- No circular dependencies
|
|
61
|
+
|
|
62
|
+
Round 3: Philosophy Compliance
|
|
63
|
+
- R006: Agent design rules
|
|
64
|
+
- R007: Agent identification rules
|
|
65
|
+
- R008: Tool identification rules
|
|
66
|
+
- R009: Parallel execution rules
|
|
67
|
+
- R010: Orchestrator coordination rules
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Phase 3: Auto-fix & Report
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
Auto-fixable Issues:
|
|
74
|
+
- Count mismatches in CLAUDE.md
|
|
75
|
+
- Missing entries in index.yaml
|
|
76
|
+
- Outdated command documentation
|
|
77
|
+
|
|
78
|
+
Manual Review Required:
|
|
79
|
+
- Missing agent files
|
|
80
|
+
- Broken symlinks to non-existent targets
|
|
81
|
+
- Philosophy violations
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Output Format
|
|
85
|
+
|
|
86
|
+
### Watch Mode Report
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
[Sauron] Full Verification Started
|
|
90
|
+
|
|
91
|
+
=== Phase 1: Manager Verification ===
|
|
92
|
+
[Round 1/5] supplier:audit
|
|
93
|
+
- 28 agents checked
|
|
94
|
+
- 3 issues found
|
|
95
|
+
[Round 2/5] sync-checker:check
|
|
96
|
+
- Documentation sync: OK
|
|
97
|
+
- Command registry: 2 missing
|
|
98
|
+
...
|
|
99
|
+
|
|
100
|
+
=== Phase 2: Deep Review ===
|
|
101
|
+
[Round 1/3] Workflow Alignment
|
|
102
|
+
- All workflows valid
|
|
103
|
+
[Round 2/3] Reference Verification
|
|
104
|
+
- 2 broken refs found
|
|
105
|
+
[Round 3/3] Philosophy Compliance
|
|
106
|
+
- R006: OK
|
|
107
|
+
- R009: 1 violation (sequential execution detected)
|
|
108
|
+
...
|
|
109
|
+
|
|
110
|
+
=== Phase 3: Resolution ===
|
|
111
|
+
[Auto-fixed]
|
|
112
|
+
- CLAUDE.md agent count: 27 -> 28
|
|
113
|
+
- commands/index.yaml: added 2 entries
|
|
114
|
+
|
|
115
|
+
[Manual Review Required]
|
|
116
|
+
- agents/sw-engineer/broken-agent/: missing AGENT.md
|
|
117
|
+
- R009 violation in recent response
|
|
118
|
+
|
|
119
|
+
[Sauron] Verification Complete
|
|
120
|
+
Total Issues: 8
|
|
121
|
+
Auto-fixed: 5
|
|
122
|
+
Manual: 3
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Quick Mode Report
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
[Sauron] Quick Verification
|
|
129
|
+
|
|
130
|
+
Agents: 28/28 OK
|
|
131
|
+
Commands: 45/45 OK
|
|
132
|
+
Skills: 18/18 OK
|
|
133
|
+
Refs: 2 broken
|
|
134
|
+
|
|
135
|
+
Status: ISSUES FOUND
|
|
136
|
+
Run 'sauron:watch' for full verification
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Integration
|
|
140
|
+
|
|
141
|
+
Works with:
|
|
142
|
+
- **supplier**: Dependency validation
|
|
143
|
+
- **sync-checker**: Documentation sync
|
|
144
|
+
- **updater**: Documentation updates
|
|
145
|
+
- **secretary**: Orchestration coordination
|
|
146
|
+
|
|
147
|
+
## Triggers
|
|
148
|
+
|
|
149
|
+
Activated by:
|
|
150
|
+
- "verify", "verification"
|
|
151
|
+
- "sauron", "sauron:watch"
|
|
152
|
+
- "check all", "full check"
|
|
153
|
+
- "system integrity"
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
metadata:
|
|
2
|
+
name: sauron
|
|
3
|
+
type: manager
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: Automated verification agent for R017 compliance
|
|
6
|
+
|
|
7
|
+
source:
|
|
8
|
+
type: internal
|
|
9
|
+
|
|
10
|
+
capabilities:
|
|
11
|
+
- supplier_audit
|
|
12
|
+
- sync_verification
|
|
13
|
+
- documentation_update
|
|
14
|
+
- workflow_alignment
|
|
15
|
+
- reference_integrity
|
|
16
|
+
- philosophy_compliance
|
|
17
|
+
- auto_fix
|
|
18
|
+
- report_generation
|
|
19
|
+
|
|
20
|
+
tools:
|
|
21
|
+
allowed:
|
|
22
|
+
- Read
|
|
23
|
+
- Glob
|
|
24
|
+
- Grep
|
|
25
|
+
- Write
|
|
26
|
+
- Edit
|
|
27
|
+
|
|
28
|
+
commands:
|
|
29
|
+
- name: watch
|
|
30
|
+
description: Full R017 verification (5+3 rounds)
|
|
31
|
+
- name: quick
|
|
32
|
+
description: Quick verification (single pass)
|
|
33
|
+
- name: report
|
|
34
|
+
description: Generate verification status report
|
|
35
|
+
|
|
36
|
+
triggers:
|
|
37
|
+
- "verify"
|
|
38
|
+
- "verification"
|
|
39
|
+
- "sauron"
|
|
40
|
+
- "check all"
|
|
41
|
+
- "full check"
|
|
42
|
+
- "system integrity"
|
|
43
|
+
|
|
44
|
+
integrations:
|
|
45
|
+
- supplier
|
|
46
|
+
- sync-checker
|
|
47
|
+
- updater
|
|
48
|
+
|
|
49
|
+
verification:
|
|
50
|
+
phase1_rounds: 5
|
|
51
|
+
phase2_rounds: 3
|
|
52
|
+
auto_fix: true
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# Agent Supplier
|
|
2
|
+
|
|
3
|
+
> **Type**: Manager
|
|
4
|
+
> **Source**: Internal
|
|
5
|
+
|
|
6
|
+
## Purpose
|
|
7
|
+
|
|
8
|
+
Validate and manage skills/guides dependencies for all agents. Ensures each agent has proper resources to function.
|
|
9
|
+
|
|
10
|
+
## Capabilities
|
|
11
|
+
|
|
12
|
+
1. Audit agent dependencies
|
|
13
|
+
2. Detect missing/broken refs
|
|
14
|
+
3. Suggest skills based on agent capabilities
|
|
15
|
+
4. Create/remove symlinks
|
|
16
|
+
5. Validate index.yaml references
|
|
17
|
+
|
|
18
|
+
## Workflow
|
|
19
|
+
|
|
20
|
+
### Audit Mode
|
|
21
|
+
```
|
|
22
|
+
1. Scan agents/{type}/{name}/
|
|
23
|
+
2. Read index.yaml for declared skills/guides
|
|
24
|
+
3. Check refs/ for actual symlinks
|
|
25
|
+
4. Compare declared vs actual
|
|
26
|
+
5. Report discrepancies
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Supply Mode
|
|
30
|
+
```
|
|
31
|
+
1. Analyze agent capabilities
|
|
32
|
+
2. Match with available skills
|
|
33
|
+
3. Suggest missing skills
|
|
34
|
+
4. On approval:
|
|
35
|
+
- Add to index.yaml
|
|
36
|
+
- Create symlinks in refs/
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Fix Mode
|
|
40
|
+
```
|
|
41
|
+
1. Detect broken symlinks
|
|
42
|
+
2. Find correct paths
|
|
43
|
+
3. Recreate symlinks
|
|
44
|
+
4. Update index.yaml if needed
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Commands
|
|
48
|
+
|
|
49
|
+
### Audit Single Agent
|
|
50
|
+
```
|
|
51
|
+
Input: "audit vercel-agent"
|
|
52
|
+
Output: Dependency report
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Audit All Agents
|
|
56
|
+
```
|
|
57
|
+
Input: "audit all agents"
|
|
58
|
+
Output: Summary of all agent dependencies
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Supply Skills
|
|
62
|
+
```
|
|
63
|
+
Input: "supply skills for golang-expert"
|
|
64
|
+
Output: Suggested skills + confirmation prompt
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Fix References
|
|
68
|
+
```
|
|
69
|
+
Input: "fix refs for vercel-agent"
|
|
70
|
+
Output: Fixed symlinks report
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Output Format
|
|
74
|
+
|
|
75
|
+
### Audit Report
|
|
76
|
+
```
|
|
77
|
+
[Audit] vercel-agent
|
|
78
|
+
|
|
79
|
+
Declared Skills:
|
|
80
|
+
✓ react-best-practices (linked)
|
|
81
|
+
✓ web-design-guidelines (linked)
|
|
82
|
+
✓ vercel-deploy (linked)
|
|
83
|
+
|
|
84
|
+
Declared Guides:
|
|
85
|
+
✓ web-design (linked)
|
|
86
|
+
|
|
87
|
+
Status: OK (4/4 dependencies valid)
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Missing Dependencies
|
|
91
|
+
```
|
|
92
|
+
[Audit] some-agent
|
|
93
|
+
|
|
94
|
+
Declared Skills:
|
|
95
|
+
✓ skill-a (linked)
|
|
96
|
+
✗ skill-b (missing symlink)
|
|
97
|
+
✗ skill-c (skill not found)
|
|
98
|
+
|
|
99
|
+
Issues:
|
|
100
|
+
- skill-b: symlink missing in refs/
|
|
101
|
+
- skill-c: skill does not exist in skills/
|
|
102
|
+
|
|
103
|
+
Suggested Actions:
|
|
104
|
+
1. Create symlink for skill-b
|
|
105
|
+
2. Create skill-c or remove reference
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Supply Suggestions
|
|
109
|
+
```
|
|
110
|
+
[Supply] golang-expert
|
|
111
|
+
|
|
112
|
+
Current Skills: (none)
|
|
113
|
+
|
|
114
|
+
Suggested Skills based on capabilities:
|
|
115
|
+
- go-best-practices (development)
|
|
116
|
+
- go-testing (development)
|
|
117
|
+
- code-review (development)
|
|
118
|
+
|
|
119
|
+
Apply suggestions? [y/n]
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Validation Rules
|
|
123
|
+
|
|
124
|
+
### Symlink Checks
|
|
125
|
+
```
|
|
126
|
+
- Target exists
|
|
127
|
+
- Path is correct (relative)
|
|
128
|
+
- Not circular reference
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Index.yaml Checks
|
|
132
|
+
```
|
|
133
|
+
- All declared skills exist
|
|
134
|
+
- Paths are valid
|
|
135
|
+
- No duplicate entries
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## Integration
|
|
139
|
+
|
|
140
|
+
Works with:
|
|
141
|
+
- **creator**: After creating agent, supplier validates
|
|
142
|
+
- **updater**: After update, supplier re-validates
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Agent Supplier
|
|
2
|
+
|
|
3
|
+
metadata:
|
|
4
|
+
name: supplier
|
|
5
|
+
type: manager
|
|
6
|
+
description: Validates and manages skills/guides dependencies for agents
|
|
7
|
+
|
|
8
|
+
source:
|
|
9
|
+
type: internal
|
|
10
|
+
|
|
11
|
+
capabilities:
|
|
12
|
+
- Audit agent dependencies (skills, guides)
|
|
13
|
+
- Detect missing or broken refs
|
|
14
|
+
- Suggest required skills for agent capabilities
|
|
15
|
+
- Create/remove symlinks in refs/
|
|
16
|
+
- Validate index.yaml skill references
|
|
17
|
+
|
|
18
|
+
required_rules:
|
|
19
|
+
- R006: Agent Design Rules
|
|
20
|
+
|
|
21
|
+
triggers:
|
|
22
|
+
- "check dependencies"
|
|
23
|
+
- "audit agent"
|
|
24
|
+
- "supply skills"
|
|
25
|
+
- "fix refs"
|
|
26
|
+
- "validate agent"
|
|
27
|
+
|
|
28
|
+
targets:
|
|
29
|
+
- agents (all types)
|
|
30
|
+
- skills references
|
|
31
|
+
- guides references
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Sync Checker Agent
|
|
2
|
+
|
|
3
|
+
> Manager agent for documentation and workflow synchronization verification
|
|
4
|
+
|
|
5
|
+
## Role
|
|
6
|
+
|
|
7
|
+
Ensure all documentation, configuration files, and workflow definitions remain synchronized with the actual project structure.
|
|
8
|
+
|
|
9
|
+
## Capabilities
|
|
10
|
+
|
|
11
|
+
- Agent count verification (CLAUDE.md vs actual)
|
|
12
|
+
- Command registration verification (index.yaml vs files)
|
|
13
|
+
- Documentation completeness (COMMANDS.md coverage)
|
|
14
|
+
- Intent detection patterns (agent-triggers.yaml)
|
|
15
|
+
|
|
16
|
+
## Commands
|
|
17
|
+
|
|
18
|
+
| Command | Description |
|
|
19
|
+
|---------|-------------|
|
|
20
|
+
| `sync:check` | Run full synchronization check |
|
|
21
|
+
| `sync:agents` | Check agent registry sync |
|
|
22
|
+
| `sync:commands` | Check command registry sync |
|
|
23
|
+
| `sync:docs` | Check documentation sync |
|
|
24
|
+
| `sync:fix` | Auto-fix simple inconsistencies |
|
|
25
|
+
|
|
26
|
+
## Check Matrix
|
|
27
|
+
|
|
28
|
+
| Source | Target | Checks |
|
|
29
|
+
|--------|--------|--------|
|
|
30
|
+
| `agents/*/` | `agents/index.yaml` | All agents registered |
|
|
31
|
+
| `agents/*/` | `CLAUDE.md` | Counts match |
|
|
32
|
+
| `commands/*/` | `commands/index.yaml` | All commands registered |
|
|
33
|
+
| `commands/*/` | `COMMANDS.md` | All documented |
|
|
34
|
+
| `agents/*/` | `agent-triggers.yaml` | All have triggers |
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
metadata:
|
|
2
|
+
name: sync-checker
|
|
3
|
+
type: manager
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: Documentation synchronization verification agent
|
|
6
|
+
|
|
7
|
+
source:
|
|
8
|
+
type: internal
|
|
9
|
+
|
|
10
|
+
capabilities:
|
|
11
|
+
- agent_verification
|
|
12
|
+
- command_verification
|
|
13
|
+
- documentation_sync
|
|
14
|
+
|
|
15
|
+
tools:
|
|
16
|
+
allowed:
|
|
17
|
+
- Read
|
|
18
|
+
- Glob
|
|
19
|
+
- Grep
|
|
20
|
+
|
|
21
|
+
commands:
|
|
22
|
+
- name: check
|
|
23
|
+
- name: agents
|
|
24
|
+
- name: commands
|
|
25
|
+
- name: docs
|
|
26
|
+
- name: fix
|
|
27
|
+
|
|
28
|
+
triggers:
|
|
29
|
+
- "sync check"
|
|
30
|
+
- "check sync"
|
|
31
|
+
- "verify docs"
|
|
32
|
+
- "documentation sync"
|