@codemieai/code 0.0.3 → 0.0.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 +375 -325
- package/bin/codemie-claude.js +23 -0
- package/bin/codemie-code.js +49 -11
- package/bin/codemie-codex.js +12 -13
- package/dist/agents/adapters/claude-code.d.ts +5 -0
- package/dist/agents/adapters/claude-code.d.ts.map +1 -1
- package/dist/agents/adapters/claude-code.js +76 -18
- package/dist/agents/adapters/claude-code.js.map +1 -1
- package/dist/agents/adapters/codex.d.ts +5 -0
- package/dist/agents/adapters/codex.d.ts.map +1 -1
- package/dist/agents/adapters/codex.js +75 -17
- package/dist/agents/adapters/codex.js.map +1 -1
- package/dist/agents/codemie-code/agent.d.ts.map +1 -1
- package/dist/agents/codemie-code/agent.js +187 -21
- package/dist/agents/codemie-code/agent.js.map +1 -1
- package/dist/agents/codemie-code/config.d.ts.map +1 -1
- package/dist/agents/codemie-code/config.js +29 -27
- package/dist/agents/codemie-code/config.js.map +1 -1
- package/dist/agents/codemie-code/index.d.ts +16 -2
- package/dist/agents/codemie-code/index.d.ts.map +1 -1
- package/dist/agents/codemie-code/index.js +74 -6
- package/dist/agents/codemie-code/index.js.map +1 -1
- package/dist/agents/codemie-code/modes/contextAwarePlanning.d.ts +87 -0
- package/dist/agents/codemie-code/modes/contextAwarePlanning.d.ts.map +1 -0
- package/dist/agents/codemie-code/modes/contextAwarePlanning.js +957 -0
- package/dist/agents/codemie-code/modes/contextAwarePlanning.js.map +1 -0
- package/dist/agents/codemie-code/modes/planMode.d.ts +116 -0
- package/dist/agents/codemie-code/modes/planMode.d.ts.map +1 -0
- package/dist/agents/codemie-code/modes/planMode.js +537 -0
- package/dist/agents/codemie-code/modes/planMode.js.map +1 -0
- package/dist/agents/codemie-code/prompts.d.ts +29 -0
- package/dist/agents/codemie-code/prompts.d.ts.map +1 -1
- package/dist/agents/codemie-code/prompts.js +129 -0
- package/dist/agents/codemie-code/prompts.js.map +1 -1
- package/dist/agents/codemie-code/storage/todoStorage.d.ts +78 -0
- package/dist/agents/codemie-code/storage/todoStorage.d.ts.map +1 -0
- package/dist/agents/codemie-code/storage/todoStorage.js +225 -0
- package/dist/agents/codemie-code/storage/todoStorage.js.map +1 -0
- package/dist/agents/codemie-code/tokenUtils.js +1 -1
- package/dist/agents/codemie-code/tokenUtils.js.map +1 -1
- package/dist/agents/codemie-code/tools/index.d.ts +26 -0
- package/dist/agents/codemie-code/tools/index.d.ts.map +1 -1
- package/dist/agents/codemie-code/tools/index.js +182 -14
- package/dist/agents/codemie-code/tools/index.js.map +1 -1
- package/dist/agents/codemie-code/tools/planning.d.ts +53 -0
- package/dist/agents/codemie-code/tools/planning.d.ts.map +1 -0
- package/dist/agents/codemie-code/tools/planning.js +224 -0
- package/dist/agents/codemie-code/tools/planning.js.map +1 -0
- package/dist/agents/codemie-code/types.d.ts +170 -6
- package/dist/agents/codemie-code/types.d.ts.map +1 -1
- package/dist/agents/codemie-code/types.js.map +1 -1
- package/dist/agents/codemie-code/ui/progressTracker.d.ts +125 -0
- package/dist/agents/codemie-code/ui/progressTracker.d.ts.map +1 -0
- package/dist/agents/codemie-code/ui/progressTracker.js +343 -0
- package/dist/agents/codemie-code/ui/progressTracker.js.map +1 -0
- package/dist/agents/codemie-code/ui/todoPanel.d.ts +112 -0
- package/dist/agents/codemie-code/ui/todoPanel.d.ts.map +1 -0
- package/dist/agents/codemie-code/ui/todoPanel.js +318 -0
- package/dist/agents/codemie-code/ui/todoPanel.js.map +1 -0
- package/dist/agents/codemie-code/ui.d.ts +106 -10
- package/dist/agents/codemie-code/ui.d.ts.map +1 -1
- package/dist/agents/codemie-code/ui.js +913 -129
- package/dist/agents/codemie-code/ui.js.map +1 -1
- package/dist/agents/codemie-code/utils/progressionEnforcer.d.ts +87 -0
- package/dist/agents/codemie-code/utils/progressionEnforcer.d.ts.map +1 -0
- package/dist/agents/codemie-code/utils/progressionEnforcer.js +293 -0
- package/dist/agents/codemie-code/utils/progressionEnforcer.js.map +1 -0
- package/dist/agents/codemie-code/utils/todoParser.d.ts +41 -0
- package/dist/agents/codemie-code/utils/todoParser.d.ts.map +1 -0
- package/dist/agents/codemie-code/utils/todoParser.js +305 -0
- package/dist/agents/codemie-code/utils/todoParser.js.map +1 -0
- package/dist/agents/codemie-code/utils/todoValidator.d.ts +65 -0
- package/dist/agents/codemie-code/utils/todoValidator.d.ts.map +1 -0
- package/dist/agents/codemie-code/utils/todoValidator.js +249 -0
- package/dist/agents/codemie-code/utils/todoValidator.js.map +1 -0
- package/dist/agents/codemie-code/validators/planValidator.d.ts +94 -0
- package/dist/agents/codemie-code/validators/planValidator.d.ts.map +1 -0
- package/dist/agents/codemie-code/validators/planValidator.js +281 -0
- package/dist/agents/codemie-code/validators/planValidator.js.map +1 -0
- package/dist/agents/registry.d.ts.map +1 -1
- package/dist/agents/registry.js +7 -5
- package/dist/agents/registry.js.map +1 -1
- package/dist/cli/commands/auth.d.ts +3 -0
- package/dist/cli/commands/auth.d.ts.map +1 -0
- package/dist/cli/commands/auth.js +170 -0
- package/dist/cli/commands/auth.js.map +1 -0
- package/dist/cli/commands/config.d.ts.map +1 -1
- package/dist/cli/commands/config.js +40 -13
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/doctor.js +209 -16
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/env.js +3 -3
- package/dist/cli/commands/env.js.map +1 -1
- package/dist/cli/commands/install.d.ts.map +1 -1
- package/dist/cli/commands/install.js +2 -1
- package/dist/cli/commands/install.js.map +1 -1
- package/dist/cli/commands/run.d.ts.map +1 -1
- package/dist/cli/commands/run.js +15 -9
- package/dist/cli/commands/run.js.map +1 -1
- package/dist/cli/commands/setup.d.ts.map +1 -1
- package/dist/cli/commands/setup.js +177 -11
- package/dist/cli/commands/setup.js.map +1 -1
- package/dist/cli/commands/tools.d.ts +6 -0
- package/dist/cli/commands/tools.d.ts.map +1 -0
- package/dist/cli/commands/tools.js +244 -0
- package/dist/cli/commands/tools.js.map +1 -0
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/commands/version.js.map +1 -1
- package/dist/cli/commands/workflow.d.ts +6 -0
- package/dist/cli/commands/workflow.d.ts.map +1 -0
- package/dist/cli/commands/workflow.js +424 -0
- package/dist/cli/commands/workflow.js.map +1 -0
- package/dist/cli/index.js +39 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/clients/adapters/github.d.ts +17 -0
- package/dist/clients/adapters/github.d.ts.map +1 -0
- package/dist/clients/adapters/github.js +150 -0
- package/dist/clients/adapters/github.js.map +1 -0
- package/dist/clients/adapters/gitlab.d.ts +17 -0
- package/dist/clients/adapters/gitlab.d.ts.map +1 -0
- package/dist/clients/adapters/gitlab.js +147 -0
- package/dist/clients/adapters/gitlab.js.map +1 -0
- package/dist/clients/registry.d.ts +20 -0
- package/dist/clients/registry.d.ts.map +1 -0
- package/dist/clients/registry.js +27 -0
- package/dist/clients/registry.js.map +1 -0
- package/dist/tools/detector.d.ts +33 -0
- package/dist/tools/detector.d.ts.map +1 -0
- package/dist/tools/detector.js +145 -0
- package/dist/tools/detector.js.map +1 -0
- package/dist/tools/index.d.ts +8 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +8 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/manager.d.ts +21 -0
- package/dist/tools/manager.d.ts.map +1 -0
- package/dist/tools/manager.js +104 -0
- package/dist/tools/manager.js.map +1 -0
- package/dist/tools/registry.d.ts +8 -0
- package/dist/tools/registry.d.ts.map +1 -0
- package/dist/tools/registry.js +36 -0
- package/dist/tools/registry.js.map +1 -0
- package/dist/tools/types.d.ts +41 -0
- package/dist/tools/types.d.ts.map +1 -0
- package/dist/tools/types.js +5 -0
- package/dist/tools/types.js.map +1 -0
- package/dist/types/sso.d.ts +42 -0
- package/dist/types/sso.d.ts.map +1 -0
- package/dist/types/sso.js +2 -0
- package/dist/types/sso.js.map +1 -0
- package/dist/utils/agent-compatibility.d.ts +32 -0
- package/dist/utils/agent-compatibility.d.ts.map +1 -0
- package/dist/utils/agent-compatibility.js +140 -0
- package/dist/utils/agent-compatibility.js.map +1 -0
- package/dist/utils/codemie-integration-validator.d.ts +17 -0
- package/dist/utils/codemie-integration-validator.d.ts.map +1 -0
- package/dist/utils/codemie-integration-validator.js +105 -0
- package/dist/utils/codemie-integration-validator.js.map +1 -0
- package/dist/utils/codemie-model-fetcher.d.ts +11 -0
- package/dist/utils/codemie-model-fetcher.d.ts.map +1 -0
- package/dist/utils/codemie-model-fetcher.js +242 -0
- package/dist/utils/codemie-model-fetcher.js.map +1 -0
- package/dist/utils/config-loader.d.ts +23 -1
- package/dist/utils/config-loader.d.ts.map +1 -1
- package/dist/utils/config-loader.js +73 -27
- package/dist/utils/config-loader.js.map +1 -1
- package/dist/utils/credential-store.d.ts +16 -0
- package/dist/utils/credential-store.d.ts.map +1 -0
- package/dist/utils/credential-store.js +109 -0
- package/dist/utils/credential-store.js.map +1 -0
- package/dist/utils/first-time.d.ts +1 -1
- package/dist/utils/first-time.d.ts.map +1 -1
- package/dist/utils/first-time.js +52 -71
- package/dist/utils/first-time.js.map +1 -1
- package/dist/utils/health-checker.d.ts.map +1 -1
- package/dist/utils/health-checker.js +5 -1
- package/dist/utils/health-checker.js.map +1 -1
- package/dist/utils/model-fetcher.d.ts.map +1 -1
- package/dist/utils/model-fetcher.js +15 -2
- package/dist/utils/model-fetcher.js.map +1 -1
- package/dist/utils/sso-auth.d.ts +15 -0
- package/dist/utils/sso-auth.d.ts.map +1 -0
- package/dist/utils/sso-auth.js +207 -0
- package/dist/utils/sso-auth.js.map +1 -0
- package/dist/utils/sso-gateway.d.ts +47 -0
- package/dist/utils/sso-gateway.d.ts.map +1 -0
- package/dist/utils/sso-gateway.js +298 -0
- package/dist/utils/sso-gateway.js.map +1 -0
- package/dist/workflows/detector.d.ts +37 -0
- package/dist/workflows/detector.d.ts.map +1 -0
- package/dist/workflows/detector.js +160 -0
- package/dist/workflows/detector.js.map +1 -0
- package/dist/workflows/index.d.ts +8 -0
- package/dist/workflows/index.d.ts.map +1 -0
- package/dist/workflows/index.js +8 -0
- package/dist/workflows/index.js.map +1 -0
- package/dist/workflows/installer.d.ts +24 -0
- package/dist/workflows/installer.d.ts.map +1 -0
- package/dist/workflows/installer.js +105 -0
- package/dist/workflows/installer.js.map +1 -0
- package/dist/workflows/registry.d.ts +29 -0
- package/dist/workflows/registry.d.ts.map +1 -0
- package/dist/workflows/registry.js +54 -0
- package/dist/workflows/registry.js.map +1 -0
- package/dist/workflows/templates/github/metadata.d.ts +6 -0
- package/dist/workflows/templates/github/metadata.d.ts.map +1 -0
- package/dist/workflows/templates/github/metadata.js +111 -0
- package/dist/workflows/templates/github/metadata.js.map +1 -0
- package/dist/workflows/templates/gitlab/metadata.d.ts +6 -0
- package/dist/workflows/templates/gitlab/metadata.d.ts.map +1 -0
- package/dist/workflows/templates/gitlab/metadata.js +14 -0
- package/dist/workflows/templates/gitlab/metadata.js.map +1 -0
- package/dist/workflows/types.d.ts +71 -0
- package/dist/workflows/types.d.ts.map +1 -0
- package/dist/workflows/types.js +5 -0
- package/dist/workflows/types.js.map +1 -0
- package/package.json +19 -6
- package/src/workflows/templates/github/code-ci.yml +529 -0
- package/src/workflows/templates/github/inline-fix.yml +665 -0
- package/src/workflows/templates/github/pr-review.yml +677 -0
- package/.claude/agents/README.md +0 -298
- package/.claude/agents/release-manager.md +0 -857
- package/.codemie/guides/git-workflow.md +0 -493
- package/CLAUDE.md +0 -225
- package/config.example.json +0 -10
- package/dist/agents/codemie-code/streaming/events.d.ts +0 -7
- package/dist/agents/codemie-code/streaming/events.d.ts.map +0 -1
- package/dist/agents/codemie-code/streaming/events.js +0 -7
- package/dist/agents/codemie-code/streaming/events.js.map +0 -1
- package/dist/agents/codemie-code/streaming/formatter.d.ts +0 -2
- package/dist/agents/codemie-code/streaming/formatter.d.ts.map +0 -1
- package/dist/agents/codemie-code/streaming/formatter.js +0 -2
- package/dist/agents/codemie-code/streaming/formatter.js.map +0 -1
- package/dist/agents/codemie-code/streaming/ui.d.ts +0 -2
- package/dist/agents/codemie-code/streaming/ui.d.ts.map +0 -1
- package/dist/agents/codemie-code/streaming/ui.js +0 -2
- package/dist/agents/codemie-code/streaming/ui.js.map +0 -1
- package/dist/agents/codemie-code/tools/command.d.ts +0 -2
- package/dist/agents/codemie-code/tools/command.d.ts.map +0 -1
- package/dist/agents/codemie-code/tools/command.js +0 -2
- package/dist/agents/codemie-code/tools/command.js.map +0 -1
- package/dist/agents/codemie-code/tools/filesystem.d.ts +0 -2
- package/dist/agents/codemie-code/tools/filesystem.d.ts.map +0 -1
- package/dist/agents/codemie-code/tools/filesystem.js +0 -2
- package/dist/agents/codemie-code/tools/filesystem.js.map +0 -1
- package/dist/agents/codemie-code/tools/git.d.ts +0 -2
- package/dist/agents/codemie-code/tools/git.d.ts.map +0 -1
- package/dist/agents/codemie-code/tools/git.js +0 -2
- package/dist/agents/codemie-code/tools/git.js.map +0 -1
- package/dist/agents/codemie-code/tools/security.d.ts +0 -2
- package/dist/agents/codemie-code/tools/security.d.ts.map +0 -1
- package/dist/agents/codemie-code/tools/security.js +0 -2
- package/dist/agents/codemie-code/tools/security.js.map +0 -1
- package/eslint.config.mjs +0 -43
- package/scripts/README.md +0 -80
- package/scripts/release.sh +0 -156
package/.claude/agents/README.md
DELETED
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
# Specialized Agents
|
|
2
|
-
|
|
3
|
-
This directory contains specialized subagent prompts for complex, multi-step workflows in the CodeMie Code project.
|
|
4
|
-
|
|
5
|
-
## What Are Subagents?
|
|
6
|
-
|
|
7
|
-
Subagents are specialized AI assistants with focused system prompts for specific tasks. Each agent has a dedicated markdown file containing:
|
|
8
|
-
- Role and responsibilities
|
|
9
|
-
- Available tools and capabilities
|
|
10
|
-
- Step-by-step workflow
|
|
11
|
-
- Error handling strategies
|
|
12
|
-
- Best practices and examples
|
|
13
|
-
|
|
14
|
-
## Available Agents
|
|
15
|
-
|
|
16
|
-
### 🚀 Release Manager (`release-manager.md`)
|
|
17
|
-
|
|
18
|
-
**Purpose:** Automate the complete release process from change analysis to npm publication.
|
|
19
|
-
|
|
20
|
-
**Capabilities:**
|
|
21
|
-
- Analyze git history and categorize changes
|
|
22
|
-
- Generate structured release notes (Keep a Changelog format)
|
|
23
|
-
- Update package version (semver)
|
|
24
|
-
- Create git tags and commits
|
|
25
|
-
- Create GitHub releases
|
|
26
|
-
- Trigger npm publish workflows
|
|
27
|
-
|
|
28
|
-
**Trigger Phrases:**
|
|
29
|
-
- "Release version 0.0.2"
|
|
30
|
-
- "Create a new release"
|
|
31
|
-
- "Release a patch/minor/major version"
|
|
32
|
-
- "Use release manager to..."
|
|
33
|
-
- "Prepare a release"
|
|
34
|
-
|
|
35
|
-
**Example:**
|
|
36
|
-
```
|
|
37
|
-
User: "Release version 0.1.0"
|
|
38
|
-
→ Agent analyzes changes, generates notes, creates release
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## How to Use Subagents
|
|
42
|
-
|
|
43
|
-
### Method 1: Natural Language (Recommended)
|
|
44
|
-
|
|
45
|
-
Simply use the trigger phrases in your conversation with Claude:
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
You: "Release version 0.2.0"
|
|
49
|
-
Claude: [Reads release-manager.md and executes the workflow]
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### Method 2: Explicit Invocation
|
|
53
|
-
|
|
54
|
-
Reference the agent directly:
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
You: "Use the release manager to create version 0.2.0"
|
|
58
|
-
Claude: [Loads and follows release-manager.md instructions]
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### Method 3: Manual Execution
|
|
62
|
-
|
|
63
|
-
Read the agent prompt yourself and ask Claude to follow it:
|
|
64
|
-
|
|
65
|
-
```
|
|
66
|
-
You: "Follow the release-manager agent workflow for version 0.2.0"
|
|
67
|
-
Claude: [Executes according to the documented workflow]
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
## How Subagents Work
|
|
71
|
-
|
|
72
|
-
When you trigger a subagent:
|
|
73
|
-
|
|
74
|
-
1. **Claude identifies** the intent matches a subagent
|
|
75
|
-
2. **Reads the prompt** from `.claude/agents/{agent-name}.md`
|
|
76
|
-
3. **Follows the workflow** step-by-step as documented
|
|
77
|
-
4. **Tracks progress** using TodoWrite tool
|
|
78
|
-
5. **Reports results** when complete or if intervention needed
|
|
79
|
-
|
|
80
|
-
## Creating Your Own Subagent
|
|
81
|
-
|
|
82
|
-
### Step 1: Define the Agent
|
|
83
|
-
|
|
84
|
-
Create a new markdown file: `.claude/agents/{role}-{function}.md`
|
|
85
|
-
|
|
86
|
-
Example: `code-reviewer.md`, `test-generator.md`, `security-auditor.md`
|
|
87
|
-
|
|
88
|
-
### Step 2: Write the System Prompt
|
|
89
|
-
|
|
90
|
-
Use this template:
|
|
91
|
-
|
|
92
|
-
```markdown
|
|
93
|
-
# {Agent Name}
|
|
94
|
-
|
|
95
|
-
You are a specialized {role} agent for the CodeMie Code project. Your job is to {primary goal}.
|
|
96
|
-
|
|
97
|
-
## Your Capabilities
|
|
98
|
-
|
|
99
|
-
You have access to these tools:
|
|
100
|
-
- Tool 1: Purpose
|
|
101
|
-
- Tool 2: Purpose
|
|
102
|
-
|
|
103
|
-
## Workflow
|
|
104
|
-
|
|
105
|
-
When the user requests {action}, follow these steps:
|
|
106
|
-
|
|
107
|
-
### Step 1: {Step Name}
|
|
108
|
-
[Detailed instructions]
|
|
109
|
-
|
|
110
|
-
### Step 2: {Step Name}
|
|
111
|
-
[Detailed instructions]
|
|
112
|
-
|
|
113
|
-
## Error Handling
|
|
114
|
-
|
|
115
|
-
[How to handle failures]
|
|
116
|
-
|
|
117
|
-
## Best Practices
|
|
118
|
-
|
|
119
|
-
[Guidelines for the agent]
|
|
120
|
-
|
|
121
|
-
## Examples
|
|
122
|
-
|
|
123
|
-
[Example interactions]
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
### Step 3: Document Trigger Phrases
|
|
127
|
-
|
|
128
|
-
Add your agent to this README with:
|
|
129
|
-
- Purpose description
|
|
130
|
-
- Capabilities list
|
|
131
|
-
- Trigger phrases
|
|
132
|
-
- Example usage
|
|
133
|
-
|
|
134
|
-
### Step 4: Update CLAUDE.md
|
|
135
|
-
|
|
136
|
-
Add your agent to the "Specialized Agents" section in CLAUDE.md so Claude knows when to invoke it.
|
|
137
|
-
|
|
138
|
-
## Agent Design Best Practices
|
|
139
|
-
|
|
140
|
-
### 1. Clear Workflow
|
|
141
|
-
- Break complex tasks into numbered steps
|
|
142
|
-
- Each step should be atomic and verifiable
|
|
143
|
-
- Use checkboxes for validation criteria
|
|
144
|
-
|
|
145
|
-
### 2. Error Handling
|
|
146
|
-
- Anticipate failure points
|
|
147
|
-
- Provide clear error messages
|
|
148
|
-
- Suggest recovery actions
|
|
149
|
-
- Allow graceful fallbacks
|
|
150
|
-
|
|
151
|
-
### 3. User Confirmation
|
|
152
|
-
- Ask before destructive operations
|
|
153
|
-
- Show previews of changes
|
|
154
|
-
- Allow dry-run modes
|
|
155
|
-
- Support rollback if possible
|
|
156
|
-
|
|
157
|
-
### 4. Progress Tracking
|
|
158
|
-
- Use TodoWrite for multi-step workflows
|
|
159
|
-
- Report what you're doing in real-time
|
|
160
|
-
- Show completion status clearly
|
|
161
|
-
|
|
162
|
-
### 5. Transparency
|
|
163
|
-
- Log commands being executed
|
|
164
|
-
- Explain why each step is necessary
|
|
165
|
-
- Show intermediate results
|
|
166
|
-
- Provide links and references
|
|
167
|
-
|
|
168
|
-
### 6. Flexibility
|
|
169
|
-
- Support multiple input formats
|
|
170
|
-
- Handle edge cases gracefully
|
|
171
|
-
- Allow customization via config
|
|
172
|
-
- Provide manual fallback options
|
|
173
|
-
|
|
174
|
-
## Naming Conventions
|
|
175
|
-
|
|
176
|
-
**File naming:** `{role}-{function}.md`
|
|
177
|
-
|
|
178
|
-
Examples:
|
|
179
|
-
- ✅ `release-manager.md`
|
|
180
|
-
- ✅ `code-reviewer.md`
|
|
181
|
-
- ✅ `test-generator.md`
|
|
182
|
-
- ✅ `security-auditor.md`
|
|
183
|
-
- ✅ `dependency-updater.md`
|
|
184
|
-
- ❌ `release.md` (too generic)
|
|
185
|
-
- ❌ `manager.md` (unclear purpose)
|
|
186
|
-
- ❌ `agent1.md` (meaningless)
|
|
187
|
-
|
|
188
|
-
**Role-function pattern:**
|
|
189
|
-
- **Role**: What the agent is (manager, reviewer, generator, auditor)
|
|
190
|
-
- **Function**: What domain it works in (release, code, test, security)
|
|
191
|
-
|
|
192
|
-
## Agent Communication
|
|
193
|
-
|
|
194
|
-
### Input Formats
|
|
195
|
-
|
|
196
|
-
Agents should accept multiple input styles:
|
|
197
|
-
|
|
198
|
-
```
|
|
199
|
-
# Explicit
|
|
200
|
-
"Release version 0.2.0"
|
|
201
|
-
|
|
202
|
-
# Semantic
|
|
203
|
-
"Release a minor version"
|
|
204
|
-
|
|
205
|
-
# Contextual
|
|
206
|
-
"Create a new release"
|
|
207
|
-
|
|
208
|
-
# With options
|
|
209
|
-
"Release 0.2.0 as a beta"
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
### Output Format
|
|
213
|
-
|
|
214
|
-
Agents should provide structured output:
|
|
215
|
-
|
|
216
|
-
```
|
|
217
|
-
🎯 Task: [What the agent is doing]
|
|
218
|
-
|
|
219
|
-
📊 Status: [Current progress]
|
|
220
|
-
|
|
221
|
-
✅ Completed:
|
|
222
|
-
- Step 1
|
|
223
|
-
- Step 2
|
|
224
|
-
|
|
225
|
-
⏳ In Progress:
|
|
226
|
-
- Step 3
|
|
227
|
-
|
|
228
|
-
❌ Failed:
|
|
229
|
-
- Step 4 (reason: ...)
|
|
230
|
-
|
|
231
|
-
🔜 Pending:
|
|
232
|
-
- Step 5
|
|
233
|
-
- Step 6
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
## Future Agent Ideas
|
|
237
|
-
|
|
238
|
-
Here are some agents we might create in the future:
|
|
239
|
-
|
|
240
|
-
- **`code-reviewer.md`**: Automated code review with best practices
|
|
241
|
-
- **`test-generator.md`**: Generate tests for new code
|
|
242
|
-
- **`security-auditor.md`**: Scan for security vulnerabilities
|
|
243
|
-
- **`dependency-updater.md`**: Update and test dependencies
|
|
244
|
-
- **`migration-helper.md`**: Assist with breaking change migrations
|
|
245
|
-
- **`documentation-writer.md`**: Generate comprehensive docs
|
|
246
|
-
- **`performance-analyzer.md`**: Profile and optimize code
|
|
247
|
-
- **`changelog-maintainer.md`**: Keep CHANGELOG.md up to date
|
|
248
|
-
|
|
249
|
-
## Integration with CI/CD
|
|
250
|
-
|
|
251
|
-
Subagent workflows can be extracted into GitHub Actions:
|
|
252
|
-
|
|
253
|
-
```yaml
|
|
254
|
-
# .github/workflows/release.yml
|
|
255
|
-
name: Release
|
|
256
|
-
on:
|
|
257
|
-
workflow_dispatch:
|
|
258
|
-
inputs:
|
|
259
|
-
version:
|
|
260
|
-
required: true
|
|
261
|
-
|
|
262
|
-
jobs:
|
|
263
|
-
release:
|
|
264
|
-
runs-on: ubuntu-latest
|
|
265
|
-
steps:
|
|
266
|
-
# Follow steps from rm.md
|
|
267
|
-
- name: Analyze Changes
|
|
268
|
-
run: ...
|
|
269
|
-
- name: Generate Notes
|
|
270
|
-
run: ...
|
|
271
|
-
- name: Create Release
|
|
272
|
-
run: ...
|
|
273
|
-
```
|
|
274
|
-
|
|
275
|
-
This allows both manual (via Claude) and automated (via CI) releases following the same workflow.
|
|
276
|
-
|
|
277
|
-
## Contributing
|
|
278
|
-
|
|
279
|
-
When adding a new agent:
|
|
280
|
-
|
|
281
|
-
1. Create the agent file in `.claude/agents/`
|
|
282
|
-
2. Follow the template and best practices
|
|
283
|
-
3. Add documentation to this README
|
|
284
|
-
4. Update CLAUDE.md with trigger phrases
|
|
285
|
-
5. Test the agent with real scenarios
|
|
286
|
-
6. Commit with message: `feat: add {agent-name} subagent`
|
|
287
|
-
|
|
288
|
-
## Support
|
|
289
|
-
|
|
290
|
-
For questions about subagents:
|
|
291
|
-
- Review existing agents as examples
|
|
292
|
-
- Check CLAUDE.md for integration details
|
|
293
|
-
- Consult the main README.md for project context
|
|
294
|
-
- Test iteratively with dry runs
|
|
295
|
-
|
|
296
|
-
---
|
|
297
|
-
|
|
298
|
-
**Remember:** Subagents are here to make complex workflows simple, safe, and repeatable!
|