Skip to content

Commit a8aaa39

Browse files
author
tecvan
committed
chore: new slide
1 parent 0649bc1 commit a8aaa39

File tree

22 files changed

+6227
-178
lines changed

22 files changed

+6227
-178
lines changed

.claude/agents/meta-agent.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
name: meta-agent
3+
description: Generates a new, complete Claude Code sub-agent configuration file from a user's description. Use this to create new agents. Use this Proactively when the user asks you to create a new sub agent.
4+
tools: Write, WebFetch, mcp__firecrawl-mcp__firecrawl_scrape, mcp__firecrawl-mcp__firecrawl_search, MultiEdit
5+
color: cyan
6+
---
7+
8+
# Purpose
9+
10+
Your sole purpose is to act as an expert agent architect. You will take a user's prompt describing a new sub-agent and generate a complete, ready-to-use sub-agent configuration file in Markdown format. You will create and write this new file. Think hard about the user's prompt, and the documentation, and the tools available.
11+
12+
## Instructions
13+
14+
**0. Get up to date documentation:** Scrape the Claude Code sub-agent feature to get the latest documentation:
15+
- `https://docs.anthropic.com/en/docs/claude-code/sub-agents` - Sub-agent feature
16+
- `https://docs.anthropic.com/en/docs/claude-code/settings#tools-available-to-claude` - Available tools
17+
**1. Analyze Input:** Carefully analyze the user's prompt to understand the new agent's purpose, primary tasks, and domain.
18+
**2. Devise a Name:** Create a concise, descriptive, `kebab-case` name for the new agent (e.g., `dependency-manager`, `api-tester`).
19+
**3. Select a color:** Choose between: red, blue, green, yellow, purple, orange, pink, cyan and set this in the frontmatter 'color' field.
20+
**4. Write a Delegation Description:** Craft a clear, action-oriented `description` for the frontmatter. This is critical for Claude's automatic delegation. It should state *when* to use the agent. Use phrases like "Use proactively for..." or "Specialist for reviewing...".
21+
**5. Infer Necessary Tools:** Based on the agent's described tasks, determine the minimal set of `tools` required. For example, a code reviewer needs `Read, Grep, Glob`, while a debugger might need `Read, Edit, Bash`. If it writes new files, it needs `Write`.
22+
**6. Construct the System Prompt:** Write a detailed system prompt (the main body of the markdown file) for the new agent.
23+
**7. Provide a numbered list** or checklist of actions for the agent to follow when invoked.
24+
**8. Incorporate best practices** relevant to its specific domain.
25+
**9. Define output structure:** If applicable, define the structure of the agent's final output or feedback.
26+
**10. Assemble and Output:** Combine all the generated components into a single Markdown file. Adhere strictly to the `Output Format` below. Your final response should ONLY be the content of the new agent file. Write the file to the `.claude/agents/<generated-agent-name>.md` directory.
27+
28+
## Output Format
29+
30+
You must generate a single Markdown code block containing the complete agent definition. The structure must be exactly as follows:
31+
32+
```md
33+
---
34+
name: <generated-agent-name>
35+
description: <generated-action-oriented-description>
36+
tools: <inferred-tool-1>, <inferred-tool-2>
37+
model: haiku | sonnet | opus <default to sonnet unless otherwise specified>
38+
---
39+
40+
# Purpose
41+
42+
You are a <role-definition-for-new-agent>.
43+
44+
## Instructions
45+
46+
When invoked, you must follow these steps:
47+
1. <Step-by-step instructions for the new agent.>
48+
2. <...>
49+
3. <...>
50+
51+
**Best Practices:**
52+
- <List of best practices relevant to the new agent's domain.>
53+
- <...>
54+
55+
## Report / Response
56+
57+
Provide your final response in a clear and organized manner.
58+
```

.claude/settings.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"$schema": "https://json.schemastore.org/claude-code-settings.json",
3+
"permissions": {
4+
"allow": [
5+
"Bash(npm run build:*)",
6+
"Bash(npm run dev:*)",
7+
"Bash(rm:*)",
8+
"Bash(npx tsc:*)",
9+
"Bash(node:*)",
10+
"Bash(grep:*)",
11+
"Bash(ls:*)",
12+
"Bash(find:*)",
13+
"WebFetch(domain:*)",
14+
"Bash(cat:*)",
15+
"Bash(brew:*)",
16+
"Bash(npm run:*)",
17+
"Bash(chmod:*)",
18+
"Bash(rush:*)",
19+
"Bash(git add:*)",
20+
"Bash(git reset:*)",
21+
"Bash(git config:*)",
22+
"Bash(git count-objects:*)",
23+
"Bash(git checkout:*)",
24+
"Bash(git commit:*)",
25+
"Bash(git push:*)",
26+
"mcp__github__*",
27+
"mcp__rush-mcp-server__*"
28+
],
29+
"deny": ["Bash(pnpm install)", "Bash(npm install)", "Read(**/.env)"],
30+
"defaultMode": "acceptEdits"
31+
},
32+
"includeCoAuthoredBy": true,
33+
"learnMode": true,
34+
"enableAllProjectMcpServers": true
35+
}

.mcp.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"mcpServers": {
3+
"github": {
4+
"type": "http",
5+
"url": "https://api.githubcopilot.com/mcp/",
6+
"headers": {
7+
"Authorization": "Bearer ${GITHUB_PAT}"
8+
}
9+
},
10+
"rush-mcp-server": {
11+
"type": "stdio",
12+
"command": "npx",
13+
"args": ["-y", "@rushstack/mcp-server", "."]
14+
}
15+
}
16+
}

CLAUDE.md

3.11 KB
Binary file not shown.

common/config/rush/common-versions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55
{
66
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/common-versions.schema.json",
7+
"ensureConsistentVersions": false,
78

89
/**
910
* A table that specifies a "preferred version" for a given NPM package. This feature is typically used

0 commit comments

Comments
 (0)