@lucasi/vibes 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/AGENTS.md +162 -0
- package/MIGRATION.md +368 -0
- package/README.md +44 -0
- package/bin/setup.js +127 -0
- package/commands/build-fix.md +56 -0
- package/commands/checkpoint.md +67 -0
- package/commands/code-review.md +68 -0
- package/commands/e2e.md +105 -0
- package/commands/eval.md +88 -0
- package/commands/evolve.md +36 -0
- package/commands/go-build.md +87 -0
- package/commands/go-review.md +71 -0
- package/commands/go-test.md +131 -0
- package/commands/harness-audit.md +73 -0
- package/commands/instinct-export.md +93 -0
- package/commands/instinct-import.md +88 -0
- package/commands/instinct-status.md +29 -0
- package/commands/learn.md +61 -0
- package/commands/loop-start.md +32 -0
- package/commands/loop-status.md +24 -0
- package/commands/model-route.md +26 -0
- package/commands/orchestrate.md +88 -0
- package/commands/plan.md +25 -0
- package/commands/projects.md +23 -0
- package/commands/promote.md +23 -0
- package/commands/quality-gate.md +29 -0
- package/commands/refactor-clean.md +102 -0
- package/commands/rust-build.md +78 -0
- package/commands/rust-review.md +65 -0
- package/commands/rust-test.md +104 -0
- package/commands/security.md +89 -0
- package/commands/setup-pm.md +67 -0
- package/commands/skill-create.md +117 -0
- package/commands/tdd.md +67 -0
- package/commands/test-coverage.md +80 -0
- package/commands/update-codemaps.md +81 -0
- package/commands/update-docs.md +67 -0
- package/commands/verify.md +67 -0
- package/instructions/INSTRUCTIONS.md +337 -0
- package/opencode.json +466 -0
- package/package.json +27 -0
- package/prompts/agents/architect.txt +175 -0
- package/prompts/agents/build-error-resolver.txt +233 -0
- package/prompts/agents/code-reviewer.txt +103 -0
- package/prompts/agents/cpp-build-resolver.txt +81 -0
- package/prompts/agents/cpp-reviewer.txt +65 -0
- package/prompts/agents/database-reviewer.txt +247 -0
- package/prompts/agents/doc-updater.txt +192 -0
- package/prompts/agents/docs-lookup.txt +57 -0
- package/prompts/agents/e2e-runner.txt +305 -0
- package/prompts/agents/go-build-resolver.txt +325 -0
- package/prompts/agents/go-reviewer.txt +241 -0
- package/prompts/agents/harness-optimizer.txt +27 -0
- package/prompts/agents/java-build-resolver.txt +123 -0
- package/prompts/agents/java-reviewer.txt +97 -0
- package/prompts/agents/kotlin-build-resolver.txt +120 -0
- package/prompts/agents/kotlin-reviewer.txt +127 -0
- package/prompts/agents/loop-operator.txt +39 -0
- package/prompts/agents/planner.txt +113 -0
- package/prompts/agents/python-reviewer.txt +85 -0
- package/prompts/agents/refactor-cleaner.txt +241 -0
- package/prompts/agents/rust-build-resolver.txt +93 -0
- package/prompts/agents/rust-reviewer.txt +61 -0
- package/prompts/agents/security-reviewer.txt +207 -0
- package/prompts/agents/tdd-guide.txt +216 -0
- package/skills/agent-eval/SKILL.md +145 -0
- package/skills/agent-harness-construction/SKILL.md +73 -0
- package/skills/agent-introspection-debugging/SKILL.md +153 -0
- package/skills/agent-payment-x402/SKILL.md +178 -0
- package/skills/agent-sort/SKILL.md +215 -0
- package/skills/agentic-engineering/SKILL.md +63 -0
- package/skills/ai-first-engineering/SKILL.md +51 -0
- package/skills/ai-regression-testing/SKILL.md +385 -0
- package/skills/android-clean-architecture/SKILL.md +339 -0
- package/skills/api-connector-builder/SKILL.md +120 -0
- package/skills/api-design/SKILL.md +523 -0
- package/skills/architecture-decision-records/SKILL.md +179 -0
- package/skills/article-writing/SKILL.md +79 -0
- package/skills/automation-audit-ops/SKILL.md +142 -0
- package/skills/autonomous-agent-harness/SKILL.md +267 -0
- package/skills/autonomous-loops/SKILL.md +610 -0
- package/skills/backend-patterns/SKILL.md +598 -0
- package/skills/benchmark/SKILL.md +93 -0
- package/skills/blueprint/SKILL.md +105 -0
- package/skills/brand-voice/SKILL.md +97 -0
- package/skills/brand-voice/references/voice-profile-schema.md +55 -0
- package/skills/browser-qa/SKILL.md +87 -0
- package/skills/bun-runtime/SKILL.md +84 -0
- package/skills/canary-watch/SKILL.md +99 -0
- package/skills/carrier-relationship-management/SKILL.md +212 -0
- package/skills/ck/SKILL.md +147 -0
- package/skills/ck/commands/forget.mjs +44 -0
- package/skills/ck/commands/info.mjs +24 -0
- package/skills/ck/commands/init.mjs +143 -0
- package/skills/ck/commands/list.mjs +40 -0
- package/skills/ck/commands/migrate.mjs +202 -0
- package/skills/ck/commands/resume.mjs +36 -0
- package/skills/ck/commands/save.mjs +210 -0
- package/skills/ck/commands/shared.mjs +387 -0
- package/skills/ck/hooks/session-start.mjs +224 -0
- package/skills/claude-api/SKILL.md +337 -0
- package/skills/claude-devfleet/SKILL.md +103 -0
- package/skills/click-path-audit/SKILL.md +244 -0
- package/skills/clickhouse-io/SKILL.md +439 -0
- package/skills/code-tour/SKILL.md +236 -0
- package/skills/codebase-onboarding/SKILL.md +233 -0
- package/skills/coding-standards/SKILL.md +549 -0
- package/skills/compose-multiplatform-patterns/SKILL.md +299 -0
- package/skills/configure-ecc/SKILL.md +367 -0
- package/skills/connections-optimizer/SKILL.md +189 -0
- package/skills/content-engine/SKILL.md +131 -0
- package/skills/content-hash-cache-pattern/SKILL.md +161 -0
- package/skills/context-budget/SKILL.md +135 -0
- package/skills/continuous-agent-loop/SKILL.md +45 -0
- package/skills/continuous-learning/SKILL.md +123 -0
- package/skills/continuous-learning/config.json +18 -0
- package/skills/continuous-learning/evaluate-session.sh +69 -0
- package/skills/continuous-learning-v2/SKILL.md +365 -0
- package/skills/continuous-learning-v2/agents/observer-loop.sh +282 -0
- package/skills/continuous-learning-v2/agents/observer.md +198 -0
- package/skills/continuous-learning-v2/agents/session-guardian.sh +150 -0
- package/skills/continuous-learning-v2/agents/start-observer.sh +244 -0
- package/skills/continuous-learning-v2/config.json +8 -0
- package/skills/continuous-learning-v2/hooks/observe.sh +428 -0
- package/skills/continuous-learning-v2/scripts/detect-project.sh +228 -0
- package/skills/continuous-learning-v2/scripts/instinct-cli.py +1426 -0
- package/skills/continuous-learning-v2/scripts/test_parse_instinct.py +984 -0
- package/skills/cost-aware-llm-pipeline/SKILL.md +183 -0
- package/skills/council/SKILL.md +203 -0
- package/skills/cpp-coding-standards/SKILL.md +723 -0
- package/skills/cpp-testing/SKILL.md +324 -0
- package/skills/crosspost/SKILL.md +111 -0
- package/skills/csharp-testing/SKILL.md +321 -0
- package/skills/customer-billing-ops/SKILL.md +140 -0
- package/skills/customs-trade-compliance/SKILL.md +263 -0
- package/skills/dart-flutter-patterns/SKILL.md +563 -0
- package/skills/dashboard-builder/SKILL.md +108 -0
- package/skills/data-scraper-agent/SKILL.md +764 -0
- package/skills/database-migrations/SKILL.md +429 -0
- package/skills/deep-research/SKILL.md +155 -0
- package/skills/defi-amm-security/SKILL.md +160 -0
- package/skills/deployment-patterns/SKILL.md +427 -0
- package/skills/design-system/SKILL.md +82 -0
- package/skills/django-patterns/SKILL.md +734 -0
- package/skills/django-security/SKILL.md +593 -0
- package/skills/django-tdd/SKILL.md +729 -0
- package/skills/django-verification/SKILL.md +469 -0
- package/skills/dmux-workflows/SKILL.md +191 -0
- package/skills/docker-patterns/SKILL.md +364 -0
- package/skills/documentation-lookup/SKILL.md +90 -0
- package/skills/dotnet-patterns/SKILL.md +321 -0
- package/skills/e2e-testing/SKILL.md +326 -0
- package/skills/ecc-tools-cost-audit/SKILL.md +160 -0
- package/skills/email-ops/SKILL.md +121 -0
- package/skills/energy-procurement/SKILL.md +228 -0
- package/skills/enterprise-agent-ops/SKILL.md +50 -0
- package/skills/eval-harness/SKILL.md +270 -0
- package/skills/evm-token-decimals/SKILL.md +130 -0
- package/skills/exa-search/SKILL.md +103 -0
- package/skills/fal-ai-media/SKILL.md +284 -0
- package/skills/finance-billing-ops/SKILL.md +127 -0
- package/skills/flutter-dart-code-review/SKILL.md +435 -0
- package/skills/foundation-models-on-device/SKILL.md +243 -0
- package/skills/frontend-design/SKILL.md +145 -0
- package/skills/frontend-patterns/SKILL.md +642 -0
- package/skills/frontend-slides/SKILL.md +184 -0
- package/skills/frontend-slides/STYLE_PRESETS.md +330 -0
- package/skills/gan-style-harness/SKILL.md +278 -0
- package/skills/git-workflow/SKILL.md +715 -0
- package/skills/github-ops/SKILL.md +144 -0
- package/skills/golang-patterns/SKILL.md +674 -0
- package/skills/golang-testing/SKILL.md +720 -0
- package/skills/google-workspace-ops/SKILL.md +95 -0
- package/skills/healthcare-cdss-patterns/SKILL.md +245 -0
- package/skills/healthcare-emr-patterns/SKILL.md +159 -0
- package/skills/healthcare-eval-harness/SKILL.md +207 -0
- package/skills/healthcare-phi-compliance/SKILL.md +145 -0
- package/skills/hexagonal-architecture/SKILL.md +276 -0
- package/skills/hipaa-compliance/SKILL.md +78 -0
- package/skills/hookify-rules/SKILL.md +128 -0
- package/skills/inventory-demand-planning/SKILL.md +247 -0
- package/skills/investor-materials/SKILL.md +96 -0
- package/skills/investor-outreach/SKILL.md +91 -0
- package/skills/iterative-retrieval/SKILL.md +211 -0
- package/skills/java-coding-standards/SKILL.md +147 -0
- package/skills/jira-integration/SKILL.md +293 -0
- package/skills/jpa-patterns/SKILL.md +151 -0
- package/skills/knowledge-ops/SKILL.md +154 -0
- package/skills/kotlin-coroutines-flows/SKILL.md +284 -0
- package/skills/kotlin-exposed-patterns/SKILL.md +719 -0
- package/skills/kotlin-ktor-patterns/SKILL.md +689 -0
- package/skills/kotlin-patterns/SKILL.md +711 -0
- package/skills/kotlin-testing/SKILL.md +824 -0
- package/skills/laravel-patterns/SKILL.md +415 -0
- package/skills/laravel-plugin-discovery/SKILL.md +229 -0
- package/skills/laravel-security/SKILL.md +285 -0
- package/skills/laravel-tdd/SKILL.md +283 -0
- package/skills/laravel-verification/SKILL.md +179 -0
- package/skills/lead-intelligence/SKILL.md +321 -0
- package/skills/lead-intelligence/agents/enrichment-agent.md +85 -0
- package/skills/lead-intelligence/agents/mutual-mapper.md +75 -0
- package/skills/lead-intelligence/agents/outreach-drafter.md +98 -0
- package/skills/lead-intelligence/agents/signal-scorer.md +60 -0
- package/skills/liquid-glass-design/SKILL.md +279 -0
- package/skills/llm-trading-agent-security/SKILL.md +146 -0
- package/skills/logistics-exception-management/SKILL.md +222 -0
- package/skills/manim-video/SKILL.md +89 -0
- package/skills/manim-video/assets/network_graph_scene.py +52 -0
- package/skills/market-research/SKILL.md +75 -0
- package/skills/mcp-server-patterns/SKILL.md +69 -0
- package/skills/messages-ops/SKILL.md +104 -0
- package/skills/nanoclaw-repl/SKILL.md +33 -0
- package/skills/nestjs-patterns/SKILL.md +230 -0
- package/skills/nextjs-turbopack/SKILL.md +44 -0
- package/skills/nodejs-keccak256/SKILL.md +102 -0
- package/skills/nutrient-document-processing/SKILL.md +167 -0
- package/skills/nuxt4-patterns/SKILL.md +100 -0
- package/skills/openclaw-persona-forge/SKILL.md +296 -0
- package/skills/openclaw-persona-forge/gacha.py +224 -0
- package/skills/openclaw-persona-forge/gacha.sh +5 -0
- package/skills/openclaw-persona-forge/references/avatar-style.md +124 -0
- package/skills/openclaw-persona-forge/references/boundary-rules.md +53 -0
- package/skills/openclaw-persona-forge/references/error-handling.md +53 -0
- package/skills/openclaw-persona-forge/references/identity-tension.md +48 -0
- package/skills/openclaw-persona-forge/references/naming-system.md +39 -0
- package/skills/openclaw-persona-forge/references/output-template.md +166 -0
- package/skills/opensource-pipeline/SKILL.md +255 -0
- package/skills/pencil-design/SKILL.md +175 -0
- package/skills/perl-patterns/SKILL.md +504 -0
- package/skills/perl-security/SKILL.md +503 -0
- package/skills/perl-testing/SKILL.md +475 -0
- package/skills/plankton-code-quality/SKILL.md +236 -0
- package/skills/postgres-patterns/SKILL.md +147 -0
- package/skills/product-capability/SKILL.md +141 -0
- package/skills/product-lens/SKILL.md +92 -0
- package/skills/production-scheduling/SKILL.md +238 -0
- package/skills/project-flow-ops/SKILL.md +111 -0
- package/skills/prompt-optimizer/SKILL.md +397 -0
- package/skills/python-patterns/SKILL.md +750 -0
- package/skills/python-testing/SKILL.md +816 -0
- package/skills/pytorch-patterns/SKILL.md +396 -0
- package/skills/quality-nonconformance/SKILL.md +260 -0
- package/skills/ralphinho-rfc-pipeline/SKILL.md +67 -0
- package/skills/regex-vs-llm-structured-text/SKILL.md +220 -0
- package/skills/remotion-video-creation/SKILL.md +43 -0
- package/skills/remotion-video-creation/rules/3d.md +86 -0
- package/skills/remotion-video-creation/rules/animations.md +29 -0
- package/skills/remotion-video-creation/rules/assets/charts-bar-chart.tsx +173 -0
- package/skills/remotion-video-creation/rules/assets/text-animations-typewriter.tsx +100 -0
- package/skills/remotion-video-creation/rules/assets/text-animations-word-highlight.tsx +108 -0
- package/skills/remotion-video-creation/rules/assets.md +78 -0
- package/skills/remotion-video-creation/rules/audio.md +172 -0
- package/skills/remotion-video-creation/rules/calculate-metadata.md +104 -0
- package/skills/remotion-video-creation/rules/can-decode.md +75 -0
- package/skills/remotion-video-creation/rules/charts.md +58 -0
- package/skills/remotion-video-creation/rules/compositions.md +146 -0
- package/skills/remotion-video-creation/rules/display-captions.md +126 -0
- package/skills/remotion-video-creation/rules/extract-frames.md +229 -0
- package/skills/remotion-video-creation/rules/fonts.md +152 -0
- package/skills/remotion-video-creation/rules/get-audio-duration.md +58 -0
- package/skills/remotion-video-creation/rules/get-video-dimensions.md +68 -0
- package/skills/remotion-video-creation/rules/get-video-duration.md +58 -0
- package/skills/remotion-video-creation/rules/gifs.md +138 -0
- package/skills/remotion-video-creation/rules/images.md +130 -0
- package/skills/remotion-video-creation/rules/import-srt-captions.md +67 -0
- package/skills/remotion-video-creation/rules/lottie.md +67 -0
- package/skills/remotion-video-creation/rules/measuring-dom-nodes.md +34 -0
- package/skills/remotion-video-creation/rules/measuring-text.md +143 -0
- package/skills/remotion-video-creation/rules/sequencing.md +106 -0
- package/skills/remotion-video-creation/rules/tailwind.md +11 -0
- package/skills/remotion-video-creation/rules/text-animations.md +20 -0
- package/skills/remotion-video-creation/rules/timing.md +179 -0
- package/skills/remotion-video-creation/rules/transcribe-captions.md +19 -0
- package/skills/remotion-video-creation/rules/transitions.md +122 -0
- package/skills/remotion-video-creation/rules/trimming.md +52 -0
- package/skills/remotion-video-creation/rules/videos.md +171 -0
- package/skills/repo-scan/SKILL.md +78 -0
- package/skills/research-ops/SKILL.md +112 -0
- package/skills/returns-reverse-logistics/SKILL.md +240 -0
- package/skills/rules-distill/SKILL.md +264 -0
- package/skills/rules-distill/scripts/scan-rules.sh +58 -0
- package/skills/rules-distill/scripts/scan-skills.sh +129 -0
- package/skills/rust-patterns/SKILL.md +499 -0
- package/skills/rust-testing/SKILL.md +500 -0
- package/skills/safety-guard/SKILL.md +75 -0
- package/skills/santa-method/SKILL.md +306 -0
- package/skills/search-first/SKILL.md +161 -0
- package/skills/security-bounty-hunter/SKILL.md +99 -0
- package/skills/security-review/SKILL.md +495 -0
- package/skills/security-review/cloud-infrastructure-security.md +361 -0
- package/skills/security-scan/SKILL.md +165 -0
- package/skills/seo/SKILL.md +154 -0
- package/skills/skill-comply/SKILL.md +58 -0
- package/skills/skill-comply/fixtures/compliant_trace.jsonl +5 -0
- package/skills/skill-comply/fixtures/noncompliant_trace.jsonl +3 -0
- package/skills/skill-comply/fixtures/tdd_spec.yaml +44 -0
- package/skills/skill-comply/prompts/classifier.md +24 -0
- package/skills/skill-comply/prompts/scenario_generator.md +62 -0
- package/skills/skill-comply/prompts/spec_generator.md +42 -0
- package/skills/skill-comply/pyproject.toml +15 -0
- package/skills/skill-comply/scripts/__init__.py +0 -0
- package/skills/skill-comply/scripts/classifier.py +85 -0
- package/skills/skill-comply/scripts/grader.py +122 -0
- package/skills/skill-comply/scripts/parser.py +107 -0
- package/skills/skill-comply/scripts/report.py +170 -0
- package/skills/skill-comply/scripts/run.py +127 -0
- package/skills/skill-comply/scripts/runner.py +161 -0
- package/skills/skill-comply/scripts/scenario_generator.py +70 -0
- package/skills/skill-comply/scripts/spec_generator.py +72 -0
- package/skills/skill-comply/scripts/utils.py +13 -0
- package/skills/skill-comply/tests/test_grader.py +137 -0
- package/skills/skill-comply/tests/test_parser.py +90 -0
- package/skills/skill-stocktake/SKILL.md +193 -0
- package/skills/skill-stocktake/scripts/quick-diff.sh +87 -0
- package/skills/skill-stocktake/scripts/save-results.sh +56 -0
- package/skills/skill-stocktake/scripts/scan.sh +170 -0
- package/skills/social-graph-ranker/SKILL.md +154 -0
- package/skills/springboot-patterns/SKILL.md +314 -0
- package/skills/springboot-security/SKILL.md +272 -0
- package/skills/springboot-tdd/SKILL.md +158 -0
- package/skills/springboot-verification/SKILL.md +231 -0
- package/skills/strategic-compact/SKILL.md +131 -0
- package/skills/strategic-compact/suggest-compact.sh +54 -0
- package/skills/swift-actor-persistence/SKILL.md +143 -0
- package/skills/swift-concurrency-6-2/SKILL.md +216 -0
- package/skills/swift-protocol-di-testing/SKILL.md +190 -0
- package/skills/swiftui-patterns/SKILL.md +259 -0
- package/skills/tdd-workflow/SKILL.md +463 -0
- package/skills/team-builder/SKILL.md +168 -0
- package/skills/terminal-ops/SKILL.md +109 -0
- package/skills/token-budget-advisor/SKILL.md +133 -0
- package/skills/ui-demo/SKILL.md +465 -0
- package/skills/unified-notifications-ops/SKILL.md +187 -0
- package/skills/verification-loop/SKILL.md +126 -0
- package/skills/video-editing/SKILL.md +310 -0
- package/skills/videodb/SKILL.md +374 -0
- package/skills/videodb/reference/api-reference.md +550 -0
- package/skills/videodb/reference/capture-reference.md +407 -0
- package/skills/videodb/reference/capture.md +101 -0
- package/skills/videodb/reference/editor.md +443 -0
- package/skills/videodb/reference/generative.md +331 -0
- package/skills/videodb/reference/rtstream-reference.md +564 -0
- package/skills/videodb/reference/rtstream.md +65 -0
- package/skills/videodb/reference/search.md +230 -0
- package/skills/videodb/reference/streaming.md +406 -0
- package/skills/videodb/reference/use-cases.md +118 -0
- package/skills/videodb/scripts/ws_listener.py +282 -0
- package/skills/visa-doc-translate/README.md +86 -0
- package/skills/visa-doc-translate/SKILL.md +117 -0
- package/skills/workspace-surface-audit/SKILL.md +125 -0
- package/skills/x-api/SKILL.md +230 -0
- package/tools/changed-files.ts +83 -0
- package/tools/check-coverage.ts +172 -0
- package/tools/format-code.ts +70 -0
- package/tools/git-summary.ts +56 -0
- package/tools/index.ts +14 -0
- package/tools/lint-check.ts +87 -0
- package/tools/run-tests.ts +141 -0
- package/tools/security-audit.ts +279 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agent-introspection-debugging
|
|
3
|
+
description: Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports.
|
|
4
|
+
origin: ECC
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Agent Introspection Debugging
|
|
8
|
+
|
|
9
|
+
Use this skill when an agent run is failing repeatedly, consuming tokens without progress, looping on the same tools, or drifting away from the intended task.
|
|
10
|
+
|
|
11
|
+
This is a workflow skill, not a hidden runtime. It teaches the agent to debug itself systematically before escalating to a human.
|
|
12
|
+
|
|
13
|
+
## When to Activate
|
|
14
|
+
|
|
15
|
+
- Maximum tool call / loop-limit failures
|
|
16
|
+
- Repeated retries with no forward progress
|
|
17
|
+
- Context growth or prompt drift that starts degrading output quality
|
|
18
|
+
- File-system or environment state mismatch between expectation and reality
|
|
19
|
+
- Tool failures that are likely recoverable with diagnosis and a smaller corrective action
|
|
20
|
+
|
|
21
|
+
## Scope Boundaries
|
|
22
|
+
|
|
23
|
+
Activate this skill for:
|
|
24
|
+
- capturing failure state before retrying blindly
|
|
25
|
+
- diagnosing common agent-specific failure patterns
|
|
26
|
+
- applying contained recovery actions
|
|
27
|
+
- producing a structured human-readable debug report
|
|
28
|
+
|
|
29
|
+
Do not use this skill as the primary source for:
|
|
30
|
+
- feature verification after code changes; use `verification-loop`
|
|
31
|
+
- framework-specific debugging when a narrower ECC skill already exists
|
|
32
|
+
- runtime promises the current harness cannot enforce automatically
|
|
33
|
+
|
|
34
|
+
## Four-Phase Loop
|
|
35
|
+
|
|
36
|
+
### Phase 1: Failure Capture
|
|
37
|
+
|
|
38
|
+
Before trying to recover, record the failure precisely.
|
|
39
|
+
|
|
40
|
+
Capture:
|
|
41
|
+
- error type, message, and stack trace when available
|
|
42
|
+
- last meaningful tool call sequence
|
|
43
|
+
- what the agent was trying to do
|
|
44
|
+
- current context pressure: repeated prompts, oversized pasted logs, duplicated plans, or runaway notes
|
|
45
|
+
- current environment assumptions: cwd, branch, relevant service state, expected files
|
|
46
|
+
|
|
47
|
+
Minimum capture template:
|
|
48
|
+
|
|
49
|
+
```markdown
|
|
50
|
+
## Failure Capture
|
|
51
|
+
- Session / task:
|
|
52
|
+
- Goal in progress:
|
|
53
|
+
- Error:
|
|
54
|
+
- Last successful step:
|
|
55
|
+
- Last failed tool / command:
|
|
56
|
+
- Repeated pattern seen:
|
|
57
|
+
- Environment assumptions to verify:
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Phase 2: Root-Cause Diagnosis
|
|
61
|
+
|
|
62
|
+
Match the failure to a known pattern before changing anything.
|
|
63
|
+
|
|
64
|
+
| Pattern | Likely Cause | Check |
|
|
65
|
+
| --- | --- | --- |
|
|
66
|
+
| Maximum tool calls / repeated same command | loop or no-exit observer path | inspect the last N tool calls for repetition |
|
|
67
|
+
| Context overflow / degraded reasoning | unbounded notes, repeated plans, oversized logs | inspect recent context for duplication and low-signal bulk |
|
|
68
|
+
| `ECONNREFUSED` / timeout | service unavailable or wrong port | verify service health, URL, and port assumptions |
|
|
69
|
+
| `429` / quota exhaustion | retry storm or missing backoff | count repeated calls and inspect retry spacing |
|
|
70
|
+
| file missing after write / stale diff | race, wrong cwd, or branch drift | re-check path, cwd, git status, and actual file existence |
|
|
71
|
+
| tests still failing after “fix” | wrong hypothesis | isolate the exact failing test and re-derive the bug |
|
|
72
|
+
|
|
73
|
+
Diagnosis questions:
|
|
74
|
+
- is this a logic failure, state failure, environment failure, or policy failure?
|
|
75
|
+
- did the agent lose the real objective and start optimizing the wrong subtask?
|
|
76
|
+
- is the failure deterministic or transient?
|
|
77
|
+
- what is the smallest reversible action that would validate the diagnosis?
|
|
78
|
+
|
|
79
|
+
### Phase 3: Contained Recovery
|
|
80
|
+
|
|
81
|
+
Recover with the smallest action that changes the diagnosis surface.
|
|
82
|
+
|
|
83
|
+
Safe recovery actions:
|
|
84
|
+
- stop repeated retries and restate the hypothesis
|
|
85
|
+
- trim low-signal context and keep only the active goal, blockers, and evidence
|
|
86
|
+
- re-check the actual filesystem / branch / process state
|
|
87
|
+
- narrow the task to one failing command, one file, or one test
|
|
88
|
+
- switch from speculative reasoning to direct observation
|
|
89
|
+
- escalate to a human when the failure is high-risk or externally blocked
|
|
90
|
+
|
|
91
|
+
Do not claim unsupported auto-healing actions like “reset agent state” or “update harness config” unless you are actually doing them through real tools in the current environment.
|
|
92
|
+
|
|
93
|
+
Contained recovery checklist:
|
|
94
|
+
|
|
95
|
+
```markdown
|
|
96
|
+
## Recovery Action
|
|
97
|
+
- Diagnosis chosen:
|
|
98
|
+
- Smallest action taken:
|
|
99
|
+
- Why this is safe:
|
|
100
|
+
- What evidence would prove the fix worked:
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Phase 4: Introspection Report
|
|
104
|
+
|
|
105
|
+
End with a report that makes the recovery legible to the next agent or human.
|
|
106
|
+
|
|
107
|
+
```markdown
|
|
108
|
+
## Agent Self-Debug Report
|
|
109
|
+
- Session / task:
|
|
110
|
+
- Failure:
|
|
111
|
+
- Root cause:
|
|
112
|
+
- Recovery action:
|
|
113
|
+
- Result: success | partial | blocked
|
|
114
|
+
- Token / time burn risk:
|
|
115
|
+
- Follow-up needed:
|
|
116
|
+
- Preventive change to encode later:
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Recovery Heuristics
|
|
120
|
+
|
|
121
|
+
Prefer these interventions in order:
|
|
122
|
+
|
|
123
|
+
1. Restate the real objective in one sentence.
|
|
124
|
+
2. Verify the world state instead of trusting memory.
|
|
125
|
+
3. Shrink the failing scope.
|
|
126
|
+
4. Run one discriminating check.
|
|
127
|
+
5. Only then retry.
|
|
128
|
+
|
|
129
|
+
Bad pattern:
|
|
130
|
+
- retrying the same action three times with slightly different wording
|
|
131
|
+
|
|
132
|
+
Good pattern:
|
|
133
|
+
- capture failure
|
|
134
|
+
- classify the pattern
|
|
135
|
+
- run one direct check
|
|
136
|
+
- change the plan only if the check supports it
|
|
137
|
+
|
|
138
|
+
## Integration with ECC
|
|
139
|
+
|
|
140
|
+
- Use `verification-loop` after recovery if code was changed.
|
|
141
|
+
- Use `continuous-learning-v2` when the failure pattern is worth turning into an instinct or later skill.
|
|
142
|
+
- Use `council` when the issue is not technical failure but decision ambiguity.
|
|
143
|
+
- Use `workspace-surface-audit` if the failure came from conflicting local state or repo drift.
|
|
144
|
+
|
|
145
|
+
## Output Standard
|
|
146
|
+
|
|
147
|
+
When this skill is active, do not end with “I fixed it” alone.
|
|
148
|
+
|
|
149
|
+
Always provide:
|
|
150
|
+
- the failure pattern
|
|
151
|
+
- the root-cause hypothesis
|
|
152
|
+
- the recovery action
|
|
153
|
+
- the evidence that the situation is now better or still blocked
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agent-payment-x402
|
|
3
|
+
description: Add x402 payment execution to AI agents — per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents need to pay for APIs, services, or other agents.
|
|
4
|
+
origin: community
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Agent Payment Execution (x402)
|
|
8
|
+
|
|
9
|
+
Enable AI agents to make autonomous payments with built-in spending controls. Uses the x402 HTTP payment protocol and MCP tools so agents can pay for external services, APIs, or other agents without custodial risk.
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
Use when: your agent needs to pay for an API call, purchase a service, settle with another agent, enforce per-task spending limits, or manage a non-custodial wallet. Pairs naturally with cost-aware-llm-pipeline and security-review skills.
|
|
14
|
+
|
|
15
|
+
## How It Works
|
|
16
|
+
|
|
17
|
+
### x402 Protocol
|
|
18
|
+
x402 extends HTTP 402 (Payment Required) into a machine-negotiable flow. When a server returns `402`, the agent's payment tool automatically negotiates price, checks budget, signs a transaction, and retries — no human in the loop.
|
|
19
|
+
|
|
20
|
+
### Spending Controls
|
|
21
|
+
Every payment tool call enforces a `SpendingPolicy`:
|
|
22
|
+
- **Per-task budget** — max spend for a single agent action
|
|
23
|
+
- **Per-session budget** — cumulative limit across an entire session
|
|
24
|
+
- **Allowlisted recipients** — restrict which addresses/services the agent can pay
|
|
25
|
+
- **Rate limits** — max transactions per minute/hour
|
|
26
|
+
|
|
27
|
+
### Non-Custodial Wallets
|
|
28
|
+
Agents hold their own keys via ERC-4337 smart accounts. The orchestrator sets policy before delegation; the agent can only spend within bounds. No pooled funds, no custodial risk.
|
|
29
|
+
|
|
30
|
+
## MCP Integration
|
|
31
|
+
|
|
32
|
+
The payment layer exposes standard MCP tools that slot into any Claude Code or agent harness setup.
|
|
33
|
+
|
|
34
|
+
> **Security note**: Always pin the package version. This tool manages private keys — unpinned `npx` installs introduce supply-chain risk.
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"mcpServers": {
|
|
39
|
+
"agentpay": {
|
|
40
|
+
"command": "npx",
|
|
41
|
+
"args": ["agentwallet-sdk@6.0.0"]
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Available Tools (agent-callable)
|
|
48
|
+
|
|
49
|
+
| Tool | Purpose |
|
|
50
|
+
|------|---------|
|
|
51
|
+
| `get_balance` | Check agent wallet balance |
|
|
52
|
+
| `send_payment` | Send payment to address or ENS |
|
|
53
|
+
| `check_spending` | Query remaining budget |
|
|
54
|
+
| `list_transactions` | Audit trail of all payments |
|
|
55
|
+
|
|
56
|
+
> **Note**: Spending policy is set by the **orchestrator** before delegating to the agent — not by the agent itself. This prevents agents from escalating their own spending limits. Configure policy via `set_policy` in your orchestration layer or pre-task hook, never as an agent-callable tool.
|
|
57
|
+
|
|
58
|
+
## Examples
|
|
59
|
+
|
|
60
|
+
### Budget enforcement in an MCP client
|
|
61
|
+
|
|
62
|
+
When building an orchestrator that calls the agentpay MCP server, enforce budgets before dispatching paid tool calls.
|
|
63
|
+
|
|
64
|
+
> **Prerequisites**: Install the package before adding the MCP config — `npx` without `-y` will prompt for confirmation in non-interactive environments, causing the server to hang: `npm install -g agentwallet-sdk@6.0.0`
|
|
65
|
+
|
|
66
|
+
```typescript
|
|
67
|
+
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
68
|
+
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
|
|
69
|
+
|
|
70
|
+
async function main() {
|
|
71
|
+
// 1. Validate credentials before constructing the transport.
|
|
72
|
+
// A missing key must fail immediately — never let the subprocess start without auth.
|
|
73
|
+
const walletKey = process.env.WALLET_PRIVATE_KEY;
|
|
74
|
+
if (!walletKey) {
|
|
75
|
+
throw new Error("WALLET_PRIVATE_KEY is not set — refusing to start payment server");
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Connect to the agentpay MCP server via stdio transport.
|
|
79
|
+
// Whitelist only the env vars the server needs — never forward all of process.env
|
|
80
|
+
// to a third-party subprocess that manages private keys.
|
|
81
|
+
const transport = new StdioClientTransport({
|
|
82
|
+
command: "npx",
|
|
83
|
+
args: ["agentwallet-sdk@6.0.0"],
|
|
84
|
+
env: {
|
|
85
|
+
PATH: process.env.PATH ?? "",
|
|
86
|
+
NODE_ENV: process.env.NODE_ENV ?? "production",
|
|
87
|
+
WALLET_PRIVATE_KEY: walletKey,
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
const agentpay = new Client({ name: "orchestrator", version: "1.0.0" });
|
|
91
|
+
await agentpay.connect(transport);
|
|
92
|
+
|
|
93
|
+
// 2. Set spending policy before delegating to the agent.
|
|
94
|
+
// Always verify success — a silent failure means no controls are active.
|
|
95
|
+
const policyResult = await agentpay.callTool({
|
|
96
|
+
name: "set_policy",
|
|
97
|
+
arguments: {
|
|
98
|
+
per_task_budget: 0.50,
|
|
99
|
+
per_session_budget: 5.00,
|
|
100
|
+
allowlisted_recipients: ["api.example.com"],
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
if (policyResult.isError) {
|
|
104
|
+
throw new Error(
|
|
105
|
+
`Failed to set spending policy — do not delegate: ${JSON.stringify(policyResult.content)}`
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// 3. Use preToolCheck before any paid action
|
|
110
|
+
await preToolCheck(agentpay, 0.01);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// Pre-tool hook: fail-closed budget enforcement with four distinct error paths.
|
|
114
|
+
async function preToolCheck(agentpay: Client, apiCost: number): Promise<void> {
|
|
115
|
+
// Path 1: Reject invalid input (NaN/Infinity bypass the < comparison)
|
|
116
|
+
if (!Number.isFinite(apiCost) || apiCost < 0) {
|
|
117
|
+
throw new Error(`Invalid apiCost: ${apiCost} — action blocked`);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Path 2: Transport/connectivity failure
|
|
121
|
+
let result;
|
|
122
|
+
try {
|
|
123
|
+
result = await agentpay.callTool({ name: "check_spending" });
|
|
124
|
+
} catch (err) {
|
|
125
|
+
throw new Error(`Payment service unreachable — action blocked: ${err}`);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Path 3: Tool returned an error (e.g., auth failure, wallet not initialised)
|
|
129
|
+
if (result.isError) {
|
|
130
|
+
throw new Error(
|
|
131
|
+
`check_spending failed — action blocked: ${JSON.stringify(result.content)}`
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Path 4: Parse and validate the response shape
|
|
136
|
+
let remaining: number;
|
|
137
|
+
try {
|
|
138
|
+
const parsed = JSON.parse(
|
|
139
|
+
(result.content as Array<{ text: string }>)[0].text
|
|
140
|
+
);
|
|
141
|
+
if (!Number.isFinite(parsed?.remaining)) {
|
|
142
|
+
throw new TypeError("missing or non-finite 'remaining' field");
|
|
143
|
+
}
|
|
144
|
+
remaining = parsed.remaining;
|
|
145
|
+
} catch (err) {
|
|
146
|
+
throw new Error(
|
|
147
|
+
`check_spending returned unexpected format — action blocked: ${err}`
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// Path 5: Budget exceeded
|
|
152
|
+
if (remaining < apiCost) {
|
|
153
|
+
throw new Error(
|
|
154
|
+
`Budget exceeded: need $${apiCost} but only $${remaining} remaining`
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
main().catch((err) => {
|
|
160
|
+
console.error(err);
|
|
161
|
+
process.exitCode = 1;
|
|
162
|
+
});
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
## Best Practices
|
|
166
|
+
|
|
167
|
+
- **Set budgets before delegation**: When spawning sub-agents, attach a SpendingPolicy via your orchestration layer. Never give an agent unlimited spend.
|
|
168
|
+
- **Pin your dependencies**: Always specify an exact version in your MCP config (e.g., `agentwallet-sdk@6.0.0`). Verify package integrity before deploying to production.
|
|
169
|
+
- **Audit trails**: Use `list_transactions` in post-task hooks to log what was spent and why.
|
|
170
|
+
- **Fail closed**: If the payment tool is unreachable, block the paid action — don't fall back to unmetered access.
|
|
171
|
+
- **Pair with security-review**: Payment tools are high-privilege. Apply the same scrutiny as shell access.
|
|
172
|
+
- **Test with testnets first**: Use Base Sepolia for development; switch to Base mainnet for production.
|
|
173
|
+
|
|
174
|
+
## Production Reference
|
|
175
|
+
|
|
176
|
+
- **npm**: [`agentwallet-sdk`](https://www.npmjs.com/package/agentwallet-sdk)
|
|
177
|
+
- **Merged into NVIDIA NeMo Agent Toolkit**: [PR #17](https://github.com/NVIDIA/NeMo-Agent-Toolkit-Examples/pull/17) — x402 payment tool for NVIDIA's agent examples
|
|
178
|
+
- **Protocol spec**: [x402.org](https://x402.org)
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agent-sort
|
|
3
|
+
description: Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.
|
|
4
|
+
origin: ECC
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Agent Sort
|
|
8
|
+
|
|
9
|
+
Use this skill when a repo needs a project-specific ECC surface instead of the default full install.
|
|
10
|
+
|
|
11
|
+
The goal is not to guess what "feels useful." The goal is to classify ECC components with evidence from the actual codebase.
|
|
12
|
+
|
|
13
|
+
## When to Use
|
|
14
|
+
|
|
15
|
+
- A project only needs a subset of ECC and full installs are too noisy
|
|
16
|
+
- The repo stack is clear, but nobody wants to hand-curate skills one by one
|
|
17
|
+
- A team wants a repeatable install decision backed by grep evidence instead of opinion
|
|
18
|
+
- You need to separate always-loaded daily workflow surfaces from searchable library/reference surfaces
|
|
19
|
+
- A repo has drifted into the wrong language, rule, or hook set and needs cleanup
|
|
20
|
+
|
|
21
|
+
## Non-Negotiable Rules
|
|
22
|
+
|
|
23
|
+
- Use the current repository as the source of truth, not generic preferences
|
|
24
|
+
- Every DAILY decision must cite concrete repo evidence
|
|
25
|
+
- LIBRARY does not mean "delete"; it means "keep accessible without loading by default"
|
|
26
|
+
- Do not install hooks, rules, or scripts that the current repo cannot use
|
|
27
|
+
- Prefer ECC-native surfaces; do not introduce a second install system
|
|
28
|
+
|
|
29
|
+
## Outputs
|
|
30
|
+
|
|
31
|
+
Produce these artifacts in order:
|
|
32
|
+
|
|
33
|
+
1. DAILY inventory
|
|
34
|
+
2. LIBRARY inventory
|
|
35
|
+
3. install plan
|
|
36
|
+
4. verification report
|
|
37
|
+
5. optional `skill-library` router if the project wants one
|
|
38
|
+
|
|
39
|
+
## Classification Model
|
|
40
|
+
|
|
41
|
+
Use two buckets only:
|
|
42
|
+
|
|
43
|
+
- `DAILY`
|
|
44
|
+
- should load every session for this repo
|
|
45
|
+
- strongly matched to the repo's language, framework, workflow, or operator surface
|
|
46
|
+
- `LIBRARY`
|
|
47
|
+
- useful to retain, but not worth loading by default
|
|
48
|
+
- should remain reachable through search, router skill, or selective manual use
|
|
49
|
+
|
|
50
|
+
## Evidence Sources
|
|
51
|
+
|
|
52
|
+
Use repo-local evidence before making any classification:
|
|
53
|
+
|
|
54
|
+
- file extensions
|
|
55
|
+
- package managers and lockfiles
|
|
56
|
+
- framework configs
|
|
57
|
+
- CI and hook configs
|
|
58
|
+
- build/test scripts
|
|
59
|
+
- imports and dependency manifests
|
|
60
|
+
- repo docs that explicitly describe the stack
|
|
61
|
+
|
|
62
|
+
Useful commands include:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
rg --files
|
|
66
|
+
rg -n "typescript|react|next|supabase|django|spring|flutter|swift"
|
|
67
|
+
cat package.json
|
|
68
|
+
cat pyproject.toml
|
|
69
|
+
cat Cargo.toml
|
|
70
|
+
cat pubspec.yaml
|
|
71
|
+
cat go.mod
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Parallel Review Passes
|
|
75
|
+
|
|
76
|
+
If parallel subagents are available, split the review into these passes:
|
|
77
|
+
|
|
78
|
+
1. Agents
|
|
79
|
+
- classify `agents/*`
|
|
80
|
+
2. Skills
|
|
81
|
+
- classify `skills/*`
|
|
82
|
+
3. Commands
|
|
83
|
+
- classify `commands/*`
|
|
84
|
+
4. Rules
|
|
85
|
+
- classify `rules/*`
|
|
86
|
+
5. Hooks and scripts
|
|
87
|
+
- classify hook surfaces, MCP health checks, helper scripts, and OS compatibility
|
|
88
|
+
6. Extras
|
|
89
|
+
- classify contexts, examples, MCP configs, templates, and guidance docs
|
|
90
|
+
|
|
91
|
+
If subagents are not available, run the same passes sequentially.
|
|
92
|
+
|
|
93
|
+
## Core Workflow
|
|
94
|
+
|
|
95
|
+
### 1. Read the repo
|
|
96
|
+
|
|
97
|
+
Establish the real stack before classifying anything:
|
|
98
|
+
|
|
99
|
+
- languages in use
|
|
100
|
+
- frameworks in use
|
|
101
|
+
- primary package manager
|
|
102
|
+
- test stack
|
|
103
|
+
- lint/format stack
|
|
104
|
+
- deployment/runtime surface
|
|
105
|
+
- operator integrations already present
|
|
106
|
+
|
|
107
|
+
### 2. Build the evidence table
|
|
108
|
+
|
|
109
|
+
For every candidate surface, record:
|
|
110
|
+
|
|
111
|
+
- component path
|
|
112
|
+
- component type
|
|
113
|
+
- proposed bucket
|
|
114
|
+
- repo evidence
|
|
115
|
+
- short justification
|
|
116
|
+
|
|
117
|
+
Use this format:
|
|
118
|
+
|
|
119
|
+
```text
|
|
120
|
+
skills/frontend-patterns | skill | DAILY | 84 .tsx files, next.config.ts present | core frontend stack
|
|
121
|
+
skills/django-patterns | skill | LIBRARY | no .py files, no pyproject.toml | not active in this repo
|
|
122
|
+
rules/typescript/* | rules | DAILY | package.json + tsconfig.json | active TS repo
|
|
123
|
+
rules/python/* | rules | LIBRARY | zero Python source files | keep accessible only
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### 3. Decide DAILY vs LIBRARY
|
|
127
|
+
|
|
128
|
+
Promote to `DAILY` when:
|
|
129
|
+
|
|
130
|
+
- the repo clearly uses the matching stack
|
|
131
|
+
- the component is general enough to help every session
|
|
132
|
+
- the repo already depends on the corresponding runtime or workflow
|
|
133
|
+
|
|
134
|
+
Demote to `LIBRARY` when:
|
|
135
|
+
|
|
136
|
+
- the component is off-stack
|
|
137
|
+
- the repo might need it later, but not every day
|
|
138
|
+
- it adds context overhead without immediate relevance
|
|
139
|
+
|
|
140
|
+
### 4. Build the install plan
|
|
141
|
+
|
|
142
|
+
Translate the classification into action:
|
|
143
|
+
|
|
144
|
+
- DAILY skills -> install or keep in `.claude/skills/`
|
|
145
|
+
- DAILY commands -> keep as explicit shims only if still useful
|
|
146
|
+
- DAILY rules -> install only matching language sets
|
|
147
|
+
- DAILY hooks/scripts -> keep only compatible ones
|
|
148
|
+
- LIBRARY surfaces -> keep accessible through search or `skill-library`
|
|
149
|
+
|
|
150
|
+
If the repo already uses selective installs, update that plan instead of creating another system.
|
|
151
|
+
|
|
152
|
+
### 5. Create the optional library router
|
|
153
|
+
|
|
154
|
+
If the project wants a searchable library surface, create:
|
|
155
|
+
|
|
156
|
+
- `.claude/skills/skill-library/SKILL.md`
|
|
157
|
+
|
|
158
|
+
That router should contain:
|
|
159
|
+
|
|
160
|
+
- a short explanation of DAILY vs LIBRARY
|
|
161
|
+
- grouped trigger keywords
|
|
162
|
+
- where the library references live
|
|
163
|
+
|
|
164
|
+
Do not duplicate every skill body inside the router.
|
|
165
|
+
|
|
166
|
+
### 6. Verify the result
|
|
167
|
+
|
|
168
|
+
After the plan is applied, verify:
|
|
169
|
+
|
|
170
|
+
- every DAILY file exists where expected
|
|
171
|
+
- stale language rules were not left active
|
|
172
|
+
- incompatible hooks were not installed
|
|
173
|
+
- the resulting install actually matches the repo stack
|
|
174
|
+
|
|
175
|
+
Return a compact report with:
|
|
176
|
+
|
|
177
|
+
- DAILY count
|
|
178
|
+
- LIBRARY count
|
|
179
|
+
- removed stale surfaces
|
|
180
|
+
- open questions
|
|
181
|
+
|
|
182
|
+
## Handoffs
|
|
183
|
+
|
|
184
|
+
If the next step is interactive installation or repair, hand off to:
|
|
185
|
+
|
|
186
|
+
- `configure-ecc`
|
|
187
|
+
|
|
188
|
+
If the next step is overlap cleanup or catalog review, hand off to:
|
|
189
|
+
|
|
190
|
+
- `skill-stocktake`
|
|
191
|
+
|
|
192
|
+
If the next step is broader context trimming, hand off to:
|
|
193
|
+
|
|
194
|
+
- `strategic-compact`
|
|
195
|
+
|
|
196
|
+
## Output Format
|
|
197
|
+
|
|
198
|
+
Return the result in this order:
|
|
199
|
+
|
|
200
|
+
```text
|
|
201
|
+
STACK
|
|
202
|
+
- language/framework/runtime summary
|
|
203
|
+
|
|
204
|
+
DAILY
|
|
205
|
+
- always-loaded items with evidence
|
|
206
|
+
|
|
207
|
+
LIBRARY
|
|
208
|
+
- searchable/reference items with evidence
|
|
209
|
+
|
|
210
|
+
INSTALL PLAN
|
|
211
|
+
- what should be installed, removed, or routed
|
|
212
|
+
|
|
213
|
+
VERIFICATION
|
|
214
|
+
- checks run and remaining gaps
|
|
215
|
+
```
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agentic-engineering
|
|
3
|
+
description: Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing.
|
|
4
|
+
origin: ECC
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Agentic Engineering
|
|
8
|
+
|
|
9
|
+
Use this skill for engineering workflows where AI agents perform most implementation work and humans enforce quality and risk controls.
|
|
10
|
+
|
|
11
|
+
## Operating Principles
|
|
12
|
+
|
|
13
|
+
1. Define completion criteria before execution.
|
|
14
|
+
2. Decompose work into agent-sized units.
|
|
15
|
+
3. Route model tiers by task complexity.
|
|
16
|
+
4. Measure with evals and regression checks.
|
|
17
|
+
|
|
18
|
+
## Eval-First Loop
|
|
19
|
+
|
|
20
|
+
1. Define capability eval and regression eval.
|
|
21
|
+
2. Run baseline and capture failure signatures.
|
|
22
|
+
3. Execute implementation.
|
|
23
|
+
4. Re-run evals and compare deltas.
|
|
24
|
+
|
|
25
|
+
## Task Decomposition
|
|
26
|
+
|
|
27
|
+
Apply the 15-minute unit rule:
|
|
28
|
+
- each unit should be independently verifiable
|
|
29
|
+
- each unit should have a single dominant risk
|
|
30
|
+
- each unit should expose a clear done condition
|
|
31
|
+
|
|
32
|
+
## Model Routing
|
|
33
|
+
|
|
34
|
+
- Haiku: classification, boilerplate transforms, narrow edits
|
|
35
|
+
- Sonnet: implementation and refactors
|
|
36
|
+
- Opus: architecture, root-cause analysis, multi-file invariants
|
|
37
|
+
|
|
38
|
+
## Session Strategy
|
|
39
|
+
|
|
40
|
+
- Continue session for closely-coupled units.
|
|
41
|
+
- Start fresh session after major phase transitions.
|
|
42
|
+
- Compact after milestone completion, not during active debugging.
|
|
43
|
+
|
|
44
|
+
## Review Focus for AI-Generated Code
|
|
45
|
+
|
|
46
|
+
Prioritize:
|
|
47
|
+
- invariants and edge cases
|
|
48
|
+
- error boundaries
|
|
49
|
+
- security and auth assumptions
|
|
50
|
+
- hidden coupling and rollout risk
|
|
51
|
+
|
|
52
|
+
Do not waste review cycles on style-only disagreements when automated format/lint already enforce style.
|
|
53
|
+
|
|
54
|
+
## Cost Discipline
|
|
55
|
+
|
|
56
|
+
Track per task:
|
|
57
|
+
- model
|
|
58
|
+
- token estimate
|
|
59
|
+
- retries
|
|
60
|
+
- wall-clock time
|
|
61
|
+
- success/failure
|
|
62
|
+
|
|
63
|
+
Escalate model tier only when lower tier fails with a clear reasoning gap.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ai-first-engineering
|
|
3
|
+
description: Engineering operating model for teams where AI agents generate a large share of implementation output.
|
|
4
|
+
origin: ECC
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# AI-First Engineering
|
|
8
|
+
|
|
9
|
+
Use this skill when designing process, reviews, and architecture for teams shipping with AI-assisted code generation.
|
|
10
|
+
|
|
11
|
+
## Process Shifts
|
|
12
|
+
|
|
13
|
+
1. Planning quality matters more than typing speed.
|
|
14
|
+
2. Eval coverage matters more than anecdotal confidence.
|
|
15
|
+
3. Review focus shifts from syntax to system behavior.
|
|
16
|
+
|
|
17
|
+
## Architecture Requirements
|
|
18
|
+
|
|
19
|
+
Prefer architectures that are agent-friendly:
|
|
20
|
+
- explicit boundaries
|
|
21
|
+
- stable contracts
|
|
22
|
+
- typed interfaces
|
|
23
|
+
- deterministic tests
|
|
24
|
+
|
|
25
|
+
Avoid implicit behavior spread across hidden conventions.
|
|
26
|
+
|
|
27
|
+
## Code Review in AI-First Teams
|
|
28
|
+
|
|
29
|
+
Review for:
|
|
30
|
+
- behavior regressions
|
|
31
|
+
- security assumptions
|
|
32
|
+
- data integrity
|
|
33
|
+
- failure handling
|
|
34
|
+
- rollout safety
|
|
35
|
+
|
|
36
|
+
Minimize time spent on style issues already covered by automation.
|
|
37
|
+
|
|
38
|
+
## Hiring and Evaluation Signals
|
|
39
|
+
|
|
40
|
+
Strong AI-first engineers:
|
|
41
|
+
- decompose ambiguous work cleanly
|
|
42
|
+
- define measurable acceptance criteria
|
|
43
|
+
- produce high-signal prompts and evals
|
|
44
|
+
- enforce risk controls under delivery pressure
|
|
45
|
+
|
|
46
|
+
## Testing Standard
|
|
47
|
+
|
|
48
|
+
Raise testing bar for generated code:
|
|
49
|
+
- required regression coverage for touched domains
|
|
50
|
+
- explicit edge-case assertions
|
|
51
|
+
- integration checks for interface boundaries
|