hive-skills 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 +28 -0
- package/README.md +235 -0
- package/assets/LICENSE +32 -0
- package/assets/THIRD_PARTY_NOTICES.md +72 -0
- package/assets/manifest.json +1290 -0
- package/assets/skills/authored/code-review/composable/BUNDLE.md +192 -0
- package/assets/skills/authored/code-review/composable/INDEX.md +13 -0
- package/assets/skills/authored/code-review/composable/VERSION +1 -0
- package/assets/skills/authored/code-review/composable/mini/01-review-method.md +34 -0
- package/assets/skills/authored/code-review/composable/mini/02-security-review.md +20 -0
- package/assets/skills/authored/code-review/composable/mini/03-correctness-bugs.md +19 -0
- package/assets/skills/authored/code-review/composable/mini/04-concurrency.md +16 -0
- package/assets/skills/authored/code-review/composable/mini/05-error-handling.md +12 -0
- package/assets/skills/authored/code-review/composable/mini/06-performance.md +11 -0
- package/assets/skills/authored/code-review/composable/mini/07-api-design.md +20 -0
- package/assets/skills/authored/code-review/composable/mini/08-missing-tests.md +25 -0
- package/assets/skills/authored/code-review/composable/mini/09-refactoring-and-communication.md +32 -0
- package/assets/skills/authored/data-analysis/composable/BUNDLE.md +186 -0
- package/assets/skills/authored/data-analysis/composable/INDEX.md +13 -0
- package/assets/skills/authored/data-analysis/composable/VERSION +1 -0
- package/assets/skills/authored/data-analysis/composable/mini/01-data-quality-profiling.md +26 -0
- package/assets/skills/authored/data-analysis/composable/mini/02-aggregation-pitfalls.md +21 -0
- package/assets/skills/authored/data-analysis/composable/mini/03-time-series.md +19 -0
- package/assets/skills/authored/data-analysis/composable/mini/04-segmentation.md +23 -0
- package/assets/skills/authored/data-analysis/composable/mini/05-discount-pricing.md +17 -0
- package/assets/skills/authored/data-analysis/composable/mini/06-insight-generation.md +25 -0
- package/assets/skills/authored/data-analysis/composable/mini/07-executive-writing.md +26 -0
- package/assets/skills/authored/data-analysis/composable/mini/08-recommendations.md +20 -0
- package/assets/skills/authored/data-analysis/composable/mini/09-reproducibility-assumptions.md +20 -0
- package/assets/skills/authored/financial-analysis/composable/BUNDLE.md +1293 -0
- package/assets/skills/authored/financial-analysis/composable/INDEX.md +17 -0
- package/assets/skills/authored/financial-analysis/composable/VERSION +1 -0
- package/assets/skills/authored/financial-analysis/composable/mini/00-core.md +69 -0
- package/assets/skills/authored/financial-analysis/composable/mini/01-profitability-efficiency-ratios.md +173 -0
- package/assets/skills/authored/financial-analysis/composable/mini/02-liquidity-leverage-ratios.md +120 -0
- package/assets/skills/authored/financial-analysis/composable/mini/03-valuation-ratios-interpretation.md +107 -0
- package/assets/skills/authored/financial-analysis/composable/mini/04-dcf-projection-wacc.md +122 -0
- package/assets/skills/authored/financial-analysis/composable/mini/05-dcf-terminal-value-sensitivity.md +75 -0
- package/assets/skills/authored/financial-analysis/composable/mini/06-comparables-precedents.md +78 -0
- package/assets/skills/authored/financial-analysis/composable/mini/07-budget-variance-analysis.md +47 -0
- package/assets/skills/authored/financial-analysis/composable/mini/08-driver-based-forecasting-scenarios.md +111 -0
- package/assets/skills/authored/financial-analysis/composable/mini/09-rolling-forecasts-accuracy.md +114 -0
- package/assets/skills/authored/financial-analysis/composable/mini/10-reporting-exec-summary.md +58 -0
- package/assets/skills/authored/financial-analysis/composable/mini/11-industry-adaptations.md +130 -0
- package/assets/skills/authored/financial-analysis/composable/mini/12-toolkit-scripts-io.md +102 -0
- package/assets/skills/authored/python-api/composable/BUNDLE.md +389 -0
- package/assets/skills/authored/python-api/composable/INDEX.md +13 -0
- package/assets/skills/authored/python-api/composable/VERSION +1 -0
- package/assets/skills/authored/python-api/composable/mini/01-project-structure.md +44 -0
- package/assets/skills/authored/python-api/composable/mini/02-routing-and-app.md +38 -0
- package/assets/skills/authored/python-api/composable/mini/03-pydantic-models.md +45 -0
- package/assets/skills/authored/python-api/composable/mini/04-validation-and-errors.md +59 -0
- package/assets/skills/authored/python-api/composable/mini/05-dependencies-and-auth.md +60 -0
- package/assets/skills/authored/python-api/composable/mini/06-pagination-filtering.md +44 -0
- package/assets/skills/authored/python-api/composable/mini/07-async-performance.md +30 -0
- package/assets/skills/authored/python-api/composable/mini/08-testing.md +45 -0
- package/assets/skills/authored/python-api/composable/mini/09-middleware-observability.md +29 -0
- package/assets/skills/authored/tech-writing/composable/BUNDLE.md +220 -0
- package/assets/skills/authored/tech-writing/composable/INDEX.md +12 -0
- package/assets/skills/authored/tech-writing/composable/VERSION +1 -0
- package/assets/skills/authored/tech-writing/composable/mini/01-audience-analysis.md +26 -0
- package/assets/skills/authored/tech-writing/composable/mini/02-document-types.md +27 -0
- package/assets/skills/authored/tech-writing/composable/mini/03-readme-quickstart-changelog.md +22 -0
- package/assets/skills/authored/tech-writing/composable/mini/04-information-architecture.md +21 -0
- package/assets/skills/authored/tech-writing/composable/mini/05-style-clarity.md +29 -0
- package/assets/skills/authored/tech-writing/composable/mini/06-breaking-changes-migrations.md +33 -0
- package/assets/skills/authored/tech-writing/composable/mini/07-troubleshooting-security.md +30 -0
- package/assets/skills/authored/tech-writing/composable/mini/08-faq-voice-tone.md +32 -0
- package/assets/skills/converted/claude-api/composable/BUNDLE.md +14996 -0
- package/assets/skills/converted/claude-api/composable/INDEX.md +98 -0
- package/assets/skills/converted/claude-api/composable/VERSION +1 -0
- package/assets/skills/converted/claude-api/composable/mini/00-core.md +235 -0
- package/assets/skills/converted/claude-api/composable/mini/01-model-api-quick-reference.md +258 -0
- package/assets/skills/converted/claude-api/composable/mini/02-common-pitfalls.md +42 -0
- package/assets/skills/converted/claude-api/composable/mini/10-models.md +135 -0
- package/assets/skills/converted/claude-api/composable/mini/11-platform-availability.md +96 -0
- package/assets/skills/converted/claude-api/composable/mini/12-claude-platform-on-aws.md +59 -0
- package/assets/skills/converted/claude-api/composable/mini/13-live-sources.md +143 -0
- package/assets/skills/converted/claude-api/composable/mini/14-error-codes.md +256 -0
- package/assets/skills/converted/claude-api/composable/mini/15-prompt-caching.md +223 -0
- package/assets/skills/converted/claude-api/composable/mini/16-token-counting.md +56 -0
- package/assets/skills/converted/claude-api/composable/mini/17-tool-use-concepts.md +444 -0
- package/assets/skills/converted/claude-api/composable/mini/18-agent-design.md +101 -0
- package/assets/skills/converted/claude-api/composable/mini/19-anthropic-cli.md +246 -0
- package/assets/skills/converted/claude-api/composable/mini/20-model-migration.md +1301 -0
- package/assets/skills/converted/claude-api/composable/mini/30-managed-agents-overview.md +71 -0
- package/assets/skills/converted/claude-api/composable/mini/31-managed-agents-core.md +278 -0
- package/assets/skills/converted/claude-api/composable/mini/32-managed-agents-environments.md +219 -0
- package/assets/skills/converted/claude-api/composable/mini/33-managed-agents-tools.md +366 -0
- package/assets/skills/converted/claude-api/composable/mini/34-managed-agents-events.md +252 -0
- package/assets/skills/converted/claude-api/composable/mini/35-managed-agents-outcomes.md +106 -0
- package/assets/skills/converted/claude-api/composable/mini/36-managed-agents-multiagent.md +101 -0
- package/assets/skills/converted/claude-api/composable/mini/37-managed-agents-webhooks.md +123 -0
- package/assets/skills/converted/claude-api/composable/mini/38-managed-agents-memory.md +197 -0
- package/assets/skills/converted/claude-api/composable/mini/39-managed-agents-scheduled-deployments.md +146 -0
- package/assets/skills/converted/claude-api/composable/mini/40-managed-agents-client-patterns.md +211 -0
- package/assets/skills/converted/claude-api/composable/mini/41-managed-agents-onboarding.md +82 -0
- package/assets/skills/converted/claude-api/composable/mini/42-managed-agents-api-reference.md +441 -0
- package/assets/skills/converted/claude-api/composable/mini/43-managed-agents-self-hosted-sandboxes.md +174 -0
- package/assets/skills/converted/claude-api/composable/mini/50-python-readme.md +564 -0
- package/assets/skills/converted/claude-api/composable/mini/51-python-tool-use.md +590 -0
- package/assets/skills/converted/claude-api/composable/mini/52-python-streaming-batches-files.md +549 -0
- package/assets/skills/converted/claude-api/composable/mini/53-python-managed-agents.md +335 -0
- package/assets/skills/converted/claude-api/composable/mini/55-typescript-readme.md +404 -0
- package/assets/skills/converted/claude-api/composable/mini/56-typescript-tool-use.md +548 -0
- package/assets/skills/converted/claude-api/composable/mini/57-typescript-streaming-batches-files.md +384 -0
- package/assets/skills/converted/claude-api/composable/mini/58-typescript-managed-agents.md +358 -0
- package/assets/skills/converted/claude-api/composable/mini/60-csharp-readme.md +361 -0
- package/assets/skills/converted/claude-api/composable/mini/61-csharp-tool-use.md +163 -0
- package/assets/skills/converted/claude-api/composable/mini/62-csharp-streaming-batches-files.md +64 -0
- package/assets/skills/converted/claude-api/composable/mini/65-go-readme.md +185 -0
- package/assets/skills/converted/claude-api/composable/mini/66-go-tool-use.md +219 -0
- package/assets/skills/converted/claude-api/composable/mini/67-go-streaming-files.md +63 -0
- package/assets/skills/converted/claude-api/composable/mini/68-go-managed-agents.md +564 -0
- package/assets/skills/converted/claude-api/composable/mini/70-java-readme.md +237 -0
- package/assets/skills/converted/claude-api/composable/mini/71-java-tool-use.md +227 -0
- package/assets/skills/converted/claude-api/composable/mini/72-java-streaming-files.md +49 -0
- package/assets/skills/converted/claude-api/composable/mini/73-java-managed-agents.md +443 -0
- package/assets/skills/converted/claude-api/composable/mini/75-php-readme.md +173 -0
- package/assets/skills/converted/claude-api/composable/mini/76-php-tool-use.md +252 -0
- package/assets/skills/converted/claude-api/composable/mini/77-php-streaming-batches-files.md +53 -0
- package/assets/skills/converted/claude-api/composable/mini/78-php-managed-agents.md +443 -0
- package/assets/skills/converted/claude-api/composable/mini/80-ruby-readme.md +133 -0
- package/assets/skills/converted/claude-api/composable/mini/81-ruby-tool-use-streaming.md +56 -0
- package/assets/skills/converted/claude-api/composable/mini/82-ruby-managed-agents.md +394 -0
- package/assets/skills/converted/claude-api/composable/mini/85-curl-examples.md +255 -0
- package/assets/skills/converted/claude-api/composable/mini/86-curl-managed-agents.md +340 -0
- package/assets/skills/converted/claude-api/composable/presets/csharp.md +1151 -0
- package/assets/skills/converted/claude-api/composable/presets/curl.md +1154 -0
- package/assets/skills/converted/claude-api/composable/presets/go.md +1598 -0
- package/assets/skills/converted/claude-api/composable/presets/java.md +1523 -0
- package/assets/skills/converted/claude-api/composable/presets/php.md +1488 -0
- package/assets/skills/converted/claude-api/composable/presets/python.md +2605 -0
- package/assets/skills/converted/claude-api/composable/presets/ruby.md +1146 -0
- package/assets/skills/converted/claude-api/composable/presets/shared.md +6478 -0
- package/assets/skills/converted/claude-api/composable/presets/typescript.md +2261 -0
- package/assets/skills/converted/docx/composable/BUNDLE.md +617 -0
- package/assets/skills/converted/docx/composable/INDEX.md +12 -0
- package/assets/skills/converted/docx/composable/VERSION +1 -0
- package/assets/skills/converted/docx/composable/mini/00-core.md +26 -0
- package/assets/skills/converted/docx/composable/mini/01-reading-converting.md +36 -0
- package/assets/skills/converted/docx/composable/mini/02-creating-setup-layout.md +85 -0
- package/assets/skills/converted/docx/composable/mini/03-creating-elements.md +257 -0
- package/assets/skills/converted/docx/composable/mini/04-editing-existing.md +57 -0
- package/assets/skills/converted/docx/composable/mini/05-xml-reference.md +128 -0
- package/assets/skills/converted/internal-comms/composable/BUNDLE.md +220 -0
- package/assets/skills/converted/internal-comms/composable/INDEX.md +11 -0
- package/assets/skills/converted/internal-comms/composable/VERSION +1 -0
- package/assets/skills/converted/internal-comms/composable/mini/00-core.md +30 -0
- package/assets/skills/converted/internal-comms/composable/mini/01-3p-updates.md +49 -0
- package/assets/skills/converted/internal-comms/composable/mini/02-company-newsletter.md +67 -0
- package/assets/skills/converted/internal-comms/composable/mini/03-faq-answers.md +32 -0
- package/assets/skills/converted/internal-comms/composable/mini/04-general-comms.md +18 -0
- package/assets/skills/converted/mcp-builder/composable/BUNDLE.md +2460 -0
- package/assets/skills/converted/mcp-builder/composable/INDEX.md +23 -0
- package/assets/skills/converted/mcp-builder/composable/VERSION +1 -0
- package/assets/skills/converted/mcp-builder/composable/mini/00-core.md +43 -0
- package/assets/skills/converted/mcp-builder/composable/mini/01-workflow-research-planning.md +54 -0
- package/assets/skills/converted/mcp-builder/composable/mini/02-implementation-process.md +78 -0
- package/assets/skills/converted/mcp-builder/composable/mini/03-naming-conventions.md +33 -0
- package/assets/skills/converted/mcp-builder/composable/mini/04-response-formats.md +21 -0
- package/assets/skills/converted/mcp-builder/composable/mini/05-pagination.md +24 -0
- package/assets/skills/converted/mcp-builder/composable/mini/06-transport.md +47 -0
- package/assets/skills/converted/mcp-builder/composable/mini/07-annotations.md +20 -0
- package/assets/skills/converted/mcp-builder/composable/mini/08-security.md +35 -0
- package/assets/skills/converted/mcp-builder/composable/mini/09-error-handling.md +32 -0
- package/assets/skills/converted/mcp-builder/composable/mini/10-testing-and-documentation.md +21 -0
- package/assets/skills/converted/mcp-builder/composable/mini/11-python-implementation.md +432 -0
- package/assets/skills/converted/mcp-builder/composable/mini/12-python-advanced-and-checklist.md +233 -0
- package/assets/skills/converted/mcp-builder/composable/mini/13-node-implementation.md +717 -0
- package/assets/skills/converted/mcp-builder/composable/mini/14-node-advanced-and-checklist.md +200 -0
- package/assets/skills/converted/mcp-builder/composable/mini/15-evaluation-design.md +200 -0
- package/assets/skills/converted/mcp-builder/composable/mini/16-evaluation-running.md +198 -0
- package/assets/skills/converted/mcp-builder/composable/presets/node-server.md +1381 -0
- package/assets/skills/converted/mcp-builder/composable/presets/python-server.md +1129 -0
- package/assets/skills/converted/pdf/composable/BUNDLE.md +1284 -0
- package/assets/skills/converted/pdf/composable/INDEX.md +14 -0
- package/assets/skills/converted/pdf/composable/VERSION +1 -0
- package/assets/skills/converted/pdf/composable/mini/00-core.md +46 -0
- package/assets/skills/converted/pdf/composable/mini/01-creation.md +176 -0
- package/assets/skills/converted/pdf/composable/mini/02-extraction.md +178 -0
- package/assets/skills/converted/pdf/composable/mini/03-merge-split-manipulate.md +240 -0
- package/assets/skills/converted/pdf/composable/mini/04-images-ocr.md +168 -0
- package/assets/skills/converted/pdf/composable/mini/05-encryption.md +51 -0
- package/assets/skills/converted/pdf/composable/mini/06-forms.md +300 -0
- package/assets/skills/converted/pdf/composable/mini/07-libraries-reference.md +89 -0
- package/assets/skills/converted/pptx/composable/BUNDLE.md +911 -0
- package/assets/skills/converted/pptx/composable/INDEX.md +12 -0
- package/assets/skills/converted/pptx/composable/VERSION +1 -0
- package/assets/skills/converted/pptx/composable/mini/00-core.md +37 -0
- package/assets/skills/converted/pptx/composable/mini/01-reading.md +37 -0
- package/assets/skills/converted/pptx/composable/mini/02-creating-from-scratch.md +422 -0
- package/assets/skills/converted/pptx/composable/mini/03-editing-templates.md +207 -0
- package/assets/skills/converted/pptx/composable/mini/04-design.md +89 -0
- package/assets/skills/converted/pptx/composable/mini/05-qa-and-rendering.md +91 -0
- package/assets/skills/converted/pptx/composable/presets/creating.md +659 -0
- package/assets/skills/converted/pptx/composable/presets/editing.md +485 -0
- package/assets/skills/converted/skill-creator/composable/BUNDLE.md +1681 -0
- package/assets/skills/converted/skill-creator/composable/INDEX.md +21 -0
- package/assets/skills/converted/skill-creator/composable/VERSION +1 -0
- package/assets/skills/converted/skill-creator/composable/mini/00-core.md +59 -0
- package/assets/skills/converted/skill-creator/composable/mini/01-creating-a-skill.md +27 -0
- package/assets/skills/converted/skill-creator/composable/mini/02-skill-writing-guide.md +71 -0
- package/assets/skills/converted/skill-creator/composable/mini/03-test-cases.md +21 -0
- package/assets/skills/converted/skill-creator/composable/mini/04-running-and-evaluating.md +128 -0
- package/assets/skills/converted/skill-creator/composable/mini/05-improving-the-skill.md +30 -0
- package/assets/skills/converted/skill-creator/composable/mini/06-blind-comparison.md +5 -0
- package/assets/skills/converted/skill-creator/composable/mini/07-description-optimization.md +74 -0
- package/assets/skills/converted/skill-creator/composable/mini/08-packaging.md +11 -0
- package/assets/skills/converted/skill-creator/composable/mini/09-environment-specific.md +38 -0
- package/assets/skills/converted/skill-creator/composable/mini/10-scripts-and-references.md +34 -0
- package/assets/skills/converted/skill-creator/composable/mini/11-json-schemas.md +414 -0
- package/assets/skills/converted/skill-creator/composable/mini/12-agent-grader.md +225 -0
- package/assets/skills/converted/skill-creator/composable/mini/13-agent-comparator.md +204 -0
- package/assets/skills/converted/skill-creator/composable/mini/14-agent-analyzer.md +276 -0
- package/assets/skills/converted/skill-creator/composable/presets/authoring.md +198 -0
- package/assets/skills/converted/skill-creator/composable/presets/evaluating.md +1334 -0
- package/assets/skills/converted/skill-creator/composable/presets/optimizing.md +160 -0
- package/assets/skills/converted/skill-creator/composable/presets.json +5 -0
- package/assets/skills/meta/ccs-skill-creator/composable/BUNDLE.md +465 -0
- package/assets/skills/meta/ccs-skill-creator/composable/INDEX.md +8 -0
- package/assets/skills/meta/ccs-skill-creator/composable/VERSION +1 -0
- package/assets/skills/meta/ccs-skill-creator/composable/mini/00-core.md +46 -0
- package/assets/skills/meta/ccs-skill-creator/composable/mini/01-create-new-skill.md +167 -0
- package/assets/skills/meta/ccs-skill-creator/composable/mini/02-convert-existing-skill.md +120 -0
- package/assets/skills/meta/ccs-skill-creator/composable/mini/03-review-and-maintain.md +112 -0
- package/assets/skills/sources/anthropic/PROVENANCE.md +3 -0
- package/assets/skills/sources/anthropic/claude-api/LICENSE.txt +202 -0
- package/assets/skills/sources/anthropic/docx/LICENSE.txt +30 -0
- package/assets/skills/sources/anthropic/internal-comms/LICENSE.txt +202 -0
- package/assets/skills/sources/anthropic/mcp-builder/LICENSE.txt +202 -0
- package/assets/skills/sources/anthropic/pdf/LICENSE.txt +30 -0
- package/assets/skills/sources/anthropic/pptx/LICENSE.txt +30 -0
- package/assets/skills/sources/anthropic/skill-creator/LICENSE.txt +202 -0
- package/assets/skills/sources/financial-analyst/PROVENANCE.md +1 -0
- package/assets/tools/hive.py +728 -0
- package/dist/cli.js +7494 -0
- package/package.json +40 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
# Blind Comparator Agent
|
|
2
|
+
|
|
3
|
+
Instructions for the specialized blind-comparator subagent. (Source: the vendored `agents/comparator.md` at `skills/sources/anthropic/skill-creator/`. Spawn a subagent with these instructions for a rigorous A/B comparison between two skill versions.)
|
|
4
|
+
|
|
5
|
+
Compare two outputs WITHOUT knowing which skill produced them.
|
|
6
|
+
|
|
7
|
+
## Role
|
|
8
|
+
|
|
9
|
+
The Blind Comparator judges which output better accomplishes the eval task. You receive two outputs labeled A and B, but you do NOT know which skill produced which. This prevents bias toward a particular skill or approach.
|
|
10
|
+
|
|
11
|
+
Your judgment is based purely on output quality and task completion.
|
|
12
|
+
|
|
13
|
+
## Inputs
|
|
14
|
+
|
|
15
|
+
You receive these parameters in your prompt:
|
|
16
|
+
|
|
17
|
+
- **output_a_path**: Path to the first output file or directory
|
|
18
|
+
- **output_b_path**: Path to the second output file or directory
|
|
19
|
+
- **eval_prompt**: The original task/prompt that was executed
|
|
20
|
+
- **expectations**: List of expectations to check (optional - may be empty)
|
|
21
|
+
|
|
22
|
+
## Process
|
|
23
|
+
|
|
24
|
+
### Step 1: Read Both Outputs
|
|
25
|
+
|
|
26
|
+
1. Examine output A (file or directory)
|
|
27
|
+
2. Examine output B (file or directory)
|
|
28
|
+
3. Note the type, structure, and content of each
|
|
29
|
+
4. If outputs are directories, examine all relevant files inside
|
|
30
|
+
|
|
31
|
+
### Step 2: Understand the Task
|
|
32
|
+
|
|
33
|
+
1. Read the eval_prompt carefully
|
|
34
|
+
2. Identify what the task requires:
|
|
35
|
+
- What should be produced?
|
|
36
|
+
- What qualities matter (accuracy, completeness, format)?
|
|
37
|
+
- What would distinguish a good output from a poor one?
|
|
38
|
+
|
|
39
|
+
### Step 3: Generate Evaluation Rubric
|
|
40
|
+
|
|
41
|
+
Based on the task, generate a rubric with two dimensions:
|
|
42
|
+
|
|
43
|
+
**Content Rubric** (what the output contains):
|
|
44
|
+
| Criterion | 1 (Poor) | 3 (Acceptable) | 5 (Excellent) |
|
|
45
|
+
|-----------|----------|----------------|---------------|
|
|
46
|
+
| Correctness | Major errors | Minor errors | Fully correct |
|
|
47
|
+
| Completeness | Missing key elements | Mostly complete | All elements present |
|
|
48
|
+
| Accuracy | Significant inaccuracies | Minor inaccuracies | Accurate throughout |
|
|
49
|
+
|
|
50
|
+
**Structure Rubric** (how the output is organized):
|
|
51
|
+
| Criterion | 1 (Poor) | 3 (Acceptable) | 5 (Excellent) |
|
|
52
|
+
|-----------|----------|----------------|---------------|
|
|
53
|
+
| Organization | Disorganized | Reasonably organized | Clear, logical structure |
|
|
54
|
+
| Formatting | Inconsistent/broken | Mostly consistent | Professional, polished |
|
|
55
|
+
| Usability | Difficult to use | Usable with effort | Easy to use |
|
|
56
|
+
|
|
57
|
+
Adapt criteria to the specific task. For example:
|
|
58
|
+
- PDF form → "Field alignment", "Text readability", "Data placement"
|
|
59
|
+
- Document → "Section structure", "Heading hierarchy", "Paragraph flow"
|
|
60
|
+
- Data output → "Schema correctness", "Data types", "Completeness"
|
|
61
|
+
|
|
62
|
+
### Step 4: Evaluate Each Output Against the Rubric
|
|
63
|
+
|
|
64
|
+
For each output (A and B):
|
|
65
|
+
|
|
66
|
+
1. **Score each criterion** on the rubric (1-5 scale)
|
|
67
|
+
2. **Calculate dimension totals**: Content score, Structure score
|
|
68
|
+
3. **Calculate overall score**: Average of dimension scores, scaled to 1-10
|
|
69
|
+
|
|
70
|
+
### Step 5: Check Assertions (if provided)
|
|
71
|
+
|
|
72
|
+
If expectations are provided:
|
|
73
|
+
|
|
74
|
+
1. Check each expectation against output A
|
|
75
|
+
2. Check each expectation against output B
|
|
76
|
+
3. Count pass rates for each output
|
|
77
|
+
4. Use expectation scores as secondary evidence (not the primary decision factor)
|
|
78
|
+
|
|
79
|
+
### Step 6: Determine the Winner
|
|
80
|
+
|
|
81
|
+
Compare A and B based on (in priority order):
|
|
82
|
+
|
|
83
|
+
1. **Primary**: Overall rubric score (content + structure)
|
|
84
|
+
2. **Secondary**: Assertion pass rates (if applicable)
|
|
85
|
+
3. **Tiebreaker**: If truly equal, declare a TIE
|
|
86
|
+
|
|
87
|
+
Be decisive - ties should be rare. One output is usually better, even if marginally.
|
|
88
|
+
|
|
89
|
+
### Step 7: Write Comparison Results
|
|
90
|
+
|
|
91
|
+
Save results to a JSON file at the path specified (or `comparison.json` if not specified).
|
|
92
|
+
|
|
93
|
+
## Output Format
|
|
94
|
+
|
|
95
|
+
Write a JSON file with this structure:
|
|
96
|
+
|
|
97
|
+
```json
|
|
98
|
+
{
|
|
99
|
+
"winner": "A",
|
|
100
|
+
"reasoning": "Output A provides a complete solution with proper formatting and all required fields. Output B is missing the date field and has formatting inconsistencies.",
|
|
101
|
+
"rubric": {
|
|
102
|
+
"A": {
|
|
103
|
+
"content": {
|
|
104
|
+
"correctness": 5,
|
|
105
|
+
"completeness": 5,
|
|
106
|
+
"accuracy": 4
|
|
107
|
+
},
|
|
108
|
+
"structure": {
|
|
109
|
+
"organization": 4,
|
|
110
|
+
"formatting": 5,
|
|
111
|
+
"usability": 4
|
|
112
|
+
},
|
|
113
|
+
"content_score": 4.7,
|
|
114
|
+
"structure_score": 4.3,
|
|
115
|
+
"overall_score": 9.0
|
|
116
|
+
},
|
|
117
|
+
"B": {
|
|
118
|
+
"content": {
|
|
119
|
+
"correctness": 3,
|
|
120
|
+
"completeness": 2,
|
|
121
|
+
"accuracy": 3
|
|
122
|
+
},
|
|
123
|
+
"structure": {
|
|
124
|
+
"organization": 3,
|
|
125
|
+
"formatting": 2,
|
|
126
|
+
"usability": 3
|
|
127
|
+
},
|
|
128
|
+
"content_score": 2.7,
|
|
129
|
+
"structure_score": 2.7,
|
|
130
|
+
"overall_score": 5.4
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"output_quality": {
|
|
134
|
+
"A": {
|
|
135
|
+
"score": 9,
|
|
136
|
+
"strengths": ["Complete solution", "Well-formatted", "All fields present"],
|
|
137
|
+
"weaknesses": ["Minor style inconsistency in header"]
|
|
138
|
+
},
|
|
139
|
+
"B": {
|
|
140
|
+
"score": 5,
|
|
141
|
+
"strengths": ["Readable output", "Correct basic structure"],
|
|
142
|
+
"weaknesses": ["Missing date field", "Formatting inconsistencies", "Partial data extraction"]
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"expectation_results": {
|
|
146
|
+
"A": {
|
|
147
|
+
"passed": 4,
|
|
148
|
+
"total": 5,
|
|
149
|
+
"pass_rate": 0.80,
|
|
150
|
+
"details": [
|
|
151
|
+
{"text": "Output includes name", "passed": true},
|
|
152
|
+
{"text": "Output includes date", "passed": true},
|
|
153
|
+
{"text": "Format is PDF", "passed": true},
|
|
154
|
+
{"text": "Contains signature", "passed": false},
|
|
155
|
+
{"text": "Readable text", "passed": true}
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"B": {
|
|
159
|
+
"passed": 3,
|
|
160
|
+
"total": 5,
|
|
161
|
+
"pass_rate": 0.60,
|
|
162
|
+
"details": [
|
|
163
|
+
{"text": "Output includes name", "passed": true},
|
|
164
|
+
{"text": "Output includes date", "passed": false},
|
|
165
|
+
{"text": "Format is PDF", "passed": true},
|
|
166
|
+
{"text": "Contains signature", "passed": false},
|
|
167
|
+
{"text": "Readable text", "passed": true}
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
If no expectations were provided, omit the `expectation_results` field entirely.
|
|
175
|
+
|
|
176
|
+
## Field Descriptions
|
|
177
|
+
|
|
178
|
+
- **winner**: "A", "B", or "TIE"
|
|
179
|
+
- **reasoning**: Clear explanation of why the winner was chosen (or why it's a tie)
|
|
180
|
+
- **rubric**: Structured rubric evaluation for each output
|
|
181
|
+
- **content**: Scores for content criteria (correctness, completeness, accuracy)
|
|
182
|
+
- **structure**: Scores for structure criteria (organization, formatting, usability)
|
|
183
|
+
- **content_score**: Average of content criteria (1-5)
|
|
184
|
+
- **structure_score**: Average of structure criteria (1-5)
|
|
185
|
+
- **overall_score**: Combined score scaled to 1-10
|
|
186
|
+
- **output_quality**: Summary quality assessment
|
|
187
|
+
- **score**: 1-10 rating (should match rubric overall_score)
|
|
188
|
+
- **strengths**: List of positive aspects
|
|
189
|
+
- **weaknesses**: List of issues or shortcomings
|
|
190
|
+
- **expectation_results**: (Only if expectations provided)
|
|
191
|
+
- **passed**: Number of expectations that passed
|
|
192
|
+
- **total**: Total number of expectations
|
|
193
|
+
- **pass_rate**: Fraction passed (0.0 to 1.0)
|
|
194
|
+
- **details**: Individual expectation results
|
|
195
|
+
|
|
196
|
+
## Guidelines
|
|
197
|
+
|
|
198
|
+
- **Stay blind**: DO NOT try to infer which skill produced which output. Judge purely on output quality.
|
|
199
|
+
- **Be specific**: Cite specific examples when explaining strengths and weaknesses.
|
|
200
|
+
- **Be decisive**: Choose a winner unless outputs are genuinely equivalent.
|
|
201
|
+
- **Output quality first**: Assertion scores are secondary to overall task completion.
|
|
202
|
+
- **Be objective**: Don't favor outputs based on style preferences; focus on correctness and completeness.
|
|
203
|
+
- **Explain your reasoning**: The reasoning field should make it clear why you chose the winner.
|
|
204
|
+
- **Handle edge cases**: If both outputs fail, pick the one that fails less badly. If both are excellent, pick the one that's marginally better.
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
# Post-hoc Analyzer Agent
|
|
2
|
+
|
|
3
|
+
Instructions for the specialized analyzer subagent. (Source: the vendored `agents/analyzer.md` at `skills/sources/anthropic/skill-creator/`.) This file has two modes: the **Post-hoc Analyzer** (unblinds a blind comparison to explain why the winner won) and **Analyzing Benchmark Results** (surfaces patterns across benchmark runs). Spawn a subagent with the relevant section.
|
|
4
|
+
|
|
5
|
+
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
|
|
6
|
+
|
|
7
|
+
## Role
|
|
8
|
+
|
|
9
|
+
After the blind comparator determines a winner, the Post-hoc Analyzer "unblids" the results by examining the skills and transcripts. The goal is to extract actionable insights: what made the winner better, and how can the loser be improved?
|
|
10
|
+
|
|
11
|
+
## Inputs
|
|
12
|
+
|
|
13
|
+
You receive these parameters in your prompt:
|
|
14
|
+
|
|
15
|
+
- **winner**: "A" or "B" (from blind comparison)
|
|
16
|
+
- **winner_skill_path**: Path to the skill that produced the winning output
|
|
17
|
+
- **winner_transcript_path**: Path to the execution transcript for the winner
|
|
18
|
+
- **loser_skill_path**: Path to the skill that produced the losing output
|
|
19
|
+
- **loser_transcript_path**: Path to the execution transcript for the loser
|
|
20
|
+
- **comparison_result_path**: Path to the blind comparator's output JSON
|
|
21
|
+
- **output_path**: Where to save the analysis results
|
|
22
|
+
|
|
23
|
+
## Process
|
|
24
|
+
|
|
25
|
+
### Step 1: Read Comparison Result
|
|
26
|
+
|
|
27
|
+
1. Read the blind comparator's output at comparison_result_path
|
|
28
|
+
2. Note the winning side (A or B), the reasoning, and any scores
|
|
29
|
+
3. Understand what the comparator valued in the winning output
|
|
30
|
+
|
|
31
|
+
### Step 2: Read Both Skills
|
|
32
|
+
|
|
33
|
+
1. Read the winner skill's SKILL.md and key referenced files
|
|
34
|
+
2. Read the loser skill's SKILL.md and key referenced files
|
|
35
|
+
3. Identify structural differences:
|
|
36
|
+
- Instructions clarity and specificity
|
|
37
|
+
- Script/tool usage patterns
|
|
38
|
+
- Example coverage
|
|
39
|
+
- Edge case handling
|
|
40
|
+
|
|
41
|
+
### Step 3: Read Both Transcripts
|
|
42
|
+
|
|
43
|
+
1. Read the winner's transcript
|
|
44
|
+
2. Read the loser's transcript
|
|
45
|
+
3. Compare execution patterns:
|
|
46
|
+
- How closely did each follow their skill's instructions?
|
|
47
|
+
- What tools were used differently?
|
|
48
|
+
- Where did the loser diverge from optimal behavior?
|
|
49
|
+
- Did either encounter errors or make recovery attempts?
|
|
50
|
+
|
|
51
|
+
### Step 4: Analyze Instruction Following
|
|
52
|
+
|
|
53
|
+
For each transcript, evaluate:
|
|
54
|
+
- Did the agent follow the skill's explicit instructions?
|
|
55
|
+
- Did the agent use the skill's provided tools/scripts?
|
|
56
|
+
- Were there missed opportunities to leverage skill content?
|
|
57
|
+
- Did the agent add unnecessary steps not in the skill?
|
|
58
|
+
|
|
59
|
+
Score instruction following 1-10 and note specific issues.
|
|
60
|
+
|
|
61
|
+
### Step 5: Identify Winner Strengths
|
|
62
|
+
|
|
63
|
+
Determine what made the winner better:
|
|
64
|
+
- Clearer instructions that led to better behavior?
|
|
65
|
+
- Better scripts/tools that produced better output?
|
|
66
|
+
- More comprehensive examples that guided edge cases?
|
|
67
|
+
- Better error handling guidance?
|
|
68
|
+
|
|
69
|
+
Be specific. Quote from skills/transcripts where relevant.
|
|
70
|
+
|
|
71
|
+
### Step 6: Identify Loser Weaknesses
|
|
72
|
+
|
|
73
|
+
Determine what held the loser back:
|
|
74
|
+
- Ambiguous instructions that led to suboptimal choices?
|
|
75
|
+
- Missing tools/scripts that forced workarounds?
|
|
76
|
+
- Gaps in edge case coverage?
|
|
77
|
+
- Poor error handling that caused failures?
|
|
78
|
+
|
|
79
|
+
### Step 7: Generate Improvement Suggestions
|
|
80
|
+
|
|
81
|
+
Based on the analysis, produce actionable suggestions for improving the loser skill:
|
|
82
|
+
- Specific instruction changes to make
|
|
83
|
+
- Tools/scripts to add or modify
|
|
84
|
+
- Examples to include
|
|
85
|
+
- Edge cases to address
|
|
86
|
+
|
|
87
|
+
Prioritize by impact. Focus on changes that would have changed the outcome.
|
|
88
|
+
|
|
89
|
+
### Step 8: Write Analysis Results
|
|
90
|
+
|
|
91
|
+
Save structured analysis to `{output_path}`.
|
|
92
|
+
|
|
93
|
+
## Output Format
|
|
94
|
+
|
|
95
|
+
Write a JSON file with this structure:
|
|
96
|
+
|
|
97
|
+
```json
|
|
98
|
+
{
|
|
99
|
+
"comparison_summary": {
|
|
100
|
+
"winner": "A",
|
|
101
|
+
"winner_skill": "path/to/winner/skill",
|
|
102
|
+
"loser_skill": "path/to/loser/skill",
|
|
103
|
+
"comparator_reasoning": "Brief summary of why comparator chose winner"
|
|
104
|
+
},
|
|
105
|
+
"winner_strengths": [
|
|
106
|
+
"Clear step-by-step instructions for handling multi-page documents",
|
|
107
|
+
"Included validation script that caught formatting errors",
|
|
108
|
+
"Explicit guidance on fallback behavior when OCR fails"
|
|
109
|
+
],
|
|
110
|
+
"loser_weaknesses": [
|
|
111
|
+
"Vague instruction 'process the document appropriately' led to inconsistent behavior",
|
|
112
|
+
"No script for validation, agent had to improvise and made errors",
|
|
113
|
+
"No guidance on OCR failure, agent gave up instead of trying alternatives"
|
|
114
|
+
],
|
|
115
|
+
"instruction_following": {
|
|
116
|
+
"winner": {
|
|
117
|
+
"score": 9,
|
|
118
|
+
"issues": [
|
|
119
|
+
"Minor: skipped optional logging step"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"loser": {
|
|
123
|
+
"score": 6,
|
|
124
|
+
"issues": [
|
|
125
|
+
"Did not use the skill's formatting template",
|
|
126
|
+
"Invented own approach instead of following step 3",
|
|
127
|
+
"Missed the 'always validate output' instruction"
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"improvement_suggestions": [
|
|
132
|
+
{
|
|
133
|
+
"priority": "high",
|
|
134
|
+
"category": "instructions",
|
|
135
|
+
"suggestion": "Replace 'process the document appropriately' with explicit steps: 1) Extract text, 2) Identify sections, 3) Format per template",
|
|
136
|
+
"expected_impact": "Would eliminate ambiguity that caused inconsistent behavior"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"priority": "high",
|
|
140
|
+
"category": "tools",
|
|
141
|
+
"suggestion": "Add validate_output.py script similar to winner skill's validation approach",
|
|
142
|
+
"expected_impact": "Would catch formatting errors before final output"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"priority": "medium",
|
|
146
|
+
"category": "error_handling",
|
|
147
|
+
"suggestion": "Add fallback instructions: 'If OCR fails, try: 1) different resolution, 2) image preprocessing, 3) manual extraction'",
|
|
148
|
+
"expected_impact": "Would prevent early failure on difficult documents"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"transcript_insights": {
|
|
152
|
+
"winner_execution_pattern": "Read skill -> Followed 5-step process -> Used validation script -> Fixed 2 issues -> Produced output",
|
|
153
|
+
"loser_execution_pattern": "Read skill -> Unclear on approach -> Tried 3 different methods -> No validation -> Output had errors"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Guidelines
|
|
159
|
+
|
|
160
|
+
- **Be specific**: Quote from skills and transcripts, don't just say "instructions were unclear"
|
|
161
|
+
- **Be actionable**: Suggestions should be concrete changes, not vague advice
|
|
162
|
+
- **Focus on skill improvements**: The goal is to improve the losing skill, not critique the agent
|
|
163
|
+
- **Prioritize by impact**: Which changes would most likely have changed the outcome?
|
|
164
|
+
- **Consider causation**: Did the skill weakness actually cause the worse output, or is it incidental?
|
|
165
|
+
- **Stay objective**: Analyze what happened, don't editorialize
|
|
166
|
+
- **Think about generalization**: Would this improvement help on other evals too?
|
|
167
|
+
|
|
168
|
+
## Categories for Suggestions
|
|
169
|
+
|
|
170
|
+
Use these categories to organize improvement suggestions:
|
|
171
|
+
|
|
172
|
+
| Category | Description |
|
|
173
|
+
|----------|-------------|
|
|
174
|
+
| `instructions` | Changes to the skill's prose instructions |
|
|
175
|
+
| `tools` | Scripts, templates, or utilities to add/modify |
|
|
176
|
+
| `examples` | Example inputs/outputs to include |
|
|
177
|
+
| `error_handling` | Guidance for handling failures |
|
|
178
|
+
| `structure` | Reorganization of skill content |
|
|
179
|
+
| `references` | External docs or resources to add |
|
|
180
|
+
|
|
181
|
+
## Priority Levels
|
|
182
|
+
|
|
183
|
+
- **high**: Would likely change the outcome of this comparison
|
|
184
|
+
- **medium**: Would improve quality but may not change win/loss
|
|
185
|
+
- **low**: Nice to have, marginal improvement
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
# Analyzing Benchmark Results
|
|
190
|
+
|
|
191
|
+
When analyzing benchmark results, the analyzer's purpose is to **surface patterns and anomalies** across multiple runs, not suggest skill improvements.
|
|
192
|
+
|
|
193
|
+
## Role
|
|
194
|
+
|
|
195
|
+
Review all benchmark run results and generate freeform notes that help the user understand skill performance. Focus on patterns that wouldn't be visible from aggregate metrics alone.
|
|
196
|
+
|
|
197
|
+
## Inputs
|
|
198
|
+
|
|
199
|
+
You receive these parameters in your prompt:
|
|
200
|
+
|
|
201
|
+
- **benchmark_data_path**: Path to the in-progress benchmark.json with all run results
|
|
202
|
+
- **skill_path**: Path to the skill being benchmarked
|
|
203
|
+
- **output_path**: Where to save the notes (as JSON array of strings)
|
|
204
|
+
|
|
205
|
+
## Process
|
|
206
|
+
|
|
207
|
+
### Step 1: Read Benchmark Data
|
|
208
|
+
|
|
209
|
+
1. Read the benchmark.json containing all run results
|
|
210
|
+
2. Note the configurations tested (with_skill, without_skill)
|
|
211
|
+
3. Understand the run_summary aggregates already calculated
|
|
212
|
+
|
|
213
|
+
### Step 2: Analyze Per-Assertion Patterns
|
|
214
|
+
|
|
215
|
+
For each expectation across all runs:
|
|
216
|
+
- Does it **always pass** in both configurations? (may not differentiate skill value)
|
|
217
|
+
- Does it **always fail** in both configurations? (may be broken or beyond capability)
|
|
218
|
+
- Does it **always pass with skill but fail without**? (skill clearly adds value here)
|
|
219
|
+
- Does it **always fail with skill but pass without**? (skill may be hurting)
|
|
220
|
+
- Is it **highly variable**? (flaky expectation or non-deterministic behavior)
|
|
221
|
+
|
|
222
|
+
### Step 3: Analyze Cross-Eval Patterns
|
|
223
|
+
|
|
224
|
+
Look for patterns across evals:
|
|
225
|
+
- Are certain eval types consistently harder/easier?
|
|
226
|
+
- Do some evals show high variance while others are stable?
|
|
227
|
+
- Are there surprising results that contradict expectations?
|
|
228
|
+
|
|
229
|
+
### Step 4: Analyze Metrics Patterns
|
|
230
|
+
|
|
231
|
+
Look at time_seconds, tokens, tool_calls:
|
|
232
|
+
- Does the skill significantly increase execution time?
|
|
233
|
+
- Is there high variance in resource usage?
|
|
234
|
+
- Are there outlier runs that skew the aggregates?
|
|
235
|
+
|
|
236
|
+
### Step 5: Generate Notes
|
|
237
|
+
|
|
238
|
+
Write freeform observations as a list of strings. Each note should:
|
|
239
|
+
- State a specific observation
|
|
240
|
+
- Be grounded in the data (not speculation)
|
|
241
|
+
- Help the user understand something the aggregate metrics don't show
|
|
242
|
+
|
|
243
|
+
Examples:
|
|
244
|
+
- "Assertion 'Output is a PDF file' passes 100% in both configurations - may not differentiate skill value"
|
|
245
|
+
- "Eval 3 shows high variance (50% ± 40%) - run 2 had an unusual failure that may be flaky"
|
|
246
|
+
- "Without-skill runs consistently fail on table extraction expectations (0% pass rate)"
|
|
247
|
+
- "Skill adds 13s average execution time but improves pass rate by 50%"
|
|
248
|
+
- "Token usage is 80% higher with skill, primarily due to script output parsing"
|
|
249
|
+
- "All 3 without-skill runs for eval 1 produced empty output"
|
|
250
|
+
|
|
251
|
+
### Step 6: Write Notes
|
|
252
|
+
|
|
253
|
+
Save notes to `{output_path}` as a JSON array of strings:
|
|
254
|
+
|
|
255
|
+
```json
|
|
256
|
+
[
|
|
257
|
+
"Assertion 'Output is a PDF file' passes 100% in both configurations - may not differentiate skill value",
|
|
258
|
+
"Eval 3 shows high variance (50% ± 40%) - run 2 had an unusual failure",
|
|
259
|
+
"Without-skill runs consistently fail on table extraction expectations",
|
|
260
|
+
"Skill adds 13s average execution time but improves pass rate by 50%"
|
|
261
|
+
]
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
## Guidelines
|
|
265
|
+
|
|
266
|
+
**DO:**
|
|
267
|
+
- Report what you observe in the data
|
|
268
|
+
- Be specific about which evals, expectations, or runs you're referring to
|
|
269
|
+
- Note patterns that aggregate metrics would hide
|
|
270
|
+
- Provide context that helps interpret the numbers
|
|
271
|
+
|
|
272
|
+
**DO NOT:**
|
|
273
|
+
- Suggest improvements to the skill (that's for the improvement step, not benchmarking)
|
|
274
|
+
- Make subjective quality judgments ("the output was good/bad")
|
|
275
|
+
- Speculate about causes without evidence
|
|
276
|
+
- Repeat information already in the run_summary aggregates
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
<!-- GENERATED by tools/hive.py compile. Do not hand-edit. -->
|
|
2
|
+
# skill-creator: Compiled Skill Bundle (preset: authoring) (v1.0.0)
|
|
3
|
+
|
|
4
|
+
All composable mini-skills for `skill-creator` concatenated in index order, frontmatter stripped. Regenerate with `tools/hive.py compile <skill-dir>`. Do not edit by hand.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
<!-- module: 00-core.md -->
|
|
8
|
+
|
|
9
|
+
# Core: Skill Creator — the loop and mindset
|
|
10
|
+
|
|
11
|
+
Cross-cutting foundation for creating new skills, modifying and improving existing skills, and measuring skill performance. Load the focused minis (see INDEX) for each stage: creating, writing, test cases, running evals, improving, blind comparison, description optimization, packaging, environment-specific mechanics, the vendored scripts, JSON schemas, and the subagent instruction files.
|
|
12
|
+
|
|
13
|
+
The original skill's frontmatter description (the primary triggering mechanism): "Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy."
|
|
14
|
+
|
|
15
|
+
## Skill Creator
|
|
16
|
+
|
|
17
|
+
A skill for creating new skills and iteratively improving them.
|
|
18
|
+
|
|
19
|
+
At a high level, the process of creating a skill goes like this:
|
|
20
|
+
|
|
21
|
+
- Decide what you want the skill to do and roughly how it should do it
|
|
22
|
+
- Write a draft of the skill
|
|
23
|
+
- Create a few test prompts and run claude-with-access-to-the-skill on them
|
|
24
|
+
- Help the user evaluate the results both qualitatively and quantitatively
|
|
25
|
+
- While the runs happen in the background, draft some quantitative evals if there aren't any (if there are some, you can either use as is or modify if you feel something needs to change about them). Then explain them to the user (or if they already existed, explain the ones that already exist)
|
|
26
|
+
- Use the `eval-viewer/generate_review.py` script to show the user the results for them to look at, and also let them look at the quantitative metrics
|
|
27
|
+
- Rewrite the skill based on feedback from the user's evaluation of the results (and also if there are any glaring flaws that become apparent from the quantitative benchmarks)
|
|
28
|
+
- Repeat until you're satisfied
|
|
29
|
+
- Expand the test set and try again at larger scale
|
|
30
|
+
|
|
31
|
+
Your job when using this skill is to figure out where the user is in this process and then jump in and help them progress through these stages. So for instance, maybe they're like "I want to make a skill for X". You can help narrow down what they mean, write a draft, write the test cases, figure out how they want to evaluate, run all the prompts, and repeat.
|
|
32
|
+
|
|
33
|
+
On the other hand, maybe they already have a draft of the skill. In this case you can go straight to the eval/iterate part of the loop.
|
|
34
|
+
|
|
35
|
+
Of course, you should always be flexible and if the user is like "I don't need to run a bunch of evaluations, just vibe with me", you can do that instead.
|
|
36
|
+
|
|
37
|
+
Then after the skill is done (but again, the order is flexible), you can also run the skill description improver, which we have a whole separate script for, to optimize the triggering of the skill.
|
|
38
|
+
|
|
39
|
+
Cool? Cool.
|
|
40
|
+
|
|
41
|
+
## Communicating with the user
|
|
42
|
+
|
|
43
|
+
The skill creator is liable to be used by people across a wide range of familiarity with coding jargon. If you haven't heard (and how could you, it's only very recently that it started), there's a trend now where the power of Claude is inspiring plumbers to open up their terminals, parents and grandparents to google "how to install npm". On the other hand, the bulk of users are probably fairly computer-literate.
|
|
44
|
+
|
|
45
|
+
So please pay attention to context cues to understand how to phrase your communication! In the default case, just to give you some idea:
|
|
46
|
+
|
|
47
|
+
- "evaluation" and "benchmark" are borderline, but OK
|
|
48
|
+
- for "JSON" and "assertion" you want to see serious cues from the user that they know what those things are before using them without explaining them
|
|
49
|
+
|
|
50
|
+
It's OK to briefly explain terms if you're in doubt, and feel free to clarify terms with a short definition if you're unsure if the user will get it.
|
|
51
|
+
|
|
52
|
+
## The core loop (for emphasis)
|
|
53
|
+
|
|
54
|
+
Repeating the core loop here for emphasis:
|
|
55
|
+
|
|
56
|
+
- Figure out what the skill is about
|
|
57
|
+
- Draft or edit the skill
|
|
58
|
+
- Run claude-with-access-to-the-skill on test prompts
|
|
59
|
+
- With the user, evaluate the outputs:
|
|
60
|
+
- Create benchmark.json and run `eval-viewer/generate_review.py` to help the user review them
|
|
61
|
+
- Run quantitative evals
|
|
62
|
+
- Repeat until you and the user are satisfied
|
|
63
|
+
- Package the final skill and return it to the user.
|
|
64
|
+
|
|
65
|
+
Please add steps to your TodoList, if you have such a thing, to make sure you don't forget. If you're in Cowork, please specifically put "Create evals JSON and run `eval-viewer/generate_review.py` so human can review test cases" in your TodoList to make sure it happens.
|
|
66
|
+
|
|
67
|
+
Good luck!
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
<!-- module: 01-creating-a-skill.md -->
|
|
71
|
+
|
|
72
|
+
# Creating a Skill: intent, interview, and writing SKILL.md
|
|
73
|
+
|
|
74
|
+
The opening moves when creating a skill from scratch: understand intent, interview and research, then fill in the SKILL.md components.
|
|
75
|
+
|
|
76
|
+
## Capture Intent
|
|
77
|
+
|
|
78
|
+
Start by understanding the user's intent. The current conversation might already contain a workflow the user wants to capture (e.g., they say "turn this into a skill"). If so, extract answers from the conversation history first — the tools used, the sequence of steps, corrections the user made, input/output formats observed. The user may need to fill the gaps, and should confirm before proceeding to the next step.
|
|
79
|
+
|
|
80
|
+
1. What should this skill enable Claude to do?
|
|
81
|
+
2. When should this skill trigger? (what user phrases/contexts)
|
|
82
|
+
3. What's the expected output format?
|
|
83
|
+
4. Should we set up test cases to verify the skill works? Skills with objectively verifiable outputs (file transforms, data extraction, code generation, fixed workflow steps) benefit from test cases. Skills with subjective outputs (writing style, art) often don't need them. Suggest the appropriate default based on the skill type, but let the user decide.
|
|
84
|
+
|
|
85
|
+
## Interview and Research
|
|
86
|
+
|
|
87
|
+
Proactively ask questions about edge cases, input/output formats, example files, success criteria, and dependencies. Wait to write test prompts until you've got this part ironed out.
|
|
88
|
+
|
|
89
|
+
Check available MCPs - if useful for research (searching docs, finding similar skills, looking up best practices), research in parallel via subagents if available, otherwise inline. Come prepared with context to reduce burden on the user.
|
|
90
|
+
|
|
91
|
+
## Write the SKILL.md
|
|
92
|
+
|
|
93
|
+
Based on the user interview, fill in these components:
|
|
94
|
+
|
|
95
|
+
- **name**: Skill identifier
|
|
96
|
+
- **description**: When to trigger, what it does. This is the primary triggering mechanism - include both what the skill does AND specific contexts for when to use it. All "when to use" info goes here, not in the body. Note: currently Claude has a tendency to "undertrigger" skills -- to not use them when they'd be useful. To combat this, please make the skill descriptions a little bit "pushy". So for instance, instead of "How to build a simple fast dashboard to display internal Anthropic data.", you might write "How to build a simple fast dashboard to display internal Anthropic data. Make sure to use this skill whenever the user mentions dashboards, data visualization, internal metrics, or wants to display any kind of company data, even if they don't explicitly ask for a 'dashboard.'"
|
|
97
|
+
- **compatibility**: Required tools, dependencies (optional, rarely needed)
|
|
98
|
+
- **the rest of the skill :)**
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
<!-- module: 02-skill-writing-guide.md -->
|
|
102
|
+
|
|
103
|
+
# Skill Writing Guide: anatomy, progressive disclosure, patterns, style
|
|
104
|
+
|
|
105
|
+
How to structure and write a skill's content: file layout, the three-level loading system, safety, prose patterns, and writing style.
|
|
106
|
+
|
|
107
|
+
## Anatomy of a Skill
|
|
108
|
+
|
|
109
|
+
```
|
|
110
|
+
skill-name/
|
|
111
|
+
├── SKILL.md (required)
|
|
112
|
+
│ ├── YAML frontmatter (name, description required)
|
|
113
|
+
│ └── Markdown instructions
|
|
114
|
+
└── Bundled Resources (optional)
|
|
115
|
+
├── scripts/ - Executable code for deterministic/repetitive tasks
|
|
116
|
+
├── references/ - Docs loaded into context as needed
|
|
117
|
+
└── assets/ - Files used in output (templates, icons, fonts)
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Progressive Disclosure
|
|
121
|
+
|
|
122
|
+
Skills use a three-level loading system:
|
|
123
|
+
1. **Metadata** (name + description) - Always in context (~100 words)
|
|
124
|
+
2. **SKILL.md body** - In context whenever skill triggers (<500 lines ideal)
|
|
125
|
+
3. **Bundled resources** - As needed (unlimited, scripts can execute without loading)
|
|
126
|
+
|
|
127
|
+
These word counts are approximate and you can feel free to go longer if needed.
|
|
128
|
+
|
|
129
|
+
**Key patterns:**
|
|
130
|
+
- Keep SKILL.md under 500 lines; if you're approaching this limit, add an additional layer of hierarchy along with clear pointers about where the model using the skill should go next to follow up.
|
|
131
|
+
- Reference files clearly from SKILL.md with guidance on when to read them
|
|
132
|
+
- For large reference files (>300 lines), include a table of contents
|
|
133
|
+
|
|
134
|
+
**Domain organization**: When a skill supports multiple domains/frameworks, organize by variant:
|
|
135
|
+
```
|
|
136
|
+
cloud-deploy/
|
|
137
|
+
├── SKILL.md (workflow + selection)
|
|
138
|
+
└── references/
|
|
139
|
+
├── aws.md
|
|
140
|
+
├── gcp.md
|
|
141
|
+
└── azure.md
|
|
142
|
+
```
|
|
143
|
+
Claude reads only the relevant reference file.
|
|
144
|
+
|
|
145
|
+
## Principle of Lack of Surprise
|
|
146
|
+
|
|
147
|
+
This goes without saying, but skills must not contain malware, exploit code, or any content that could compromise system security. A skill's contents should not surprise the user in their intent if described. Don't go along with requests to create misleading skills or skills designed to facilitate unauthorized access, data exfiltration, or other malicious activities. Things like a "roleplay as an XYZ" are OK though.
|
|
148
|
+
|
|
149
|
+
## Writing Patterns
|
|
150
|
+
|
|
151
|
+
Prefer using the imperative form in instructions.
|
|
152
|
+
|
|
153
|
+
**Defining output formats** - You can do it like this:
|
|
154
|
+
```markdown
|
|
155
|
+
## Report structure
|
|
156
|
+
ALWAYS use this exact template:
|
|
157
|
+
# [Title]
|
|
158
|
+
## Executive summary
|
|
159
|
+
## Key findings
|
|
160
|
+
## Recommendations
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
**Examples pattern** - It's useful to include examples. You can format them like this (but if "Input" and "Output" are in the examples you might want to deviate a little):
|
|
164
|
+
```markdown
|
|
165
|
+
## Commit message format
|
|
166
|
+
**Example 1:**
|
|
167
|
+
Input: Added user authentication with JWT tokens
|
|
168
|
+
Output: feat(auth): implement JWT-based authentication
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## Writing Style
|
|
172
|
+
|
|
173
|
+
Try to explain to the model why things are important in lieu of heavy-handed musty MUSTs. Use theory of mind and try to make the skill general and not super-narrow to specific examples. Start by writing a draft and then look at it with fresh eyes and improve it.
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
<!-- module: 03-test-cases.md -->
|
|
177
|
+
|
|
178
|
+
# Test Cases
|
|
179
|
+
|
|
180
|
+
After writing the skill draft, come up with 2-3 realistic test prompts — the kind of thing a real user would actually say. Share them with the user: [you don't have to use this exact language] "Here are a few test cases I'd like to try. Do these look right, or do you want to add more?" Then run them.
|
|
181
|
+
|
|
182
|
+
Save test cases to `evals/evals.json`. Don't write assertions yet — just the prompts. You'll draft assertions in the next step while the runs are in progress.
|
|
183
|
+
|
|
184
|
+
```json
|
|
185
|
+
{
|
|
186
|
+
"skill_name": "example-skill",
|
|
187
|
+
"evals": [
|
|
188
|
+
{
|
|
189
|
+
"id": 1,
|
|
190
|
+
"prompt": "User's task prompt",
|
|
191
|
+
"expected_output": "Description of expected result",
|
|
192
|
+
"files": []
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
See `references/schemas.md` for the full schema (including the `assertions` field, which you'll add later). The JSON schemas are carried in the `json-schemas` mini of this skill.
|