evizi-kit 1.0.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/README.md +506 -0
- package/kits/agent/.agent/skills/claude-code-subagent-creator/SKILL.md +292 -0
- package/kits/agent/.agent/skills/claude-code-subagent-creator/references/claude-code-subagent-configuration.md +158 -0
- package/kits/agent/.agent/skills/claude-code-subagent-creator/templates/subagent-profile.template.md +26 -0
- package/kits/agent/.agent/skills/skill-creator/LICENSE.txt +202 -0
- package/kits/agent/.agent/skills/skill-creator/SKILL.md +485 -0
- package/kits/agent/.agent/skills/skill-creator/agents/analyzer.md +274 -0
- package/kits/agent/.agent/skills/skill-creator/agents/comparator.md +202 -0
- package/kits/agent/.agent/skills/skill-creator/agents/grader.md +223 -0
- package/kits/agent/.agent/skills/skill-creator/assets/eval_review.html +146 -0
- package/kits/agent/.agent/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/kits/agent/.agent/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/kits/agent/.agent/skills/skill-creator/references/schemas.md +430 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/__init__.py +0 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/generate_report.py +326 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/improve_description.py +247 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/package_skill.py +136 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/run_eval.py +310 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/run_loop.py +328 -0
- package/kits/agent/.agent/skills/skill-creator/scripts/utils.py +47 -0
- package/kits/agent/manifest.json +10 -0
- package/kits/claude/.claude/agents/code-pusher.md +46 -0
- package/kits/claude/.claude/agents/feature-document-updater.md +37 -0
- package/kits/claude/.claude/agents/self-reviewer.md +32 -0
- package/kits/claude/.claude/agents/web-auto-agentic-workflow-initializer.md +42 -0
- package/kits/claude/.claude/agents/web-auto-assisted-fix-and-runner.md +36 -0
- package/kits/claude/.claude/agents/web-auto-chrome-devtools-selector-extractor.md +36 -0
- package/kits/claude/.claude/agents/web-auto-coder.md +33 -0
- package/kits/claude/.claude/agents/web-auto-fe-selector-extractor.md +31 -0
- package/kits/claude/.claude/agents/web-auto-fix-and-runner.md +35 -0
- package/kits/claude/.claude/agents/web-auto-lessons-learned-extractor.md +34 -0
- package/kits/claude/.claude/agents/web-auto-playwright-mcp-selector-extractor.md +37 -0
- package/kits/claude/.claude/agents/web-auto-source-instructions-updater.md +43 -0
- package/kits/claude/.claude/agents/web-auto-test-cases-generator.md +29 -0
- package/kits/claude/.claude/agents/web-auto-ticket-designer.md +35 -0
- package/kits/claude/.claude/agents/web-auto-ticket-playbook-planner.md +36 -0
- package/kits/claude/.claude/agents/web-auto.md +382 -0
- package/kits/claude/.claude/skills/claude-code-subagent-creator/SKILL.md +292 -0
- package/kits/claude/.claude/skills/claude-code-subagent-creator/references/claude-code-subagent-configuration.md +158 -0
- package/kits/claude/.claude/skills/claude-code-subagent-creator/templates/subagent-profile.template.md +26 -0
- package/kits/claude/.claude/skills/skill-creator/LICENSE.txt +202 -0
- package/kits/claude/.claude/skills/skill-creator/SKILL.md +485 -0
- package/kits/claude/.claude/skills/skill-creator/agents/analyzer.md +274 -0
- package/kits/claude/.claude/skills/skill-creator/agents/comparator.md +202 -0
- package/kits/claude/.claude/skills/skill-creator/agents/grader.md +223 -0
- package/kits/claude/.claude/skills/skill-creator/assets/eval_review.html +146 -0
- package/kits/claude/.claude/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/kits/claude/.claude/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/kits/claude/.claude/skills/skill-creator/references/schemas.md +430 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/__init__.py +0 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/generate_report.py +326 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/improve_description.py +247 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/package_skill.py +136 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/run_eval.py +310 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/run_loop.py +328 -0
- package/kits/claude/.claude/skills/skill-creator/scripts/utils.py +47 -0
- package/kits/claude/manifest.json +10 -0
- package/kits/cursor/.cursor/agents/code-pusher.agent.md +43 -0
- package/kits/cursor/.cursor/agents/feature-document-updater.agent.md +34 -0
- package/kits/cursor/.cursor/agents/self-reviewer.agent.md +29 -0
- package/kits/cursor/.cursor/agents/web-auto-agentic-workflow-initializer.agent.md +37 -0
- package/kits/cursor/.cursor/agents/web-auto-assisted-fix-and-runner.agent.md +33 -0
- package/kits/cursor/.cursor/agents/web-auto-chrome-devtools-selector-extractor.agent.md +31 -0
- package/kits/cursor/.cursor/agents/web-auto-coder.agent.md +30 -0
- package/kits/cursor/.cursor/agents/web-auto-fe-selector-extractor.agent.md +28 -0
- package/kits/cursor/.cursor/agents/web-auto-fix-and-runner.agent.md +32 -0
- package/kits/cursor/.cursor/agents/web-auto-lessons-learned-extractor.agent.md +31 -0
- package/kits/cursor/.cursor/agents/web-auto-playwright-mcp-selector-extractor.agent.md +32 -0
- package/kits/cursor/.cursor/agents/web-auto-source-instructions-updater.agent.md +40 -0
- package/kits/cursor/.cursor/agents/web-auto-test-cases-generator.agent.md +26 -0
- package/kits/cursor/.cursor/agents/web-auto-ticket-designer.agent.md +32 -0
- package/kits/cursor/.cursor/agents/web-auto-ticket-playbook-planner.agent.md +33 -0
- package/kits/cursor/.cursor/agents/web-auto.agent.md +379 -0
- package/kits/cursor/.cursor/skills/claude-code-subagent-creator/SKILL.md +292 -0
- package/kits/cursor/.cursor/skills/claude-code-subagent-creator/references/claude-code-subagent-configuration.md +158 -0
- package/kits/cursor/.cursor/skills/claude-code-subagent-creator/templates/subagent-profile.template.md +26 -0
- package/kits/cursor/.cursor/skills/skill-creator/LICENSE.txt +202 -0
- package/kits/cursor/.cursor/skills/skill-creator/SKILL.md +485 -0
- package/kits/cursor/.cursor/skills/skill-creator/agents/analyzer.md +274 -0
- package/kits/cursor/.cursor/skills/skill-creator/agents/comparator.md +202 -0
- package/kits/cursor/.cursor/skills/skill-creator/agents/grader.md +223 -0
- package/kits/cursor/.cursor/skills/skill-creator/assets/eval_review.html +146 -0
- package/kits/cursor/.cursor/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/kits/cursor/.cursor/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/kits/cursor/.cursor/skills/skill-creator/references/schemas.md +430 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/__init__.py +0 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/generate_report.py +326 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/improve_description.py +247 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/package_skill.py +136 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/run_eval.py +310 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/run_loop.py +328 -0
- package/kits/cursor/.cursor/skills/skill-creator/scripts/utils.py +47 -0
- package/kits/cursor/manifest.json +10 -0
- package/kits/github/.github/agents/code-pusher.agent.md +45 -0
- package/kits/github/.github/agents/feature-document-updater.agent.md +36 -0
- package/kits/github/.github/agents/self-reviewer.agent.md +31 -0
- package/kits/github/.github/agents/web-auto-agentic-workflow-initializer.agent.md +39 -0
- package/kits/github/.github/agents/web-auto-assisted-fix-and-runner.agent.md +35 -0
- package/kits/github/.github/agents/web-auto-chrome-devtools-selector-extractor.agent.md +33 -0
- package/kits/github/.github/agents/web-auto-coder.agent.md +32 -0
- package/kits/github/.github/agents/web-auto-fe-selector-extractor.agent.md +30 -0
- package/kits/github/.github/agents/web-auto-fix-and-runner.agent.md +34 -0
- package/kits/github/.github/agents/web-auto-lessons-learned-extractor.agent.md +33 -0
- package/kits/github/.github/agents/web-auto-playwright-mcp-selector-extractor.agent.md +34 -0
- package/kits/github/.github/agents/web-auto-source-instructions-updater.agent.md +42 -0
- package/kits/github/.github/agents/web-auto-test-cases-generator.agent.md +28 -0
- package/kits/github/.github/agents/web-auto-ticket-designer.agent.md +34 -0
- package/kits/github/.github/agents/web-auto-ticket-playbook-creator.agent.md +35 -0
- package/kits/github/.github/agents/web-auto.agent.md +382 -0
- package/kits/github/.github/skills/claude-code-subagent-creator/SKILL.md +310 -0
- package/kits/github/.github/skills/claude-code-subagent-creator/references/claude-code-subagent-configuration.md +158 -0
- package/kits/github/.github/skills/claude-code-subagent-creator/templates/subagent-profile.template.md +37 -0
- package/kits/github/.github/skills/skill-creator/LICENSE.txt +202 -0
- package/kits/github/.github/skills/skill-creator/SKILL.md +485 -0
- package/kits/github/.github/skills/skill-creator/agents/analyzer.md +274 -0
- package/kits/github/.github/skills/skill-creator/agents/comparator.md +202 -0
- package/kits/github/.github/skills/skill-creator/agents/grader.md +223 -0
- package/kits/github/.github/skills/skill-creator/assets/eval_review.html +146 -0
- package/kits/github/.github/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/kits/github/.github/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/kits/github/.github/skills/skill-creator/references/schemas.md +430 -0
- package/kits/github/.github/skills/skill-creator/scripts/__init__.py +0 -0
- package/kits/github/.github/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/kits/github/.github/skills/skill-creator/scripts/generate_report.py +326 -0
- package/kits/github/.github/skills/skill-creator/scripts/improve_description.py +247 -0
- package/kits/github/.github/skills/skill-creator/scripts/package_skill.py +136 -0
- package/kits/github/.github/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/kits/github/.github/skills/skill-creator/scripts/run_eval.py +310 -0
- package/kits/github/.github/skills/skill-creator/scripts/run_loop.py +328 -0
- package/kits/github/.github/skills/skill-creator/scripts/utils.py +47 -0
- package/kits/github/manifest.json +10 -0
- package/kits/shared/docs/ai-code-review.md +440 -0
- package/kits/shared/docs/increase-unit-test-coverage.md +77 -0
- package/kits/shared/docs/pr-review-agent.md +501 -0
- package/kits/shared/docs/self-review-agent.md +246 -0
- package/kits/shared/docs/web-auto-agentic-workflow.md +506 -0
- package/kits/shared/manifest.json +11 -0
- package/kits/shared/skills/fix-automation-tests/SKILL.md +280 -0
- package/kits/shared/skills/fix-automation-tests/scripts/fetch_pr_changes.py +300 -0
- package/kits/shared/skills/fix-automation-tests/templates/impact-report.template.md +42 -0
- package/kits/shared/skills/increase-unit-test-coverage/SKILL.md +117 -0
- package/kits/shared/skills/increase-unit-test-coverage/scripts/filter_low_coverage.py +447 -0
- package/kits/shared/skills/pr-review/SKILL.md +200 -0
- package/kits/shared/skills/pr-review/references/automation.md +62 -0
- package/kits/shared/skills/pr-review/references/backend.md +95 -0
- package/kits/shared/skills/pr-review/references/frontend.md +103 -0
- package/kits/shared/skills/pr-review/references/mobile.md +108 -0
- package/kits/shared/skills/pr-review/references/output-schema.md +130 -0
- package/kits/shared/skills/pr-review/scripts/post-review.py +1395 -0
- package/kits/shared/skills/push-code/SKILL.md +176 -0
- package/kits/shared/skills/self-review/SKILL.md +234 -0
- package/kits/shared/skills/self-review/evals/evals.json +23 -0
- package/kits/shared/skills/self-review/references/automation.md +62 -0
- package/kits/shared/skills/self-review/references/backend.md +95 -0
- package/kits/shared/skills/self-review/references/frontend.md +103 -0
- package/kits/shared/skills/self-review/references/mobile.md +108 -0
- package/kits/shared/skills/self-review/templates/issues.template.md +72 -0
- package/kits/shared/skills/update-feature-document/SKILL.md +156 -0
- package/kits/shared/skills/update-feature-document/templates/delta.template.yaml +58 -0
- package/kits/shared/skills/update-feature-document/templates/feature.template.md +25 -0
- package/kits/shared/skills/web-auto-assisted-fix-and-run/SKILL.md +130 -0
- package/kits/shared/skills/web-auto-assisted-fix-and-run/references/resolve-api-error.md +108 -0
- package/kits/shared/skills/web-auto-assisted-fix-and-run/references/resolve-selector.md +60 -0
- package/kits/shared/skills/web-auto-assisted-fix-and-run/templates/issues-resolution-report-append.template.md +54 -0
- package/kits/shared/skills/web-auto-chrome-devtools-mcp-extract-selectors/SKILL.md +284 -0
- package/kits/shared/skills/web-auto-coding/SKILL.md +152 -0
- package/kits/shared/skills/web-auto-extract-lessons-learned/SKILL.md +168 -0
- package/kits/shared/skills/web-auto-extract-lessons-learned/templates/lessons-learned.template.md +115 -0
- package/kits/shared/skills/web-auto-fe-extract-selectors/SKILL.md +282 -0
- package/kits/shared/skills/web-auto-fe-extract-selectors/evals/evals.json +23 -0
- package/kits/shared/skills/web-auto-fix-and-run-test/SKILL.md +183 -0
- package/kits/shared/skills/web-auto-fix-and-run-test/templates/issues-resolution-report.template.md +77 -0
- package/kits/shared/skills/web-auto-generate-best-practices/SKILL.md +123 -0
- package/kits/shared/skills/web-auto-generate-instructions/SKILL.md +200 -0
- package/kits/shared/skills/web-auto-generate-instructions/evals/evals.json +23 -0
- package/kits/shared/skills/web-auto-generate-instructions/references/analysis-guide.md +145 -0
- package/kits/shared/skills/web-auto-generate-instructions/templates/web-auto-instructions.template.md +184 -0
- package/kits/shared/skills/web-auto-generate-project-blueprint/SKILL.md +181 -0
- package/kits/shared/skills/web-auto-generate-project-blueprint/evals/evals.json +57 -0
- package/kits/shared/skills/web-auto-generate-project-blueprint/templates/web-auto-project-blueprint.template.md +161 -0
- package/kits/shared/skills/web-auto-playwright-mcp-extract-selectors/SKILL.md +293 -0
- package/kits/shared/skills/web-auto-test-cases/SKILL.md +138 -0
- package/kits/shared/skills/web-auto-test-cases/evals/evals.json +129 -0
- package/kits/shared/skills/web-auto-test-cases/templates/test-cases.template.md +53 -0
- package/kits/shared/skills/web-auto-ticket-design/SKILL.md +199 -0
- package/kits/shared/skills/web-auto-ticket-design/templates/ticket-design.template.md +138 -0
- package/kits/shared/skills/web-auto-ticket-playbook/SKILL.md +218 -0
- package/kits/shared/skills/web-auto-ticket-playbook/evals/evals.json +23 -0
- package/kits/shared/skills/web-auto-ticket-playbook/templates/ticket-playbook.template.md +148 -0
- package/kits/shared/skills/web-auto-update-source-instructions/SKILL.md +156 -0
- package/kits/shared/skills/web-auto-update-source-instructions/evals/evals.json +22 -0
- package/kits/shared/skills/workspace-ai-nav-creator/SKILL.md +168 -0
- package/kits/shared/skills/workspace-ai-nav-creator/templates/agents-md.template.md +112 -0
- package/kits/shared/skills/workspace-ai-nav-creator/templates/claude-md.template.md +86 -0
- package/package.json +16 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: claude-code-subagent-creator
|
|
3
|
+
description: Create Claude Code custom subagent profiles (Markdown files with YAML frontmatter stored in .claude/agents/) that use corresponding skills. Use when asked to create a Claude Code subagent for a skill, generate a subagent file, build a custom agent for Claude Code, or wire up skills to a Claude Code subagent. Triggers on requests like "create a Claude Code subagent for skill X", "make a Claude Code agent that uses skill Y", "generate subagent profile for these skills", or "set up a subagent for X task". NOT for GitHub Copilot agents (.agent.md) — use copilot-subagent-creator for those.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Claude Code Subagent Creator
|
|
7
|
+
|
|
8
|
+
Create Claude Code subagent profiles — Markdown files with YAML frontmatter stored in `.claude/agents/` (project-level) or `~/.claude/agents/` (user-level). Each subagent runs in its own context window with a custom system prompt, specific tool access, and independent permissions.
|
|
9
|
+
|
|
10
|
+
The created subagent uses the `skills` frontmatter field to preload user-provided skill content at startup, so the subagent receives the full skill knowledge as part of its context without needing to read files at runtime.
|
|
11
|
+
|
|
12
|
+
## Key Concepts
|
|
13
|
+
|
|
14
|
+
- Subagents receive **only** their markdown body as the system prompt (plus basic environment details). They do **not** receive the full Claude Code system prompt.
|
|
15
|
+
- The `skills` frontmatter field **injects the full content** of each listed skill into the subagent's context at startup. Subagents don't inherit skills from the parent conversation — you must list them explicitly.
|
|
16
|
+
- The system prompt should be direct and actionable — never include meta-instructions like "go read SKILL.md". The skill content is already injected.
|
|
17
|
+
- Each subagent should excel at **one specific task**.
|
|
18
|
+
|
|
19
|
+
## Subagent Creation Workflow
|
|
20
|
+
|
|
21
|
+
1. Identify and analyze the target skills
|
|
22
|
+
2. Design the subagent configuration
|
|
23
|
+
3. Write the system prompt
|
|
24
|
+
4. Generate the subagent file
|
|
25
|
+
5. Verify and test
|
|
26
|
+
|
|
27
|
+
### Step 1: Identify and Analyze the Target Skills
|
|
28
|
+
|
|
29
|
+
The user provides one or more skills that the subagent should use. Locate and read each skill's `SKILL.md` to understand what it does:
|
|
30
|
+
- Check `skills/<skill-name>/SKILL.md` (workspace convention)
|
|
31
|
+
- Check `.github/skills/<skill-name>/SKILL.md` (Copilot convention)
|
|
32
|
+
|
|
33
|
+
For each skill, extract:
|
|
34
|
+
1. **Skill name** — from frontmatter `name` (this goes into the `skills` list)
|
|
35
|
+
2. **Skill description** — from frontmatter `description`
|
|
36
|
+
3. **Workflow summary** — key steps the skill performs
|
|
37
|
+
4. **Tool requirements** — what tools the skill needs (file read/write, search, shell, etc.)
|
|
38
|
+
5. **Output format** — what the skill produces
|
|
39
|
+
|
|
40
|
+
If the user describes a task without naming a skill, search the skills directories for a matching skill by reading available `SKILL.md` frontmatter descriptions. If no matching skill exists, inform the user and suggest creating one first using the `skill-creator` skill.
|
|
41
|
+
|
|
42
|
+
### Step 2: Design the Subagent Configuration
|
|
43
|
+
|
|
44
|
+
Derive the subagent configuration from the analyzed skills. For the full configuration reference, see [references/claude-code-subagent-configuration.md](references/claude-code-subagent-configuration.md).
|
|
45
|
+
|
|
46
|
+
#### Name (required)
|
|
47
|
+
Derive from the skill name(s). Use lowercase letters and hyphens:
|
|
48
|
+
- Skill `pr-review` → Subagent `pr-reviewer`
|
|
49
|
+
- Skill `increase-unit-test-coverage` → Subagent `test-coverage`
|
|
50
|
+
- Skill `web-auto-coding` → Subagent `web-auto-coder`
|
|
51
|
+
- Multiple skills → name by the primary responsibility (e.g., skills `api-conventions` + `error-handling-patterns` → `api-developer`)
|
|
52
|
+
|
|
53
|
+
#### Description (required)
|
|
54
|
+
Combine the skill descriptions into a concise subagent description (1-2 sentences) explaining **what the subagent does** and **when Claude should delegate to it**. Claude uses this to decide when to delegate, so be specific. Include "use proactively" for subagents that should be auto-triggered.
|
|
55
|
+
|
|
56
|
+
Good: `"Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code."`
|
|
57
|
+
|
|
58
|
+
Bad: `"Reviews code"` (too vague for Claude to know when to delegate)
|
|
59
|
+
|
|
60
|
+
#### Skills (required)
|
|
61
|
+
List all user-provided skills in the `skills` frontmatter field. The full content of each skill is injected into the subagent's context at startup.
|
|
62
|
+
|
|
63
|
+
```yaml
|
|
64
|
+
skills:
|
|
65
|
+
- skill-name-1
|
|
66
|
+
- skill-name-2
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
#### Tools
|
|
70
|
+
Derive from the union of tool requirements across all provided skills. Grant only the tools the skills actually need. Omit `tools` to inherit all.
|
|
71
|
+
|
|
72
|
+
| Tool | Description |
|
|
73
|
+
|------|-------------|
|
|
74
|
+
| `Read` | Read file contents |
|
|
75
|
+
| `Write` | Write/create files |
|
|
76
|
+
| `Edit` | Edit existing files |
|
|
77
|
+
| `Bash` | Execute shell commands |
|
|
78
|
+
| `Grep` | Search text in files |
|
|
79
|
+
| `Glob` | Find files by pattern |
|
|
80
|
+
|
|
81
|
+
Common patterns:
|
|
82
|
+
- **Read-only subagent**: `tools: Read, Grep, Glob, Bash` + `disallowedTools: Write, Edit`
|
|
83
|
+
- **Full access subagent**: Omit `tools` entirely
|
|
84
|
+
- **Limited execution**: `tools: Read, Grep, Glob` (no Bash, no file modification)
|
|
85
|
+
|
|
86
|
+
#### Model
|
|
87
|
+
- `haiku` — fast, low-latency (codebase exploration, simple lookups)
|
|
88
|
+
- `sonnet` — balanced capability and speed (most subagents)
|
|
89
|
+
- `opus` — most capable (complex reasoning, architecture decisions)
|
|
90
|
+
- `inherit` — same as main conversation (default if omitted)
|
|
91
|
+
|
|
92
|
+
#### Optional Fields
|
|
93
|
+
Only add these when the subagent genuinely needs them:
|
|
94
|
+
|
|
95
|
+
- **`memory`**: Enable persistent cross-session learning. Scopes: `user` (all projects), `project` (project-specific, shareable via VCS), `local` (project-specific, not in VCS).
|
|
96
|
+
- **`hooks`**: Lifecycle hooks for validation or side effects. Use `PreToolUse` to validate, `PostToolUse` for post-processing, `Stop` for cleanup.
|
|
97
|
+
- **`permissionMode`**: `default`, `acceptEdits`, `dontAsk`, `plan` (read-only), or `bypassPermissions` (use with extreme caution).
|
|
98
|
+
- **`background`**: Set `true` to always run concurrently.
|
|
99
|
+
- **`maxTurns`**: Cap the number of agentic turns.
|
|
100
|
+
- **`isolation`**: Set `worktree` for isolated git worktree execution.
|
|
101
|
+
- **`mcpServers`**: MCP servers available to this subagent.
|
|
102
|
+
|
|
103
|
+
### Step 3: Write the System Prompt
|
|
104
|
+
|
|
105
|
+
The markdown body below the frontmatter becomes the subagent's **entire system prompt**. Since the skills are preloaded via the `skills` frontmatter field, the system prompt should **direct the subagent to use the preloaded skill knowledge** — not re-explain it. Follow these best practices from the official Claude Code documentation:
|
|
106
|
+
|
|
107
|
+
#### Structure Pattern
|
|
108
|
+
|
|
109
|
+
```
|
|
110
|
+
1. Role statement — who the subagent is
|
|
111
|
+
2. Skill reference — tell the subagent to follow the preloaded skills
|
|
112
|
+
3. "When invoked" block — immediate action steps (numbered)
|
|
113
|
+
4. Domain-specific guidance — checklist, key practices, or process (derived from the skills)
|
|
114
|
+
5. Output format — how to present results
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
#### Prompt Writing Guidelines
|
|
118
|
+
|
|
119
|
+
**Reference the preloaded skills by name.** Since skill content is injected at startup, tell the subagent: "Follow the conventions and patterns from the preloaded skills." or "Follow the workflow defined in the [skill-name] skill."
|
|
120
|
+
|
|
121
|
+
**Be direct and actionable.** The subagent should know exactly what to do when invoked. Start with "When invoked:" followed by numbered steps derived from the skill workflow.
|
|
122
|
+
|
|
123
|
+
**Derive domain guidance from the skills.** Extract the key checklists, criteria, or process steps from the skill and include them (or summarize them) in the prompt to reinforce the skill's workflow.
|
|
124
|
+
|
|
125
|
+
**Be specific about output format.** Tell the subagent how to organize and present its results (e.g., "organized by priority: Critical → Warnings → Suggestions").
|
|
126
|
+
|
|
127
|
+
**Keep it focused.** Each subagent should do one thing well. Don't combine multiple unrelated responsibilities.
|
|
128
|
+
|
|
129
|
+
**Include memory instructions when using `memory`.** Tell the subagent what to remember: `"Update your agent memory as you discover codepaths, patterns, library locations, and key architectural decisions."`
|
|
130
|
+
|
|
131
|
+
**Do NOT include meta-instructions to read files.** Never tell the subagent to "go read SKILL.md for instructions". The skill content is already injected via the `skills` field. The prompt should complement the skill, not redirect to it.
|
|
132
|
+
|
|
133
|
+
### Step 4: Generate the Subagent File
|
|
134
|
+
|
|
135
|
+
**File location by scope:**
|
|
136
|
+
- **Project**: `.claude/agents/<agent-name>.md` — check into version control for team use
|
|
137
|
+
- **User**: `~/.claude/agents/<agent-name>.md` — personal, available in all projects
|
|
138
|
+
|
|
139
|
+
Use the template at [templates/subagent-profile.template.md](templates/subagent-profile.template.md) as a starting point, replacing `{{PLACEHOLDER}}` values.
|
|
140
|
+
|
|
141
|
+
#### Example: Subagent with a Single Skill (pr-review)
|
|
142
|
+
|
|
143
|
+
```markdown
|
|
144
|
+
---
|
|
145
|
+
name: pr-reviewer
|
|
146
|
+
description: Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code.
|
|
147
|
+
tools: Read, Grep, Glob, Bash
|
|
148
|
+
model: sonnet
|
|
149
|
+
skills:
|
|
150
|
+
- pr-review
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
You are a senior code reviewer ensuring high standards of code quality and security.
|
|
154
|
+
|
|
155
|
+
Follow the review workflow defined in the pr-review skill.
|
|
156
|
+
|
|
157
|
+
When invoked:
|
|
158
|
+
1. Run git diff to see recent changes
|
|
159
|
+
2. Focus on modified files
|
|
160
|
+
3. Begin review following the skill's process
|
|
161
|
+
|
|
162
|
+
Provide feedback organized by priority:
|
|
163
|
+
- Critical issues (must fix)
|
|
164
|
+
- Warnings (should fix)
|
|
165
|
+
- Suggestions (consider improving)
|
|
166
|
+
|
|
167
|
+
Include specific examples of how to fix issues.
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
#### Example: Subagent with Multiple Skills
|
|
171
|
+
|
|
172
|
+
```markdown
|
|
173
|
+
---
|
|
174
|
+
name: api-developer
|
|
175
|
+
description: Implement API endpoints following team conventions and error handling standards.
|
|
176
|
+
tools: Read, Edit, Write, Bash, Grep, Glob
|
|
177
|
+
model: sonnet
|
|
178
|
+
skills:
|
|
179
|
+
- api-conventions
|
|
180
|
+
- error-handling-patterns
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
Implement API endpoints. Follow the conventions and patterns from the preloaded skills.
|
|
184
|
+
|
|
185
|
+
When invoked:
|
|
186
|
+
1. Understand the endpoint requirement
|
|
187
|
+
2. Check existing patterns in the codebase
|
|
188
|
+
3. Implement the endpoint following api-conventions skill
|
|
189
|
+
4. Add error handling per the error-handling-patterns skill
|
|
190
|
+
5. Write or update tests
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
#### Example: Subagent with Skills, Memory, and Hooks
|
|
194
|
+
|
|
195
|
+
```markdown
|
|
196
|
+
---
|
|
197
|
+
name: db-reader
|
|
198
|
+
description: Execute read-only database queries. Use when analyzing data or generating reports.
|
|
199
|
+
tools: Bash, Read
|
|
200
|
+
model: sonnet
|
|
201
|
+
skills:
|
|
202
|
+
- database-schema
|
|
203
|
+
memory: project
|
|
204
|
+
hooks:
|
|
205
|
+
PreToolUse:
|
|
206
|
+
- matcher: "Bash"
|
|
207
|
+
hooks:
|
|
208
|
+
- type: command
|
|
209
|
+
command: "./scripts/validate-readonly-query.sh"
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
You are a database analyst with read-only access. Use the table schemas and query patterns from the database-schema skill.
|
|
213
|
+
|
|
214
|
+
When asked to analyze data:
|
|
215
|
+
1. Identify which tables contain the relevant data using preloaded schema knowledge
|
|
216
|
+
2. Write efficient SELECT queries with appropriate filters
|
|
217
|
+
3. Present results clearly with context
|
|
218
|
+
|
|
219
|
+
You cannot modify data. If asked to INSERT, UPDATE, DELETE, or modify schema, explain that you only have read access.
|
|
220
|
+
|
|
221
|
+
Update your agent memory as you discover common queries, data patterns, and optimization insights.
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
#### Example: Read-Only Subagent with Skills
|
|
225
|
+
|
|
226
|
+
```markdown
|
|
227
|
+
---
|
|
228
|
+
name: debugger
|
|
229
|
+
description: Debugging specialist for errors, test failures, and unexpected behavior. Use proactively when encountering any issues.
|
|
230
|
+
tools: Read, Edit, Bash, Grep, Glob
|
|
231
|
+
skills:
|
|
232
|
+
- fix-automation-tests
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
You are an expert debugger specializing in root cause analysis. Follow the debugging workflow from the fix-automation-tests skill.
|
|
236
|
+
|
|
237
|
+
When invoked:
|
|
238
|
+
1. Capture error message and stack trace
|
|
239
|
+
2. Identify reproduction steps
|
|
240
|
+
3. Isolate the failure location
|
|
241
|
+
4. Implement minimal fix following the skill's patterns
|
|
242
|
+
5. Verify solution works
|
|
243
|
+
|
|
244
|
+
For each issue, provide:
|
|
245
|
+
- Root cause explanation
|
|
246
|
+
- Evidence supporting the diagnosis
|
|
247
|
+
- Specific code fix
|
|
248
|
+
- Testing approach
|
|
249
|
+
- Prevention recommendations
|
|
250
|
+
|
|
251
|
+
Focus on fixing the underlying issue, not the symptoms.
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
### Step 5: Verify and Test
|
|
255
|
+
|
|
256
|
+
Before finalizing, verify:
|
|
257
|
+
|
|
258
|
+
- [ ] `name` uses only lowercase letters and hyphens
|
|
259
|
+
- [ ] `description` clearly states what the subagent does AND when to delegate
|
|
260
|
+
- [ ] `skills` lists all user-provided skills and names match existing skills
|
|
261
|
+
- [ ] `tools` grants only what the skills need (principle of least privilege)
|
|
262
|
+
- [ ] `model` is appropriate for the task complexity
|
|
263
|
+
- [ ] System prompt references the preloaded skills by name
|
|
264
|
+
- [ ] System prompt starts with a role statement and "When invoked:" steps
|
|
265
|
+
- [ ] System prompt does NOT tell the subagent to "go read" any files — skills are already injected
|
|
266
|
+
- [ ] Output format is specified in the prompt
|
|
267
|
+
- [ ] File is in `.claude/agents/` (project) or `~/.claude/agents/` (user)
|
|
268
|
+
- [ ] If using `memory`, prompt includes instructions on what to remember
|
|
269
|
+
- [ ] If using `hooks`, validation scripts exist and are executable
|
|
270
|
+
|
|
271
|
+
After saving, the subagent is available immediately in new sessions (or use `/agents` to load it in the current session).
|
|
272
|
+
|
|
273
|
+
## Rules
|
|
274
|
+
|
|
275
|
+
### DO:
|
|
276
|
+
- Always include user-provided skills in the `skills` frontmatter field
|
|
277
|
+
- Read each skill's SKILL.md to understand its workflow before designing the subagent
|
|
278
|
+
- Derive the subagent's name, description, tools, and prompt from the skill analysis
|
|
279
|
+
- Design focused subagents — each should excel at one specific task
|
|
280
|
+
- Write detailed descriptions — Claude uses them to decide when to delegate
|
|
281
|
+
- Limit tool access — grant only what the skills need
|
|
282
|
+
- Reference preloaded skills by name in the system prompt
|
|
283
|
+
- Follow the "When invoked:" numbered steps pattern from official examples
|
|
284
|
+
|
|
285
|
+
### DO NOT:
|
|
286
|
+
- Create a subagent without listing the user-provided skills in `skills` frontmatter
|
|
287
|
+
- Write meta-instructions like "go read SKILL.md" in the prompt body — skill content is already injected
|
|
288
|
+
- Grant more tools than the skills actually need
|
|
289
|
+
- Combine multiple unrelated responsibilities into one subagent
|
|
290
|
+
- Use `bypassPermissions` without explicit user request and understanding of risks
|
|
291
|
+
- Omit the description field — it's required and drives delegation decisions
|
|
292
|
+
- Write vague descriptions — Claude won't know when to delegate
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# Claude Code Subagent Configuration Reference
|
|
2
|
+
|
|
3
|
+
Source: https://code.claude.com/docs/en/sub-agents
|
|
4
|
+
|
|
5
|
+
## Subagent File Format
|
|
6
|
+
|
|
7
|
+
Subagent files are Markdown files with YAML frontmatter. The body becomes the system prompt.
|
|
8
|
+
|
|
9
|
+
```markdown
|
|
10
|
+
---
|
|
11
|
+
name: my-agent
|
|
12
|
+
description: What the agent does and when to use it
|
|
13
|
+
tools: Read, Grep, Glob, Bash
|
|
14
|
+
model: sonnet
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
You are a specialist. When invoked, do X, Y, Z.
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Subagent Scope (File Locations)
|
|
21
|
+
|
|
22
|
+
| Location | Scope | Priority |
|
|
23
|
+
|----------|-------|----------|
|
|
24
|
+
| `--agents` CLI flag | Current session only | 1 (highest) |
|
|
25
|
+
| `.claude/agents/` | Current project | 2 |
|
|
26
|
+
| `~/.claude/agents/` | All user projects | 3 |
|
|
27
|
+
| Plugin's `agents/` directory | Where plugin is enabled | 4 (lowest) |
|
|
28
|
+
|
|
29
|
+
- **Project subagents** (`.claude/agents/`): Ideal for codebase-specific agents. Check into version control for team sharing.
|
|
30
|
+
- **User subagents** (`~/.claude/agents/`): Personal agents available in all projects.
|
|
31
|
+
|
|
32
|
+
## YAML Frontmatter Fields
|
|
33
|
+
|
|
34
|
+
| Field | Required | Description |
|
|
35
|
+
|-------|----------|-------------|
|
|
36
|
+
| `name` | Yes | Unique identifier using lowercase letters and hyphens |
|
|
37
|
+
| `description` | Yes | When Claude should delegate to this subagent |
|
|
38
|
+
| `tools` | No | Tools the subagent can use. Inherits all tools if omitted |
|
|
39
|
+
| `disallowedTools` | No | Tools to deny, removed from inherited or specified list |
|
|
40
|
+
| `model` | No | Model: `sonnet`, `opus`, `haiku`, or `inherit`. Defaults to `inherit` |
|
|
41
|
+
| `permissionMode` | No | `default`, `acceptEdits`, `dontAsk`, `bypassPermissions`, or `plan` |
|
|
42
|
+
| `maxTurns` | No | Maximum agentic turns before the subagent stops |
|
|
43
|
+
| `skills` | No | Skills to preload into the subagent's context at startup |
|
|
44
|
+
| `mcpServers` | No | MCP servers available to this subagent |
|
|
45
|
+
| `hooks` | No | Lifecycle hooks scoped to this subagent |
|
|
46
|
+
| `memory` | No | Persistent memory scope: `user`, `project`, or `local` |
|
|
47
|
+
| `background` | No | Set `true` to always run as a background task. Default: `false` |
|
|
48
|
+
| `isolation` | No | Set to `worktree` for isolated git worktree execution |
|
|
49
|
+
|
|
50
|
+
## Available Tools
|
|
51
|
+
|
|
52
|
+
Subagents can use any of Claude Code's internal tools. Common tools:
|
|
53
|
+
|
|
54
|
+
| Tool | Description |
|
|
55
|
+
|------|-------------|
|
|
56
|
+
| `Read` | Read file contents |
|
|
57
|
+
| `Write` | Write/create files |
|
|
58
|
+
| `Edit` | Edit existing files |
|
|
59
|
+
| `Bash` | Execute shell commands |
|
|
60
|
+
| `Grep` | Search text in files |
|
|
61
|
+
| `Glob` | Find files by pattern |
|
|
62
|
+
| `Agent` | Spawn other subagents (main thread only) |
|
|
63
|
+
|
|
64
|
+
Use `tools` for an allowlist or `disallowedTools` for a denylist:
|
|
65
|
+
|
|
66
|
+
```yaml
|
|
67
|
+
tools: Read, Grep, Glob, Bash
|
|
68
|
+
disallowedTools: Write, Edit
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Restricting Subagent Spawning
|
|
72
|
+
|
|
73
|
+
Use `Agent(worker, researcher)` syntax to allowlist which subagents can be spawned:
|
|
74
|
+
|
|
75
|
+
```yaml
|
|
76
|
+
tools: Agent(worker, researcher), Read, Bash
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Permission Modes
|
|
80
|
+
|
|
81
|
+
| Mode | Behavior |
|
|
82
|
+
|------|----------|
|
|
83
|
+
| `default` | Standard permission checking with prompts |
|
|
84
|
+
| `acceptEdits` | Auto-accept file edits |
|
|
85
|
+
| `dontAsk` | Auto-deny permission prompts (explicitly allowed tools still work) |
|
|
86
|
+
| `bypassPermissions` | Skip all permission checks (use with caution) |
|
|
87
|
+
| `plan` | Plan mode (read-only exploration) |
|
|
88
|
+
|
|
89
|
+
## Preloading Skills
|
|
90
|
+
|
|
91
|
+
```yaml
|
|
92
|
+
skills:
|
|
93
|
+
- api-conventions
|
|
94
|
+
- error-handling-patterns
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Full skill content is injected at startup. Subagents don't inherit skills from the parent.
|
|
98
|
+
|
|
99
|
+
## Persistent Memory
|
|
100
|
+
|
|
101
|
+
```yaml
|
|
102
|
+
memory: user
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
| Scope | Storage Location | Use When |
|
|
106
|
+
|-------|-----------------|----------|
|
|
107
|
+
| `user` | `~/.claude/agent-memory/<name>/` | Knowledge should persist across all projects |
|
|
108
|
+
| `project` | `.claude/agent-memory/<name>/` | Knowledge is project-specific and shareable via VCS |
|
|
109
|
+
| `local` | `.claude/agent-memory-local/<name>/` | Project-specific but should not be checked into VCS |
|
|
110
|
+
|
|
111
|
+
When enabled, the subagent can read/write to its memory directory. Include memory instructions in the prompt:
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
Update your agent memory as you discover codepaths, patterns, library locations,
|
|
115
|
+
and key architectural decisions.
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Hooks
|
|
119
|
+
|
|
120
|
+
### In Subagent Frontmatter
|
|
121
|
+
|
|
122
|
+
```yaml
|
|
123
|
+
hooks:
|
|
124
|
+
PreToolUse:
|
|
125
|
+
- matcher: "Bash"
|
|
126
|
+
hooks:
|
|
127
|
+
- type: command
|
|
128
|
+
command: "./scripts/validate-command.sh"
|
|
129
|
+
PostToolUse:
|
|
130
|
+
- matcher: "Edit|Write"
|
|
131
|
+
hooks:
|
|
132
|
+
- type: command
|
|
133
|
+
command: "./scripts/run-linter.sh"
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Supported events in frontmatter: `PreToolUse`, `PostToolUse`, `Stop`.
|
|
137
|
+
|
|
138
|
+
### In Project settings.json
|
|
139
|
+
|
|
140
|
+
```json
|
|
141
|
+
{
|
|
142
|
+
"hooks": {
|
|
143
|
+
"SubagentStart": [
|
|
144
|
+
{ "matcher": "db-agent", "hooks": [{ "type": "command", "command": "./scripts/setup.sh" }] }
|
|
145
|
+
],
|
|
146
|
+
"SubagentStop": [
|
|
147
|
+
{ "hooks": [{ "type": "command", "command": "./scripts/cleanup.sh" }] }
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Foreground vs Background
|
|
154
|
+
|
|
155
|
+
- **Foreground**: Blocks main conversation. Permission prompts pass through.
|
|
156
|
+
- **Background**: Runs concurrently. Permissions must be pre-approved before launch.
|
|
157
|
+
|
|
158
|
+
Set `background: true` in frontmatter to always run in background.
|
package/kits/agent/.agent/skills/claude-code-subagent-creator/templates/subagent-profile.template.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: {{AGENT_NAME}}
|
|
3
|
+
description: {{AGENT_DESCRIPTION}}
|
|
4
|
+
tools: {{TOOLS}}
|
|
5
|
+
model: {{MODEL}}
|
|
6
|
+
skills:
|
|
7
|
+
- {{SKILL_NAME_1}}
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
You are {{ROLE_DESCRIPTION}}.
|
|
11
|
+
|
|
12
|
+
Follow the workflow defined in the {{SKILL_NAME_1}} skill.
|
|
13
|
+
|
|
14
|
+
When invoked:
|
|
15
|
+
1. {{STEP_1}}
|
|
16
|
+
2. {{STEP_2}}
|
|
17
|
+
3. {{STEP_3}}
|
|
18
|
+
|
|
19
|
+
{{DOMAIN_GUIDANCE}}
|
|
20
|
+
|
|
21
|
+
For each {{TASK_UNIT}}, provide:
|
|
22
|
+
- {{OUTPUT_ITEM_1}}
|
|
23
|
+
- {{OUTPUT_ITEM_2}}
|
|
24
|
+
- {{OUTPUT_ITEM_3}}
|
|
25
|
+
|
|
26
|
+
{{ADDITIONAL_INSTRUCTIONS}}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|