@takuma-hirai/hirai-method 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/.claude/.stale-harness-state/last-check +0 -0
- package/.claude/CommonRules.md +121 -0
- package/.claude/agents/01-core-development/api-designer.md +237 -0
- package/.claude/agents/01-core-development/backend-developer.md +222 -0
- package/.claude/agents/01-core-development/design-bridge.md +127 -0
- package/.claude/agents/01-core-development/electron-pro.md +240 -0
- package/.claude/agents/01-core-development/frontend-developer.md +133 -0
- package/.claude/agents/01-core-development/fullstack-developer.md +235 -0
- package/.claude/agents/01-core-development/graphql-architect.md +238 -0
- package/.claude/agents/01-core-development/microservices-architect.md +239 -0
- package/.claude/agents/01-core-development/mobile-developer.md +283 -0
- package/.claude/agents/01-core-development/ui-designer.md +174 -0
- package/.claude/agents/01-core-development/websocket-engineer.md +150 -0
- package/.claude/agents/03-infrastructure/azure-infra-engineer.md +53 -0
- package/.claude/agents/03-infrastructure/cloud-architect.md +277 -0
- package/.claude/agents/03-infrastructure/database-administrator.md +287 -0
- package/.claude/agents/03-infrastructure/deployment-engineer.md +287 -0
- package/.claude/agents/03-infrastructure/devops-engineer.md +287 -0
- package/.claude/agents/03-infrastructure/devops-incident-responder.md +287 -0
- package/.claude/agents/03-infrastructure/docker-expert.md +278 -0
- package/.claude/agents/03-infrastructure/incident-responder.md +287 -0
- package/.claude/agents/03-infrastructure/kubernetes-specialist.md +287 -0
- package/.claude/agents/03-infrastructure/network-engineer.md +287 -0
- package/.claude/agents/03-infrastructure/platform-engineer.md +287 -0
- package/.claude/agents/03-infrastructure/security-engineer.md +277 -0
- package/.claude/agents/03-infrastructure/sre-engineer.md +287 -0
- package/.claude/agents/03-infrastructure/terraform-engineer.md +287 -0
- package/.claude/agents/03-infrastructure/terragrunt-expert.md +307 -0
- package/.claude/agents/03-infrastructure/windows-infra-admin.md +52 -0
- package/.claude/agents/04-quality-security/accessibility-tester.md +277 -0
- package/.claude/agents/04-quality-security/ad-security-reviewer.md +56 -0
- package/.claude/agents/04-quality-security/ai-writing-auditor.md +77 -0
- package/.claude/agents/04-quality-security/architect-reviewer.md +287 -0
- package/.claude/agents/04-quality-security/chaos-engineer.md +277 -0
- package/.claude/agents/04-quality-security/code-reviewer.md +287 -0
- package/.claude/agents/04-quality-security/compliance-auditor.md +277 -0
- package/.claude/agents/04-quality-security/debugger.md +287 -0
- package/.claude/agents/04-quality-security/error-detective.md +287 -0
- package/.claude/agents/04-quality-security/penetration-tester.md +287 -0
- package/.claude/agents/04-quality-security/performance-engineer.md +287 -0
- package/.claude/agents/04-quality-security/powershell-security-hardening.md +54 -0
- package/.claude/agents/04-quality-security/qa-expert.md +287 -0
- package/.claude/agents/04-quality-security/security-auditor.md +287 -0
- package/.claude/agents/04-quality-security/test-automator.md +287 -0
- package/.claude/agents/04-quality-security/ui-ux-tester.md +234 -0
- package/.claude/agents/06-developer-experience/build-engineer.md +286 -0
- package/.claude/agents/06-developer-experience/cli-developer.md +286 -0
- package/.claude/agents/06-developer-experience/dependency-manager.md +286 -0
- package/.claude/agents/06-developer-experience/documentation-engineer.md +276 -0
- package/.claude/agents/06-developer-experience/dx-optimizer.md +286 -0
- package/.claude/agents/06-developer-experience/git-workflow-manager.md +286 -0
- package/.claude/agents/06-developer-experience/legacy-modernizer.md +286 -0
- package/.claude/agents/06-developer-experience/mcp-developer.md +275 -0
- package/.claude/agents/06-developer-experience/powershell-module-architect.md +58 -0
- package/.claude/agents/06-developer-experience/powershell-ui-architect.md +135 -0
- package/.claude/agents/06-developer-experience/readme-generator.md +238 -0
- package/.claude/agents/06-developer-experience/refactoring-specialist.md +286 -0
- package/.claude/agents/06-developer-experience/slack-expert.md +232 -0
- package/.claude/agents/06-developer-experience/tooling-engineer.md +286 -0
- package/.claude/agents/09-meta-orchestration/agent-installer.md +97 -0
- package/.claude/agents/09-meta-orchestration/agent-organizer.md +287 -0
- package/.claude/agents/09-meta-orchestration/codebase-orchestrator.md +249 -0
- package/.claude/agents/09-meta-orchestration/context-manager.md +287 -0
- package/.claude/agents/09-meta-orchestration/error-coordinator.md +287 -0
- package/.claude/agents/09-meta-orchestration/it-ops-orchestrator.md +60 -0
- package/.claude/agents/09-meta-orchestration/knowledge-synthesizer.md +287 -0
- package/.claude/agents/09-meta-orchestration/multi-agent-coordinator.md +287 -0
- package/.claude/agents/09-meta-orchestration/performance-monitor.md +287 -0
- package/.claude/agents/09-meta-orchestration/task-distributor.md +287 -0
- package/.claude/agents/09-meta-orchestration/workflow-orchestrator.md +287 -0
- package/.claude/agents/10-research-analysis/competitive-analyst.md +287 -0
- package/.claude/agents/10-research-analysis/data-researcher.md +287 -0
- package/.claude/agents/10-research-analysis/market-researcher.md +287 -0
- package/.claude/agents/10-research-analysis/project-idea-validator.md +269 -0
- package/.claude/agents/10-research-analysis/research-analyst.md +287 -0
- package/.claude/agents/10-research-analysis/scientific-literature-researcher.md +151 -0
- package/.claude/agents/10-research-analysis/search-specialist.md +287 -0
- package/.claude/agents/10-research-analysis/trend-analyst.md +287 -0
- package/.claude/archive/README.md +47 -0
- package/.claude/archive/agents/02-language-specialists/angular-architect.md +287 -0
- package/.claude/archive/agents/02-language-specialists/cpp-pro.md +277 -0
- package/.claude/archive/agents/02-language-specialists/csharp-developer.md +287 -0
- package/.claude/archive/agents/02-language-specialists/django-developer.md +287 -0
- package/.claude/archive/agents/02-language-specialists/dotnet-core-expert.md +287 -0
- package/.claude/archive/agents/02-language-specialists/dotnet-framework-4.8-expert.md +306 -0
- package/.claude/archive/agents/02-language-specialists/elixir-expert.md +311 -0
- package/.claude/archive/agents/02-language-specialists/expo-react-native-expert.md +268 -0
- package/.claude/archive/agents/02-language-specialists/fastapi-developer.md +287 -0
- package/.claude/archive/agents/02-language-specialists/flutter-expert.md +287 -0
- package/.claude/archive/agents/02-language-specialists/golang-pro.md +277 -0
- package/.claude/archive/agents/02-language-specialists/java-architect.md +287 -0
- package/.claude/archive/agents/02-language-specialists/javascript-pro.md +277 -0
- package/.claude/archive/agents/02-language-specialists/kotlin-specialist.md +287 -0
- package/.claude/archive/agents/02-language-specialists/laravel-specialist.md +287 -0
- package/.claude/archive/agents/02-language-specialists/nextjs-developer.md +287 -0
- package/.claude/archive/agents/02-language-specialists/node-specialist.md +124 -0
- package/.claude/archive/agents/02-language-specialists/php-pro.md +287 -0
- package/.claude/archive/agents/02-language-specialists/powershell-5.1-expert.md +59 -0
- package/.claude/archive/agents/02-language-specialists/powershell-7-expert.md +57 -0
- package/.claude/archive/agents/02-language-specialists/python-pro.md +277 -0
- package/.claude/archive/agents/02-language-specialists/rails-expert.md +358 -0
- package/.claude/archive/agents/02-language-specialists/react-specialist.md +287 -0
- package/.claude/archive/agents/02-language-specialists/rust-engineer.md +287 -0
- package/.claude/archive/agents/02-language-specialists/spring-boot-engineer.md +287 -0
- package/.claude/archive/agents/02-language-specialists/sql-pro.md +287 -0
- package/.claude/archive/agents/02-language-specialists/swift-expert.md +287 -0
- package/.claude/archive/agents/02-language-specialists/symfony-specialist.md +354 -0
- package/.claude/archive/agents/02-language-specialists/typescript-pro.md +277 -0
- package/.claude/archive/agents/02-language-specialists/vue-expert.md +287 -0
- package/.claude/archive/agents/05-data-ai/ai-engineer.md +287 -0
- package/.claude/archive/agents/05-data-ai/data-analyst.md +277 -0
- package/.claude/archive/agents/05-data-ai/data-engineer.md +287 -0
- package/.claude/archive/agents/05-data-ai/data-scientist.md +287 -0
- package/.claude/archive/agents/05-data-ai/database-optimizer.md +287 -0
- package/.claude/archive/agents/05-data-ai/llm-architect.md +287 -0
- package/.claude/archive/agents/05-data-ai/machine-learning-engineer.md +277 -0
- package/.claude/archive/agents/05-data-ai/ml-engineer.md +287 -0
- package/.claude/archive/agents/05-data-ai/mlops-engineer.md +287 -0
- package/.claude/archive/agents/05-data-ai/nlp-engineer.md +287 -0
- package/.claude/archive/agents/05-data-ai/postgres-pro.md +287 -0
- package/.claude/archive/agents/05-data-ai/prompt-engineer.md +287 -0
- package/.claude/archive/agents/05-data-ai/reinforcement-learning-engineer.md +277 -0
- package/.claude/archive/agents/07-specialized-domains/api-documenter.md +277 -0
- package/.claude/archive/agents/07-specialized-domains/blockchain-developer.md +287 -0
- package/.claude/archive/agents/07-specialized-domains/embedded-systems.md +287 -0
- package/.claude/archive/agents/07-specialized-domains/fintech-engineer.md +287 -0
- package/.claude/archive/agents/07-specialized-domains/game-developer.md +287 -0
- package/.claude/archive/agents/07-specialized-domains/healthcare-admin.md +199 -0
- package/.claude/archive/agents/07-specialized-domains/iot-engineer.md +287 -0
- package/.claude/archive/agents/07-specialized-domains/m365-admin.md +48 -0
- package/.claude/archive/agents/07-specialized-domains/mobile-app-developer.md +287 -0
- package/.claude/archive/agents/07-specialized-domains/payment-integration.md +287 -0
- package/.claude/archive/agents/07-specialized-domains/quant-analyst.md +287 -0
- package/.claude/archive/agents/07-specialized-domains/risk-manager.md +287 -0
- package/.claude/archive/agents/07-specialized-domains/seo-specialist.md +184 -0
- package/.claude/archive/agents/08-business-product/business-analyst.md +287 -0
- package/.claude/archive/agents/08-business-product/content-marketer.md +287 -0
- package/.claude/archive/agents/08-business-product/customer-success-manager.md +287 -0
- package/.claude/archive/agents/08-business-product/legal-advisor.md +287 -0
- package/.claude/archive/agents/08-business-product/license-engineer.md +295 -0
- package/.claude/archive/agents/08-business-product/product-manager.md +287 -0
- package/.claude/archive/agents/08-business-product/project-manager.md +287 -0
- package/.claude/archive/agents/08-business-product/sales-engineer.md +287 -0
- package/.claude/archive/agents/08-business-product/scrum-master.md +287 -0
- package/.claude/archive/agents/08-business-product/technical-writer.md +287 -0
- package/.claude/archive/agents/08-business-product/ux-researcher.md +287 -0
- package/.claude/archive/agents/08-business-product/wordpress-master.md +316 -0
- package/.claude/archive/skills/competitive-ads-extractor/SKILL.md +293 -0
- package/.claude/archive/skills/developer-growth-analysis/SKILL.md +322 -0
- package/.claude/archive/skills/document-docx/LICENSE.txt +30 -0
- package/.claude/archive/skills/document-docx/SKILL.md +197 -0
- package/.claude/archive/skills/document-docx/docx-js.md +350 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/mce/mc.xsd +75 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/.claude/archive/skills/document-docx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/.claude/archive/skills/document-docx/ooxml/scripts/pack.py +159 -0
- package/.claude/archive/skills/document-docx/ooxml/scripts/unpack.py +29 -0
- package/.claude/archive/skills/document-docx/ooxml/scripts/validate.py +69 -0
- package/.claude/archive/skills/document-docx/ooxml/scripts/validation/__init__.py +15 -0
- package/.claude/archive/skills/document-docx/ooxml/scripts/validation/base.py +951 -0
- package/.claude/archive/skills/document-docx/ooxml/scripts/validation/docx.py +274 -0
- package/.claude/archive/skills/document-docx/ooxml/scripts/validation/pptx.py +315 -0
- package/.claude/archive/skills/document-docx/ooxml/scripts/validation/redlining.py +279 -0
- package/.claude/archive/skills/document-docx/ooxml.md +610 -0
- package/.claude/archive/skills/document-docx/scripts/__init__.py +1 -0
- package/.claude/archive/skills/document-docx/scripts/document.py +1276 -0
- package/.claude/archive/skills/document-docx/scripts/templates/comments.xml +3 -0
- package/.claude/archive/skills/document-docx/scripts/templates/commentsExtended.xml +3 -0
- package/.claude/archive/skills/document-docx/scripts/templates/commentsExtensible.xml +3 -0
- package/.claude/archive/skills/document-docx/scripts/templates/commentsIds.xml +3 -0
- package/.claude/archive/skills/document-docx/scripts/templates/people.xml +3 -0
- package/.claude/archive/skills/document-docx/scripts/utilities.py +374 -0
- package/.claude/archive/skills/document-pdf/LICENSE.txt +30 -0
- package/.claude/archive/skills/document-pdf/SKILL.md +294 -0
- package/.claude/archive/skills/document-pdf/forms.md +205 -0
- package/.claude/archive/skills/document-pdf/reference.md +612 -0
- package/.claude/archive/skills/document-pdf/scripts/check_bounding_boxes.py +70 -0
- package/.claude/archive/skills/document-pdf/scripts/check_bounding_boxes_test.py +226 -0
- package/.claude/archive/skills/document-pdf/scripts/check_fillable_fields.py +12 -0
- package/.claude/archive/skills/document-pdf/scripts/convert_pdf_to_images.py +35 -0
- package/.claude/archive/skills/document-pdf/scripts/create_validation_image.py +41 -0
- package/.claude/archive/skills/document-pdf/scripts/extract_form_field_info.py +152 -0
- package/.claude/archive/skills/document-pdf/scripts/fill_fillable_fields.py +114 -0
- package/.claude/archive/skills/document-pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
- package/.claude/archive/skills/document-pptx/LICENSE.txt +30 -0
- package/.claude/archive/skills/document-pptx/SKILL.md +484 -0
- package/.claude/archive/skills/document-pptx/html2pptx.md +625 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/mce/mc.xsd +75 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/.claude/archive/skills/document-pptx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/.claude/archive/skills/document-pptx/ooxml/scripts/pack.py +159 -0
- package/.claude/archive/skills/document-pptx/ooxml/scripts/unpack.py +29 -0
- package/.claude/archive/skills/document-pptx/ooxml/scripts/validate.py +69 -0
- package/.claude/archive/skills/document-pptx/ooxml/scripts/validation/__init__.py +15 -0
- package/.claude/archive/skills/document-pptx/ooxml/scripts/validation/base.py +951 -0
- package/.claude/archive/skills/document-pptx/ooxml/scripts/validation/docx.py +274 -0
- package/.claude/archive/skills/document-pptx/ooxml/scripts/validation/pptx.py +315 -0
- package/.claude/archive/skills/document-pptx/ooxml/scripts/validation/redlining.py +279 -0
- package/.claude/archive/skills/document-pptx/ooxml.md +427 -0
- package/.claude/archive/skills/document-pptx/scripts/html2pptx.js +979 -0
- package/.claude/archive/skills/document-pptx/scripts/inventory.py +1020 -0
- package/.claude/archive/skills/document-pptx/scripts/rearrange.py +231 -0
- package/.claude/archive/skills/document-pptx/scripts/replace.py +385 -0
- package/.claude/archive/skills/document-pptx/scripts/thumbnail.py +450 -0
- package/.claude/archive/skills/document-xlsx/LICENSE.txt +30 -0
- package/.claude/archive/skills/document-xlsx/SKILL.md +289 -0
- package/.claude/archive/skills/document-xlsx/recalc.py +178 -0
- package/.claude/archive/skills/image-enhancer/SKILL.md +99 -0
- package/.claude/archive/skills/meeting-insights-analyzer/SKILL.md +327 -0
- package/.claude/archive/skills/slack-gif-creator/LICENSE.txt +202 -0
- package/.claude/archive/skills/slack-gif-creator/SKILL.md +646 -0
- package/.claude/archive/skills/slack-gif-creator/core/color_palettes.py +302 -0
- package/.claude/archive/skills/slack-gif-creator/core/easing.py +230 -0
- package/.claude/archive/skills/slack-gif-creator/core/frame_composer.py +469 -0
- package/.claude/archive/skills/slack-gif-creator/core/gif_builder.py +246 -0
- package/.claude/archive/skills/slack-gif-creator/core/typography.py +357 -0
- package/.claude/archive/skills/slack-gif-creator/core/validators.py +264 -0
- package/.claude/archive/skills/slack-gif-creator/core/visual_effects.py +494 -0
- package/.claude/archive/skills/slack-gif-creator/requirements.txt +4 -0
- package/.claude/archive/skills/slack-gif-creator/templates/bounce.py +106 -0
- package/.claude/archive/skills/slack-gif-creator/templates/explode.py +331 -0
- package/.claude/archive/skills/slack-gif-creator/templates/fade.py +329 -0
- package/.claude/archive/skills/slack-gif-creator/templates/flip.py +291 -0
- package/.claude/archive/skills/slack-gif-creator/templates/kaleidoscope.py +211 -0
- package/.claude/archive/skills/slack-gif-creator/templates/morph.py +329 -0
- package/.claude/archive/skills/slack-gif-creator/templates/move.py +293 -0
- package/.claude/archive/skills/slack-gif-creator/templates/pulse.py +268 -0
- package/.claude/archive/skills/slack-gif-creator/templates/shake.py +127 -0
- package/.claude/archive/skills/slack-gif-creator/templates/slide.py +291 -0
- package/.claude/archive/skills/slack-gif-creator/templates/spin.py +269 -0
- package/.claude/archive/skills/slack-gif-creator/templates/wiggle.py +300 -0
- package/.claude/archive/skills/slack-gif-creator/templates/zoom.py +312 -0
- package/.claude/archive/skills/twitter-algorithm-optimizer/SKILL.md +327 -0
- package/.claude/archive/skills/video-downloader/SKILL.md +99 -0
- package/.claude/archive/skills/video-downloader/scripts/download_video.py +145 -0
- package/.claude/bash-whitelist-requests/2026-05-28-grep-find-rg.md +68 -0
- package/.claude/bash-whitelist-requests/2026-06-01-readonly-filters.md +76 -0
- package/.claude/bash-whitelist.txt +124 -0
- package/.claude/commands/agent-introspect.md +89 -0
- package/.claude/commands/apply-rules.md +363 -0
- package/.claude/commands/approve-design.md +219 -0
- package/.claude/commands/approve-org-money.md +267 -0
- package/.claude/commands/build.md +234 -0
- package/.claude/commands/commit.md +97 -0
- package/.claude/commands/context-fetch.md +113 -0
- package/.claude/commands/create-tool.md +496 -0
- package/.claude/commands/design-review.md +138 -0
- package/.claude/commands/design.md +807 -0
- package/.claude/commands/discharge-byproduct.md +208 -0
- package/.claude/commands/doc-review.md +165 -0
- package/.claude/commands/document-pair.md +76 -0
- package/.claude/commands/error-triage.md +435 -0
- package/.claude/commands/eval.md +70 -0
- package/.claude/commands/evolve.md +49 -0
- package/.claude/commands/finish-task.md +105 -0
- package/.claude/commands/gan-build.md +91 -0
- package/.claude/commands/gan-design.md +82 -0
- package/.claude/commands/gate-bypass.md +77 -0
- package/.claude/commands/gate-clear.md +45 -0
- package/.claude/commands/gate-status.md +46 -0
- package/.claude/commands/harness-audit.md +151 -0
- package/.claude/commands/hearing.md +138 -0
- package/.claude/commands/impact-check.md +486 -0
- package/.claude/commands/init-tasks.md +49 -0
- package/.claude/commands/instinct-export.md +47 -0
- package/.claude/commands/instinct-import.md +41 -0
- package/.claude/commands/instinct-status.md +43 -0
- package/.claude/commands/investigate.md +547 -0
- package/.claude/commands/learn.md +55 -0
- package/.claude/commands/lint-rules.md +400 -0
- package/.claude/commands/mode.md +58 -0
- package/.claude/commands/modify-feature.md +209 -0
- package/.claude/commands/module-review.md +149 -0
- package/.claude/commands/move-section.md +67 -0
- package/.claude/commands/new-draft.md +67 -0
- package/.claude/commands/new-feature.md +286 -0
- package/.claude/commands/new-task.md +156 -0
- package/.claude/commands/notification.md +107 -0
- package/.claude/commands/pm-start.md +119 -0
- package/.claude/commands/projects.md +32 -0
- package/.claude/commands/promote.md +43 -0
- package/.claude/commands/rasis-report.md +1323 -0
- package/.claude/commands/release-note.md +130 -0
- package/.claude/commands/reply-watch.md +149 -0
- package/.claude/commands/requirement.md +352 -0
- package/.claude/commands/resume-state.md +187 -0
- package/.claude/commands/reviewpr.md +118 -0
- package/.claude/commands/save-state.md +100 -0
- package/.claude/commands/sentry-pr.md +157 -0
- package/.claude/commands/start-task.md +87 -0
- package/.claude/commands/system-review.md +147 -0
- package/.claude/commands/task-bypass.md +70 -0
- package/.claude/commands/task-estimate.md +100 -0
- package/.claude/commands/template-apply.md +89 -0
- package/.claude/commands/test-design.md +116 -0
- package/.claude/commands/transfer-mismatch.md +317 -0
- package/.claude/commands/verify.md +51 -0
- package/.claude/evals/grader-loop-mode-autonomy.sh +165 -0
- package/.claude/evals/grader-system-reminder-attention.sh +99 -0
- package/.claude/evals/loop-mode-autonomy.md +121 -0
- package/.claude/evals/loop-mode-autonomy.results.template.md +133 -0
- package/.claude/evals/system-reminder-attention.md +123 -0
- package/.claude/evals/system-reminder-attention.results.template.md +93 -0
- package/.claude/evals/system-reminder-attention.runner.md +353 -0
- package/.claude/harness-config.local.yml +48 -0
- package/.claude/harness-config.yml +534 -0
- package/.claude/hooks/agent-marker-clear.sh +43 -0
- package/.claude/hooks/agent-marker-set.sh +40 -0
- package/.claude/hooks/agent-router-suggest.sh +123 -0
- package/.claude/hooks/autonomous-action-guard.sh +242 -0
- package/.claude/hooks/byproduct-discharge-guard.sh +128 -0
- package/.claude/hooks/check-md-mermaid.sh +144 -0
- package/.claude/hooks/check-required-env.sh +95 -0
- package/.claude/hooks/check-serena-mcp.sh +123 -0
- package/.claude/hooks/confidence-gate.sh +139 -0
- package/.claude/hooks/context-budget.sh +233 -0
- package/.claude/hooks/delegation-guard.sh +99 -0
- package/.claude/hooks/dispatcher-manifest.tsv +38 -0
- package/.claude/hooks/draft-flow-guard.sh +304 -0
- package/.claude/hooks/failure-loop-detect.sh +139 -0
- package/.claude/hooks/gateguard.sh +209 -0
- package/.claude/hooks/improvement-proposal.sh +112 -0
- package/.claude/hooks/init-tasks-on-start.sh +34 -0
- package/.claude/hooks/lib/bypass-logger.sh +82 -0
- package/.claude/hooks/lib/confidence-gate/bypass.sh +48 -0
- package/.claude/hooks/lib/confidence-gate/extract.sh +99 -0
- package/.claude/hooks/lib/confidence-gate/major-agent-filter.sh +59 -0
- package/.claude/hooks/lib/confidence-gate/messages.sh +53 -0
- package/.claude/hooks/lib/config-loader.sh +784 -0
- package/.claude/hooks/lib/delegation-guard/bash-whitelist.sh +323 -0
- package/.claude/hooks/lib/delegation-guard/git-deny.sh +188 -0
- package/.claude/hooks/lib/delegation-guard/protected-paths.sh +105 -0
- package/.claude/hooks/lib/delegation-guard/subagent-detect.sh +40 -0
- package/.claude/hooks/lib/dispatcher-core.sh +454 -0
- package/.claude/hooks/lib/improvement-proposal/aggregate.py +466 -0
- package/.claude/hooks/lib/improvement-proposal/cache.sh +78 -0
- package/.claude/hooks/lib/mode-loader.sh +80 -0
- package/.claude/hooks/lib/next-actions-parser.sh +153 -0
- package/.claude/hooks/lib/project-root.sh +60 -0
- package/.claude/hooks/list-md-plan-first-reminder.sh +143 -0
- package/.claude/hooks/loop-auto-progress-reminder.sh +108 -0
- package/.claude/hooks/loop-confirmation-detector.sh +241 -0
- package/.claude/hooks/mode-asana-prompt.sh +61 -0
- package/.claude/hooks/mode-enforce.sh +57 -0
- package/.claude/hooks/mode-session-start.sh +93 -0
- package/.claude/hooks/next-actions-surface.sh +136 -0
- package/.claude/hooks/notification-dispatcher.sh +9 -0
- package/.claude/hooks/notify.sh +27 -0
- package/.claude/hooks/parallel-subagent-reminder.sh +469 -0
- package/.claude/hooks/post-tool-use-dispatcher.sh +9 -0
- package/.claude/hooks/pre-tool-use-dispatcher.sh +9 -0
- package/.claude/hooks/reviewer-count-guard.sh +313 -0
- package/.claude/hooks/session-help-surface.sh +192 -0
- package/.claude/hooks/session-start-dispatcher.sh +9 -0
- package/.claude/hooks/session-start-wrapper.sh +156 -0
- package/.claude/hooks/stale-harness-detect.sh +422 -0
- package/.claude/hooks/stop-dispatcher.sh +9 -0
- package/.claude/hooks/stop.sh +25 -0
- package/.claude/hooks/subagent-stop-dispatcher.sh +9 -0
- package/.claude/hooks/task-rule-guard.sh +317 -0
- package/.claude/hooks/tests/run-tests.sh +23 -0
- package/.claude/hooks/tests/test-agent-marker-warn.sh +86 -0
- package/.claude/hooks/tests/test-check-required-env.sh +138 -0
- package/.claude/hooks/tests/test-confidence-gate.sh +170 -0
- package/.claude/hooks/tests/test-config-env-override.sh +220 -0
- package/.claude/hooks/tests/test-gate-disable.sh +118 -0
- package/.claude/hooks/tests/test-improvement-proposal.sh +284 -0
- package/.claude/hooks/tool-call-slip-detector.sh +188 -0
- package/.claude/hooks/user-prompt-submit-dispatcher.sh +9 -0
- package/.claude/hooks/why-x5-reminder.sh +45 -0
- package/.claude/hooks/why-x5-violation-detect.sh +152 -0
- package/.claude/hooks/workflow-guard.sh +263 -0
- package/.claude/mode.yml +28 -0
- package/.claude/project-rules/development-process.md +8 -0
- package/.claude/project-rules/git-workflow.md +8 -0
- package/.claude/project-rules/modes.md +8 -0
- package/.claude/project-rules/self-improvement.md +8 -0
- package/.claude/project-rules/task-management.md +8 -0
- package/.claude/project-rules/why-x5-output.md +8 -0
- package/.claude/project-rules/workflow.md +8 -0
- package/.claude/rules/development-process.md +293 -0
- package/.claude/rules/git-workflow.md +71 -0
- package/.claude/rules/modes.md +189 -0
- package/.claude/rules/self-improvement.md +76 -0
- package/.claude/rules/task-management.md +261 -0
- package/.claude/rules/why-x5-output.md +97 -0
- package/.claude/rules/workflow.md +157 -0
- package/.claude/rules-details/README.md +67 -0
- package/.claude/rules-details/development-process/confidence-gate.md +22 -0
- package/.claude/rules-details/development-process/cross-repo-write.md +35 -0
- package/.claude/rules-details/development-process/delegation-requirements.md +158 -0
- package/.claude/rules-details/development-process/harness-sync.md +21 -0
- package/.claude/rules-details/development-process/origin.md +13 -0
- package/.claude/rules-details/development-process/parallelization-origin.md +22 -0
- package/.claude/rules-details/development-process/research-reuse.md +22 -0
- package/.claude/rules-details/development-process/staging-strategy.md +47 -0
- package/.claude/rules-details/modes/artifacts.md +34 -0
- package/.claude/rules-details/modes/compliance-items.md +120 -0
- package/.claude/rules-details/modes/five-layer-enforcement.md +46 -0
- package/.claude/rules-details/modes/mode-hooks.md +51 -0
- package/.claude/rules-details/modes/origin.md +17 -0
- package/.claude/rules-details/self-improvement/l4-mechanics.md +36 -0
- package/.claude/rules-details/self-improvement/origin.md +8 -0
- package/.claude/rules-details/self-improvement/related-skills.md +35 -0
- package/.claude/rules-details/self-improvement/when-to-use-layers.md +39 -0
- package/.claude/rules-details/task-management/hook-enforcement.md +25 -0
- package/.claude/rules-details/task-management/mandatory-reading.md +20 -0
- package/.claude/rules-details/task-management/origin.md +12 -0
- package/.claude/rules-details/task-management/parking-lot.md +26 -0
- package/.claude/rules-details/task-management/plan-first.md +44 -0
- package/.claude/rules-details/task-management/six-articles.md +68 -0
- package/.claude/rules-details/task-management/task-migration.md +16 -0
- package/.claude/rules-details/task-management/ui-detection.md +11 -0
- package/.claude/rules-details/why-x5-output/examples.md +41 -0
- package/.claude/rules-details/why-x5-output/feedback-memory.md +14 -0
- package/.claude/rules-details/why-x5-output/origin.md +10 -0
- package/.claude/rules-details/why-x5-output/v1-v10-history.md +19 -0
- package/.claude/rules-details/workflow/10-stage.md +43 -0
- package/.claude/rules-details/workflow/14-stage.md +52 -0
- package/.claude/rules-details/workflow/byproduct-discharge.md +39 -0
- package/.claude/rules-details/workflow/draft-flow-guard.md +31 -0
- package/.claude/rules-details/workflow/fan-out.md +70 -0
- package/.claude/rules-details/workflow/mece-20.md +36 -0
- package/.claude/rules-details/workflow/origin.md +14 -0
- package/.claude/rules-details/workflow/refactoring.md +48 -0
- package/.claude/rules-details/workflow/related-skills.md +22 -0
- package/.claude/rules-details/workflow/reviewer-prompt.md +100 -0
- package/.claude/rules-details/workflow/session-persistence.md +46 -0
- package/.claude/rules-details/workflow/workflow-guard.md +36 -0
- package/.claude/scripts/__pycache__/harness-audit.cpython-313.pyc +0 -0
- package/.claude/scripts/agent-stocktake.py +421 -0
- package/.claude/scripts/check-md-mermaid.mjs +138 -0
- package/.claude/scripts/generate-settings.sh +0 -0
- package/.claude/scripts/harness-audit.py +1547 -0
- package/.claude/scripts/hc-config.sh +2265 -0
- package/.claude/scripts/init-tasks.sh +117 -0
- package/.claude/scripts/lib/enforcement-matrix-parse.sh +81 -0
- package/.claude/scripts/lib/hc-config-metadata.sh +190 -0
- package/.claude/scripts/lib/hc-config-web-server.js +1528 -0
- package/.claude/scripts/lib/hc-config-web-ui/app.js +1054 -0
- package/.claude/scripts/lib/hc-config-web-ui/index.html +130 -0
- package/.claude/scripts/lib/hc-config-web-ui/style.css +522 -0
- package/.claude/scripts/new-task-helper.sh +432 -0
- package/.claude/scripts/observe-repair.sh +437 -0
- package/.claude/scripts/observe-rotate.sh +311 -0
- package/.claude/scripts/statusline.sh +239 -0
- package/.claude/settings.generated.preview.json +211 -0
- package/.claude/settings.json +215 -0
- package/.claude/settings.local.example.json +20 -0
- package/.claude/settings.local.json +36 -0
- package/.claude/skills/agent-introspection-debugging/SKILL.md +123 -0
- package/.claude/skills/agent-router/README.md +137 -0
- package/.claude/skills/agent-router/SKILL.md +74 -0
- package/.claude/skills/agent-router/dispatch-table.yml +352 -0
- package/.claude/skills/agent-router/router.py +1086 -0
- package/.claude/skills/agent-router/samples/representative_prompts.txt +24 -0
- package/.claude/skills/agent-router/tests/__init__.py +0 -0
- package/.claude/skills/agent-router/tests/test_router.py +762 -0
- package/.claude/skills/artifacts-builder/LICENSE.txt +202 -0
- package/.claude/skills/artifacts-builder/SKILL.md +74 -0
- package/.claude/skills/artifacts-builder/scripts/bundle-artifact.sh +54 -0
- package/.claude/skills/artifacts-builder/scripts/init-artifact.sh +322 -0
- package/.claude/skills/artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
- package/.claude/skills/brand-guidelines/LICENSE.txt +202 -0
- package/.claude/skills/brand-guidelines/SKILL.md +73 -0
- package/.claude/skills/canvas-design/LICENSE.txt +202 -0
- package/.claude/skills/canvas-design/SKILL.md +130 -0
- package/.claude/skills/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/.claude/skills/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/.claude/skills/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/.claude/skills/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/.claude/skills/changelog-generator/SKILL.md +104 -0
- package/.claude/skills/check-md-mermaid/SKILL.md +62 -0
- package/.claude/skills/connect/SKILL.md +156 -0
- package/.claude/skills/connect-apps/SKILL.md +80 -0
- package/.claude/skills/content-research-writer/SKILL.md +538 -0
- package/.claude/skills/continuous-agent-loop/SKILL.md +187 -0
- package/.claude/skills/continuous-learning-v2/SKILL.md +238 -0
- package/.claude/skills/continuous-learning-v2/config.json +35 -0
- package/.claude/skills/continuous-learning-v2/hooks/observe.sh +333 -0
- package/.claude/skills/continuous-learning-v2/instinct-cli.py +406 -0
- package/.claude/skills/domain-name-brainstormer/SKILL.md +212 -0
- package/.claude/skills/eval-harness/SKILL.md +100 -0
- package/.claude/skills/eval-harness/swe-bench/README.md +80 -0
- package/.claude/skills/eval-harness/swe-bench/config.yml +29 -0
- package/.claude/skills/eval-harness/swe-bench/docker/Dockerfile +25 -0
- package/.claude/skills/eval-harness/swe-bench/docker/docker-compose.yml +18 -0
- package/.claude/skills/eval-harness/swe-bench/results/dry-run-2026-05-04.json +137 -0
- package/.claude/skills/eval-harness/swe-bench/results/dry-run-comparison-2026-05-04.md +112 -0
- package/.claude/skills/eval-harness/swe-bench/results/dry-run-improved-2026-05-04.json +165 -0
- package/.claude/skills/eval-harness/swe-bench/results/raw/astropy__astropy-12907.patch +12 -0
- package/.claude/skills/eval-harness/swe-bench/results/raw/astropy__astropy-12907.txt +322 -0
- package/.claude/skills/eval-harness/swe-bench/results/raw/astropy__astropy-12907.whole-file.txt +322 -0
- package/.claude/skills/eval-harness/swe-bench/runner.py +845 -0
- package/.claude/skills/eval-harness/swe-bench/scoring.py +298 -0
- package/.claude/skills/eval-harness/swe-bench/tasks/fetch_tasks.py +81 -0
- package/.claude/skills/eval-harness/swe-bench/tasks/lite-50.json +702 -0
- package/.claude/skills/file-organizer/SKILL.md +433 -0
- package/.claude/skills/gan-style-harness/SKILL.md +111 -0
- package/.claude/skills/gateguard/.gateguard.yml +47 -0
- package/.claude/skills/gateguard/SKILL.md +99 -0
- package/.claude/skills/internal-comms/LICENSE.txt +202 -0
- package/.claude/skills/internal-comms/SKILL.md +32 -0
- package/.claude/skills/internal-comms/examples/3p-updates.md +47 -0
- package/.claude/skills/internal-comms/examples/company-newsletter.md +65 -0
- package/.claude/skills/internal-comms/examples/faq-answers.md +30 -0
- package/.claude/skills/internal-comms/examples/general-comms.md +16 -0
- package/.claude/skills/invoice-organizer/SKILL.md +446 -0
- package/.claude/skills/karpathy-guidelines/SKILL.md +67 -0
- package/.claude/skills/langsmith-fetch/SKILL.md +485 -0
- package/.claude/skills/lead-research-assistant/SKILL.md +199 -0
- package/.claude/skills/mcp-builder/LICENSE.txt +202 -0
- package/.claude/skills/mcp-builder/SKILL.md +328 -0
- package/.claude/skills/mcp-builder/reference/evaluation.md +602 -0
- package/.claude/skills/mcp-builder/reference/mcp_best_practices.md +915 -0
- package/.claude/skills/mcp-builder/reference/node_mcp_server.md +916 -0
- package/.claude/skills/mcp-builder/reference/python_mcp_server.md +752 -0
- package/.claude/skills/mcp-builder/scripts/connections.py +151 -0
- package/.claude/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/.claude/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/.claude/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/.claude/skills/raffle-winner-picker/SKILL.md +159 -0
- package/.claude/skills/repo-map/README.md +125 -0
- package/.claude/skills/repo-map/SKILL.md +128 -0
- package/.claude/skills/repo-map/examples/sample-output.md +1194 -0
- package/.claude/skills/repo-map/repo-map.py +715 -0
- package/.claude/skills/salesforce-e2e-testing/SKILL.md +116 -0
- package/.claude/skills/salesforce-e2e-testing/catalog-template.md +161 -0
- package/.claude/skills/salesforce-e2e-testing/methodology.md +179 -0
- package/.claude/skills/salesforce-e2e-testing/observation-rules.md +280 -0
- package/.claude/skills/salesforce-e2e-testing/pattern-taxonomy.md +392 -0
- package/.claude/skills/salesforce-e2e-testing/procedure-template.md +376 -0
- package/.claude/skills/skill-creator/LICENSE.txt +202 -0
- package/.claude/skills/skill-creator/SKILL.md +209 -0
- package/.claude/skills/skill-creator/scripts/init_skill.py +303 -0
- package/.claude/skills/skill-creator/scripts/package_skill.py +110 -0
- package/.claude/skills/skill-creator/scripts/quick_validate.py +65 -0
- package/.claude/skills/skill-share/SKILL.md +80 -0
- package/.claude/skills/tailored-resume-generator/SKILL.md +345 -0
- package/.claude/skills/template-skill/SKILL.md +6 -0
- package/.claude/skills/theme-factory/LICENSE.txt +202 -0
- package/.claude/skills/theme-factory/SKILL.md +59 -0
- package/.claude/skills/theme-factory/theme-showcase.pdf +0 -0
- package/.claude/skills/theme-factory/themes/arctic-frost.md +19 -0
- package/.claude/skills/theme-factory/themes/botanical-garden.md +19 -0
- package/.claude/skills/theme-factory/themes/desert-rose.md +19 -0
- package/.claude/skills/theme-factory/themes/forest-canopy.md +19 -0
- package/.claude/skills/theme-factory/themes/golden-hour.md +19 -0
- package/.claude/skills/theme-factory/themes/midnight-galaxy.md +19 -0
- package/.claude/skills/theme-factory/themes/modern-minimalist.md +19 -0
- package/.claude/skills/theme-factory/themes/ocean-depths.md +19 -0
- package/.claude/skills/theme-factory/themes/sunset-boulevard.md +19 -0
- package/.claude/skills/theme-factory/themes/tech-innovation.md +19 -0
- package/.claude/skills/verification-loop/SKILL.md +129 -0
- package/.claude/skills/webapp-testing/LICENSE.txt +202 -0
- package/.claude/skills/webapp-testing/SKILL.md +96 -0
- package/.claude/skills/webapp-testing/examples/console_logging.py +35 -0
- package/.claude/skills/webapp-testing/examples/element_discovery.py +40 -0
- package/.claude/skills/webapp-testing/examples/static_html_automation.py +33 -0
- package/.claude/skills/webapp-testing/scripts/with_server.py +106 -0
- package/.claude/templates/docs/draft/_DRAFT_TEMPLATE.md +162 -0
- package/.claude/templates/docs/draft/_TEST_DESIGN_TEMPLATE.md +76 -0
- package/.claude/templates/docs/tasks/_TASK_TEMPLATE.md +276 -0
- package/.claude/templates/docs/tasks/list.md +80 -0
- package/.claude/templates/docs/tasks/parking-lot.md +82 -0
- package/.claude/templates/settings.user-level.json.template +306 -0
- package/.claude/tests/SMOKE-CLASSIFICATION.md +199 -0
- package/.claude/tests/action-space-count-smoke.sh +130 -0
- package/.claude/tests/agent-router-suggest-wiring-smoke.sh +188 -0
- package/.claude/tests/audit-followups-smoke.sh +158 -0
- package/.claude/tests/autonomous-action-guard-relaxation-smoke.sh +479 -0
- package/.claude/tests/autonomous-action-guard-smoke.sh +187 -0
- package/.claude/tests/check-serena-mcp-smoke.sh +156 -0
- package/.claude/tests/common-rules-import-smoke.sh +209 -0
- package/.claude/tests/confidence-gate-smoke.sh +220 -0
- package/.claude/tests/config-feature-toggles-smoke.sh +389 -0
- package/.claude/tests/context-budget-smoke.sh +222 -0
- package/.claude/tests/custom-pm-commands-smoke.sh +93 -0
- package/.claude/tests/delegation-guard-code-smoke.sh +244 -0
- package/.claude/tests/delegation-guard-deny-layers-smoke.sh +356 -0
- package/.claude/tests/delegation-guard-readonly-filter-smoke.sh +205 -0
- package/.claude/tests/delegation-guard-search-whitelist-smoke.sh +152 -0
- package/.claude/tests/delegation-guard-segment-smoke.sh +109 -0
- package/.claude/tests/dispatcher-blocker-invariance-smoke.sh +700 -0
- package/.claude/tests/dispatcher-core-smoke.sh +452 -0
- package/.claude/tests/dispatcher-merge-matrix-smoke.sh +825 -0
- package/.claude/tests/dispatcher-success-stdout-smoke.sh +290 -0
- package/.claude/tests/draft-flow-guard-approved-dir-smoke.sh +234 -0
- package/.claude/tests/draft-flow-guard-smoke.sh +194 -0
- package/.claude/tests/dual-mode-portability-smoke.sh +131 -0
- package/.claude/tests/effective-hook-matrix-smoke.sh +261 -0
- package/.claude/tests/enforcement-mismatch-smoke.sh +263 -0
- package/.claude/tests/fixtures/cascade-sample.jsonl +9 -0
- package/.claude/tests/fixtures/next-actions/case-clean.md +14 -0
- package/.claude/tests/fixtures/next-actions/case-with-red.md +16 -0
- package/.claude/tests/fixtures/next-actions/case-with-yellow-only.md +14 -0
- package/.claude/tests/fixtures/normal-broken-scatter.jsonl +5 -0
- package/.claude/tests/fixtures/task-71/blocker-baseline.tsv +24 -0
- package/.claude/tests/fixtures/task-71/settings-inventory.tsv +37 -0
- package/.claude/tests/fixtures/transcript-50pct.jsonl +2 -0
- package/.claude/tests/fixtures/transcript-60pct.jsonl +2 -0
- package/.claude/tests/fixtures/transcript-80pct.jsonl +2 -0
- package/.claude/tests/fixtures/transcript-95pct.jsonl +2 -0
- package/.claude/tests/fixtures/workflow-guard/case-2-mid.json +21 -0
- package/.claude/tests/fixtures/workflow-guard/case-3-blocked.json +33 -0
- package/.claude/tests/fixtures/workflow-guard/case-4-clean.json +27 -0
- package/.claude/tests/fixtures/workflow-guard/case-8-modify.json +23 -0
- package/.claude/tests/fixtures/workflow-guard/inputs/case-1.json +1 -0
- package/.claude/tests/fixtures/workflow-guard/inputs/case-2.json +1 -0
- package/.claude/tests/fixtures/workflow-guard/inputs/case-3.json +1 -0
- package/.claude/tests/fixtures/workflow-guard/inputs/case-4.json +1 -0
- package/.claude/tests/fixtures/workflow-guard/inputs/case-5.json +1 -0
- package/.claude/tests/fixtures/workflow-guard/inputs/case-6.json +1 -0
- package/.claude/tests/fixtures/workflow-guard/inputs/case-7.json +1 -0
- package/.claude/tests/fixtures/workflow-guard/inputs/case-8.json +1 -0
- package/.claude/tests/gateguard-smoke.sh +213 -0
- package/.claude/tests/git-deny-mainline-policy-smoke.sh +222 -0
- package/.claude/tests/harness-audit-c-batch-smoke.sh +270 -0
- package/.claude/tests/harness-audit-compare-smoke.sh +186 -0
- package/.claude/tests/harness-audit-pipeline-health-smoke.sh +326 -0
- package/.claude/tests/harness-config-local-smoke.sh +232 -0
- package/.claude/tests/hc-config-git-policy-smoke.sh +241 -0
- package/.claude/tests/hc-config-key-parity-smoke.sh +149 -0
- package/.claude/tests/hc-config-migration-smoke.sh +251 -0
- package/.claude/tests/hc-config-script-smoke.sh +1106 -0
- package/.claude/tests/hc-config-tui-smoke.sh +801 -0
- package/.claude/tests/hc-config-web-ui-smoke.sh +3224 -0
- package/.claude/tests/hook-cwd-robustness-smoke.sh +206 -0
- package/.claude/tests/hook-frequency-tweaks-smoke.sh +312 -0
- package/.claude/tests/improvement-proposal-cache-smoke.sh +238 -0
- package/.claude/tests/install-sh-overwrite-all-smoke.sh +274 -0
- package/.claude/tests/install-sh-regen-settings-smoke.sh +301 -0
- package/.claude/tests/install-sh-sync-drift-smoke.sh +285 -0
- package/.claude/tests/layer-b-context-isolation-smoke.sh +392 -0
- package/.claude/tests/list-md-plan-first-reminder-smoke.sh +313 -0
- package/.claude/tests/loop-auto-progress-smoke.sh +372 -0
- package/.claude/tests/loop-confirmation-detector-smoke.sh +674 -0
- package/.claude/tests/new-task-batch-update-smoke.sh +664 -0
- package/.claude/tests/next-actions-hooks-smoke.sh +283 -0
- package/.claude/tests/npx-cli-smoke.sh +696 -0
- package/.claude/tests/observe-flock-smoke.sh +223 -0
- package/.claude/tests/observe-jq-parse-smoke.sh +250 -0
- package/.claude/tests/observe-repair-smoke.sh +475 -0
- package/.claude/tests/observe-rotate-smoke.sh +428 -0
- package/.claude/tests/observe-subagent-stop-smoke.sh +476 -0
- package/.claude/tests/parallel-subagent-reminder-smoke.sh +918 -0
- package/.claude/tests/project-root-smoke.sh +140 -0
- package/.claude/tests/project-rules-protection-smoke.sh +199 -0
- package/.claude/tests/review-required-min-count-smoke.sh +286 -0
- package/.claude/tests/reviewer-count-guard-smoke.sh +490 -0
- package/.claude/tests/rule-architecture-smoke.sh +418 -0
- package/.claude/tests/rule-change-draft-flow-guard-smoke.sh +343 -0
- package/.claude/tests/run-all-smokes.sh +340 -0
- package/.claude/tests/session-help-surface-smoke.sh +224 -0
- package/.claude/tests/session-start-parallel-smoke.sh +165 -0
- package/.claude/tests/sessionstart-budget-smoke.sh +185 -0
- package/.claude/tests/sessionstart-footprint-smoke.sh +258 -0
- package/.claude/tests/settings-dispatcher-baseline-smoke.sh +709 -0
- package/.claude/tests/settings-generation-feature-pruning-smoke.sh +196 -0
- package/.claude/tests/stale-harness-detect-smoke.sh +974 -0
- package/.claude/tests/statusline-smoke.sh +180 -0
- package/.claude/tests/task-rule-guard-smoke.sh +656 -0
- package/.claude/tests/tool-call-slip-detector-smoke.sh +101 -0
- package/.claude/tests/wave-precheck-template-smoke.sh +159 -0
- package/.claude/tests/why-x5-violation-detect-smoke.sh +157 -0
- package/.claude/tests/workflow-guard-smoke.sh +266 -0
- package/CLAUDE.md +75 -0
- package/LICENSE +21 -0
- package/README.md +790 -0
- package/bin/cli.js +395 -0
- package/docs/INVENTORY.md +163 -0
- package/install.sh +769 -0
- package/package.json +25 -0
package/bin/cli.js
ADDED
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
// hirai-method npx CLI — entry point.
|
|
5
|
+
// 外部依存ゼロ (Node 標準のみ)。install.sh をラップし、registry version 比較 (check) を行う。
|
|
6
|
+
//
|
|
7
|
+
// Subcommands:
|
|
8
|
+
// check — npm registry の最新版とローカル版を比較 (fail-open)
|
|
9
|
+
// install <dir> — install.sh <dir> を実行 (初回 install)
|
|
10
|
+
// update <dir> — install.sh --update <dir> を実行 (増分更新)
|
|
11
|
+
// --version / -v — ローカル version を出力
|
|
12
|
+
// --help / -h — usage を出力
|
|
13
|
+
|
|
14
|
+
const path = require('path');
|
|
15
|
+
const fs = require('fs');
|
|
16
|
+
const { spawnSync } = require('child_process');
|
|
17
|
+
|
|
18
|
+
// ------------------------------------------------------------
|
|
19
|
+
// 定数 / package root 解決
|
|
20
|
+
// ------------------------------------------------------------
|
|
21
|
+
const PACKAGE_ROOT = path.join(__dirname, '..');
|
|
22
|
+
// install.sh path: env override 可 (test 用)。default は同梱 install.sh で本番挙動不変。
|
|
23
|
+
const INSTALL_SH =
|
|
24
|
+
process.env.HIRAI_METHOD_INSTALL_SH || path.join(PACKAGE_ROOT, 'install.sh');
|
|
25
|
+
const PKG_JSON_PATH = path.join(PACKAGE_ROOT, 'package.json');
|
|
26
|
+
const REGISTRY_TIMEOUT_MS = 5000;
|
|
27
|
+
const DEFAULT_PKG_NAME = '@takuma-hirai/hirai-method';
|
|
28
|
+
// registry base: env override 可 (test 用)。default は npm registry で本番挙動不変。
|
|
29
|
+
const REGISTRY_BASE =
|
|
30
|
+
process.env.HIRAI_METHOD_REGISTRY_BASE || 'https://registry.npmjs.org';
|
|
31
|
+
// check の registry response body のサイズ上限 (DoS / 暴走防止、超過で fail-open)
|
|
32
|
+
const MAX_BODY_BYTES = 1024 * 1024;
|
|
33
|
+
|
|
34
|
+
// install.sh へ透過する flag (allowlist)
|
|
35
|
+
const PASSTHROUGH_FLAGS = new Set([
|
|
36
|
+
'--force',
|
|
37
|
+
'--overwrite-all',
|
|
38
|
+
'--no-mcp',
|
|
39
|
+
'--no-docs',
|
|
40
|
+
]);
|
|
41
|
+
|
|
42
|
+
// ------------------------------------------------------------
|
|
43
|
+
// package.json 読み出し (require cache により実 I/O は初回のみ)
|
|
44
|
+
// ------------------------------------------------------------
|
|
45
|
+
function readPkg() {
|
|
46
|
+
try {
|
|
47
|
+
return require(PKG_JSON_PATH);
|
|
48
|
+
} catch (err) {
|
|
49
|
+
return {};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function localVersion() {
|
|
54
|
+
const pkg = readPkg();
|
|
55
|
+
return typeof pkg.version === 'string' && pkg.version.length > 0
|
|
56
|
+
? pkg.version
|
|
57
|
+
: null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function packageName() {
|
|
61
|
+
const pkg = readPkg();
|
|
62
|
+
return typeof pkg.name === 'string' && pkg.name.length > 0
|
|
63
|
+
? pkg.name
|
|
64
|
+
: DEFAULT_PKG_NAME;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// ------------------------------------------------------------
|
|
68
|
+
// usage / help
|
|
69
|
+
// ------------------------------------------------------------
|
|
70
|
+
function usage() {
|
|
71
|
+
const name = packageName();
|
|
72
|
+
return [
|
|
73
|
+
`${name} — Claude Code harness (HIRAI method) distributor`,
|
|
74
|
+
'',
|
|
75
|
+
'Usage:',
|
|
76
|
+
` npx ${name} check registry 最新版とローカル版を比較`,
|
|
77
|
+
` npx ${name} install <dir> <dir> に harness を新規 install`,
|
|
78
|
+
` npx ${name} update <dir> <dir> の harness を増分更新 (install.sh --update)`,
|
|
79
|
+
` npx ${name} --version ローカル version を出力`,
|
|
80
|
+
` npx ${name} --help この usage を出力`,
|
|
81
|
+
'',
|
|
82
|
+
'Flags (install / update に透過):',
|
|
83
|
+
' --force 既存 .claude / CLAUDE.md を backup せず上書き',
|
|
84
|
+
' --overwrite-all drift した target を SSoT へ強制リセット (settings.local.json のみ温存)',
|
|
85
|
+
' --no-mcp .mcp.json を配置しない',
|
|
86
|
+
' --no-docs docs templates 配置を skip',
|
|
87
|
+
'',
|
|
88
|
+
'Note: npx 配布は Unix 系 (bash + rsync) 前提です (Windows 非対応)。',
|
|
89
|
+
].join('\n');
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function printUsage(stream) {
|
|
93
|
+
(stream || process.stdout).write(usage() + '\n');
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// ------------------------------------------------------------
|
|
97
|
+
// semver 簡易比較 (依存追加禁止のため自前)
|
|
98
|
+
// 戻り値: a > b → 1 / a < b → -1 / a == b → 0
|
|
99
|
+
// prerelease / build metadata は無視 (major.minor.patch のみ)
|
|
100
|
+
// ------------------------------------------------------------
|
|
101
|
+
function parseSemver(v) {
|
|
102
|
+
if (typeof v !== 'string') return null;
|
|
103
|
+
const core = v.trim().replace(/^v/, '').split('+')[0].split('-')[0];
|
|
104
|
+
const parts = core.split('.');
|
|
105
|
+
// major.minor.patch を超える segment 数は不正 (例: "1.2.3.4")
|
|
106
|
+
if (parts.length < 1 || parts.length > 3) return null;
|
|
107
|
+
const nums = [];
|
|
108
|
+
for (let i = 0; i < 3; i++) {
|
|
109
|
+
const seg = parts[i];
|
|
110
|
+
// undefined (segment 不足) は 0 補完 ("1.2" → [1,2,0])
|
|
111
|
+
if (seg === undefined) {
|
|
112
|
+
nums.push(0);
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
// 非空かつ純数字でない segment は不正 (例: "2.x.0" の "x")
|
|
116
|
+
if (!/^\d+$/.test(seg)) return null;
|
|
117
|
+
nums.push(parseInt(seg, 10));
|
|
118
|
+
}
|
|
119
|
+
return nums;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function compareSemver(a, b) {
|
|
123
|
+
const pa = parseSemver(a);
|
|
124
|
+
const pb = parseSemver(b);
|
|
125
|
+
if (!pa || !pb) return null;
|
|
126
|
+
for (let i = 0; i < 3; i++) {
|
|
127
|
+
if (pa[i] > pb[i]) return 1;
|
|
128
|
+
if (pa[i] < pb[i]) return -1;
|
|
129
|
+
}
|
|
130
|
+
return 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// ------------------------------------------------------------
|
|
134
|
+
// 環境チェック: bash / rsync
|
|
135
|
+
// ------------------------------------------------------------
|
|
136
|
+
function hasCommand(cmd) {
|
|
137
|
+
// cmd を script 本体に埋め込まず positional 引数 ($1) で渡し shell 展開を回避
|
|
138
|
+
const r = spawnSync('bash', ['-c', 'command -v "$1"', '--', cmd], {
|
|
139
|
+
stdio: 'ignore',
|
|
140
|
+
});
|
|
141
|
+
return r.status === 0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
function ensureUnixToolchain() {
|
|
145
|
+
const missing = [];
|
|
146
|
+
// bash 自体が無いと spawnSync('bash', ...) も失敗するので個別判定
|
|
147
|
+
const bashCheck = spawnSync('bash', ['-c', 'exit 0'], { stdio: 'ignore' });
|
|
148
|
+
if (bashCheck.error || bashCheck.status !== 0) {
|
|
149
|
+
missing.push('bash');
|
|
150
|
+
}
|
|
151
|
+
if (missing.length === 0 && !hasCommand('rsync')) {
|
|
152
|
+
missing.push('rsync');
|
|
153
|
+
}
|
|
154
|
+
if (missing.length > 0) {
|
|
155
|
+
process.stderr.write(
|
|
156
|
+
`[hirai-method] error: 必須コマンドが見つかりません: ${missing.join(', ')}\n` +
|
|
157
|
+
'[hirai-method] npx 配布は Unix 系 (bash + rsync) 前提です。\n' +
|
|
158
|
+
'[hirai-method] macOS: brew install rsync / Debian: apt install rsync\n',
|
|
159
|
+
);
|
|
160
|
+
return false;
|
|
161
|
+
}
|
|
162
|
+
return true;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// ------------------------------------------------------------
|
|
166
|
+
// check: registry 最新版を fetch して比較
|
|
167
|
+
// ------------------------------------------------------------
|
|
168
|
+
function fetchLatestVersion(pkgName) {
|
|
169
|
+
return new Promise((resolve) => {
|
|
170
|
+
// scoped name の "/" を %2F に encode
|
|
171
|
+
const encoded = pkgName.replace('/', '%2F');
|
|
172
|
+
const url = `${REGISTRY_BASE}/${encoded}/latest`;
|
|
173
|
+
// URL scheme で http / https module を選択 (test 用 http server 対応)
|
|
174
|
+
const httpLib = url.startsWith('http://') ? require('http') : require('https');
|
|
175
|
+
let settled = false;
|
|
176
|
+
const finish = (result) => {
|
|
177
|
+
if (settled) return;
|
|
178
|
+
settled = true;
|
|
179
|
+
resolve(result);
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
const req = httpLib.get(url, { timeout: REGISTRY_TIMEOUT_MS }, (res) => {
|
|
183
|
+
if (res.statusCode !== 200) {
|
|
184
|
+
res.resume(); // drain
|
|
185
|
+
finish({ ok: false, reason: `HTTP ${res.statusCode}` });
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
let body = '';
|
|
189
|
+
let bytes = 0;
|
|
190
|
+
res.setEncoding('utf8');
|
|
191
|
+
res.on('data', (chunk) => {
|
|
192
|
+
bytes += Buffer.byteLength(chunk, 'utf8');
|
|
193
|
+
if (bytes > MAX_BODY_BYTES) {
|
|
194
|
+
res.destroy();
|
|
195
|
+
finish({ ok: false, reason: `response body too large (> ${MAX_BODY_BYTES} bytes)` });
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
body += chunk;
|
|
199
|
+
});
|
|
200
|
+
res.on('end', () => {
|
|
201
|
+
try {
|
|
202
|
+
const json = JSON.parse(body);
|
|
203
|
+
if (typeof json.version === 'string') {
|
|
204
|
+
finish({ ok: true, version: json.version });
|
|
205
|
+
} else {
|
|
206
|
+
finish({ ok: false, reason: 'no .version in response' });
|
|
207
|
+
}
|
|
208
|
+
} catch (e) {
|
|
209
|
+
finish({ ok: false, reason: `parse error: ${e.message}` });
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
req.on('timeout', () => {
|
|
215
|
+
req.destroy();
|
|
216
|
+
finish({ ok: false, reason: `timeout (${REGISTRY_TIMEOUT_MS}ms)` });
|
|
217
|
+
});
|
|
218
|
+
req.on('error', (e) => {
|
|
219
|
+
finish({ ok: false, reason: e.message });
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
async function cmdCheck() {
|
|
225
|
+
const name = packageName();
|
|
226
|
+
const local = localVersion();
|
|
227
|
+
const result = await fetchLatestVersion(name);
|
|
228
|
+
|
|
229
|
+
// network fail / timeout / non-200 → fail-open (WARN stderr, exit 0)
|
|
230
|
+
if (!result.ok) {
|
|
231
|
+
process.stderr.write(
|
|
232
|
+
`[hirai-method] WARN: registry 最新版を取得できませんでした (${result.reason})。\n` +
|
|
233
|
+
'[hirai-method] WARN: network 失敗のため check を skip します (fail-open)。\n',
|
|
234
|
+
);
|
|
235
|
+
return 0;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
const latest = result.version;
|
|
239
|
+
if (local === null) {
|
|
240
|
+
process.stdout.write(
|
|
241
|
+
`[hirai-method] registry 最新版: ${latest} (ローカル version 不明、package.json 未設定)\n` +
|
|
242
|
+
`[hirai-method] 最新を取り込むには: npx ${name}@latest update <dir>\n`,
|
|
243
|
+
);
|
|
244
|
+
return 0;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
const cmp = compareSemver(latest, local);
|
|
248
|
+
if (cmp === null) {
|
|
249
|
+
process.stderr.write(
|
|
250
|
+
`[hirai-method] WARN: version 比較不能 (local=${local} / latest=${latest})。fail-open。\n`,
|
|
251
|
+
);
|
|
252
|
+
return 0;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
if (cmp > 0) {
|
|
256
|
+
process.stdout.write(
|
|
257
|
+
`[hirai-method] 新版 ${latest} あり (現 ${local})。\n` +
|
|
258
|
+
`[hirai-method] 更新: npx ${name}@latest update <dir>\n`,
|
|
259
|
+
);
|
|
260
|
+
} else {
|
|
261
|
+
process.stdout.write(`[hirai-method] up to date (${local})\n`);
|
|
262
|
+
}
|
|
263
|
+
return 0;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// ------------------------------------------------------------
|
|
267
|
+
// install / update: install.sh をラップ
|
|
268
|
+
// ------------------------------------------------------------
|
|
269
|
+
function runInstall(mode, args) {
|
|
270
|
+
// args = サブコマンド以降 (dir + flags)
|
|
271
|
+
const positional = [];
|
|
272
|
+
const flags = [];
|
|
273
|
+
let endOfOptions = false; // POSIX "--" 以降は全て positional 扱い
|
|
274
|
+
for (const a of args) {
|
|
275
|
+
if (endOfOptions) {
|
|
276
|
+
positional.push(a);
|
|
277
|
+
continue;
|
|
278
|
+
}
|
|
279
|
+
if (a === '--') {
|
|
280
|
+
endOfOptions = true;
|
|
281
|
+
continue;
|
|
282
|
+
}
|
|
283
|
+
if (a.startsWith('-')) {
|
|
284
|
+
if (PASSTHROUGH_FLAGS.has(a)) {
|
|
285
|
+
flags.push(a);
|
|
286
|
+
} else {
|
|
287
|
+
process.stderr.write(`[hirai-method] error: 不明な flag: ${a}\n`);
|
|
288
|
+
return 1;
|
|
289
|
+
}
|
|
290
|
+
} else {
|
|
291
|
+
positional.push(a);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
if (positional.length === 0) {
|
|
296
|
+
process.stderr.write(
|
|
297
|
+
`[hirai-method] error: ${mode} には対象 dir の指定が必須です。\n` +
|
|
298
|
+
`[hirai-method] 例: npx ${packageName()} ${mode} ./my-project\n`,
|
|
299
|
+
);
|
|
300
|
+
return 1;
|
|
301
|
+
}
|
|
302
|
+
if (positional.length > 1) {
|
|
303
|
+
process.stderr.write(
|
|
304
|
+
`[hirai-method] error: dir は 1 つだけ指定してください: ${positional.join(' ')}\n`,
|
|
305
|
+
);
|
|
306
|
+
return 1;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
if (!ensureUnixToolchain()) {
|
|
310
|
+
return 1;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
if (!fs.existsSync(INSTALL_SH)) {
|
|
314
|
+
process.stderr.write(
|
|
315
|
+
`[hirai-method] error: install.sh が見つかりません (${INSTALL_SH})。package 同梱不備の可能性があります。\n`,
|
|
316
|
+
);
|
|
317
|
+
return 1;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
const dir = positional[0];
|
|
321
|
+
// mode=install → install.sh <dir> [flags] / mode=update → install.sh --update <dir> [flags]
|
|
322
|
+
const shArgs =
|
|
323
|
+
mode === 'update'
|
|
324
|
+
? [INSTALL_SH, '--update', dir, ...flags]
|
|
325
|
+
: [INSTALL_SH, dir, ...flags];
|
|
326
|
+
|
|
327
|
+
const r = spawnSync('bash', shArgs, { stdio: 'inherit' });
|
|
328
|
+
if (r.error) {
|
|
329
|
+
process.stderr.write(
|
|
330
|
+
`[hirai-method] error: install.sh の起動に失敗しました: ${r.error.message}\n`,
|
|
331
|
+
);
|
|
332
|
+
return 1;
|
|
333
|
+
}
|
|
334
|
+
// exit code を透過 (null = signal 終了は 1 扱い)
|
|
335
|
+
return typeof r.status === 'number' ? r.status : 1;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
// ------------------------------------------------------------
|
|
339
|
+
// main
|
|
340
|
+
// ------------------------------------------------------------
|
|
341
|
+
async function main() {
|
|
342
|
+
const argv = process.argv.slice(2);
|
|
343
|
+
const first = argv[0];
|
|
344
|
+
|
|
345
|
+
// version / help は最優先
|
|
346
|
+
if (first === '--version' || first === '-v') {
|
|
347
|
+
const local = localVersion();
|
|
348
|
+
if (local === null) {
|
|
349
|
+
process.stderr.write(
|
|
350
|
+
'[hirai-method] error: version が package.json に設定されていません。\n',
|
|
351
|
+
);
|
|
352
|
+
return 1;
|
|
353
|
+
}
|
|
354
|
+
process.stdout.write(local + '\n');
|
|
355
|
+
return 0;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
if (first === '--help' || first === '-h') {
|
|
359
|
+
printUsage(process.stdout);
|
|
360
|
+
return 0;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
if (first === undefined) {
|
|
364
|
+
// 引数なし → usage + exit 1 ではなく exit 0 (help 相当, 引数なしは案内表示)
|
|
365
|
+
printUsage(process.stdout);
|
|
366
|
+
return 0;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
switch (first) {
|
|
370
|
+
case 'check':
|
|
371
|
+
return cmdCheck();
|
|
372
|
+
case 'install':
|
|
373
|
+
return runInstall('install', argv.slice(1));
|
|
374
|
+
case 'update':
|
|
375
|
+
return runInstall('update', argv.slice(1));
|
|
376
|
+
default:
|
|
377
|
+
process.stderr.write(`[hirai-method] error: 不明なサブコマンド: ${first}\n\n`);
|
|
378
|
+
printUsage(process.stderr);
|
|
379
|
+
return 1;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
// CLI 実行は require.main ガード内のみ。require 時 (test) は実行されず export のみ提供。
|
|
384
|
+
if (require.main === module) {
|
|
385
|
+
main()
|
|
386
|
+
.then((code) => {
|
|
387
|
+
process.exitCode = code;
|
|
388
|
+
})
|
|
389
|
+
.catch((err) => {
|
|
390
|
+
process.stderr.write(`[hirai-method] fatal: ${err && err.stack ? err.stack : err}\n`);
|
|
391
|
+
process.exitCode = 1;
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
module.exports = { parseSemver, compareSemver };
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# Inventory — Claude Code ハーネス構成要素
|
|
2
|
+
|
|
3
|
+
`./claude-code-harness` に含まれるすべての設定ファイル・hook・skill・command の役割表。
|
|
4
|
+
|
|
5
|
+
## 設定 / 委譲ガード / 通知
|
|
6
|
+
|
|
7
|
+
| Path | 役割 | ステータス |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| `CLAUDE.md` | プロジェクトルート用テンプレート。Overview / Autonomous Progression / Rules table / Tech Stack / Critical Operational Lessons の骨格。`<...>` プレースホルダを置換して使う。 | テンプレート |
|
|
10
|
+
| `.claude/settings.json` | Hook 配線 + 共通 deny ルール + 最小 ask リスト。サニタイズ済み: `permissions.ask` から `supabase db push` / `supabase functions deploy` / `vercel env add/rm` を除去。 | サニタイズ済 |
|
|
11
|
+
| `.claude/harness-config.yml` | **Portability SSoT**。`protected_paths` / `task_dir` / `draft_dir` / `bash_whitelist_path` / state dir / `homunculus_root` / 通知音源を集中管理。3 つの guard hook + audit script が `config-loader.sh` 経由で参照。別リポ移植時はここ 1 枚を編集すれば挙動が連動変化する。 | New (2026-05-04) |
|
|
12
|
+
| `.claude/hooks/lib/config-loader.sh` | 純 bash の YAML サブセットパーサ(`yq` 等の外部依存ゼロ)。`harness-config.yml` を読んで `HC_*` 変数として export。tilde 展開対応、fail-open(不在時はハードコード fallback)。 | New (2026-05-04) |
|
|
13
|
+
| `.claude/hooks/delegation-guard.sh` | メインエージェントの保護パス(既定 `src/`/`tests/`/`scripts/`、`harness-config.yml` で上書き可)への直接アクセスを block。bash whitelist を強制。inline 環境変数による Hook バイパスも検出。Edit/Write/Read/Grep/Glob/Bash を 1 スクリプトで集約。 | config 化済 |
|
|
14
|
+
| `.claude/hooks/agent-marker-set.sh` | PreToolUse(Agent\|Task): `.claude/.agent-markers/*.lock` を書き出し、サブエージェント実行中であることを delegation-guard に伝える。 | そのまま |
|
|
15
|
+
| `.claude/hooks/agent-marker-clear.sh` | PostToolUse(Agent\|Task): 当該 session の marker を削除 + 期限切れ marker(>60 分)を sweep。 | そのまま |
|
|
16
|
+
| `.claude/hooks/notify.sh` | Claude が入力を求めた時の macOS 通知 + 音。 | そのまま |
|
|
17
|
+
| `.claude/hooks/stop.sh` | Claude のターン終了時の macOS 通知 + 音。 | そのまま |
|
|
18
|
+
| `.claude/hooks/check-md-mermaid.sh` | PostToolUse(Edit\|Write) on `.md`/`.mdx`: ` ```mermaid ` ブロックを抽出し mermaid@11 パーサーで検証。 | そのまま |
|
|
19
|
+
| `.claude/scripts/check-md-mermaid.mjs` | hook が呼び出す Node スクリプト。mermaid@11 が parse 中に DOMPurify を呼ぶため jsdom shim を仕込む。 | そのまま |
|
|
20
|
+
| `.claude/skills/check-md-mermaid/SKILL.md` | Mermaid 検証スクリプトの手動実行用スキルドキュメント。 | そのまま |
|
|
21
|
+
| `.claude/bash-whitelist.txt` | メインエージェントが実行可能な Bash コマンドの SSoT。1 行 1 正規表現、`^` で先頭固定。**セクションマーカー**で path-aware / path-restricted を区分(W1.2 以降)。 | そのまま |
|
|
22
|
+
| `.claude/bash-whitelist-requests/REQUEST_TEMPLATE.md` | 新規 whitelist エントリ申請用テンプレート(`.claude/bash-whitelist-requests/YYYY-MM-DD-<slug>.md` 形式で配置)。 | そのまま |
|
|
23
|
+
| `.claude/rules/development-process.md` | TDD / サブエージェント委譲 / タスク管理 / 設計→承認→タスク追加フロー。`src/` `tests/` `scripts/` と `docs/tasks/` `docs/draft/` に依存。 | そのまま — パス要適応 |
|
|
24
|
+
|
|
25
|
+
## 既存スラッシュコマンド
|
|
26
|
+
|
|
27
|
+
| Path | 役割 | ステータス |
|
|
28
|
+
|---|---|---|
|
|
29
|
+
| `.claude/commands/commit.md` | `/commit`: `git diff` から Conventional Commits 自動生成。scope 自動判定(`src/lib/` → lib、`supabase/migrations/` → db 等)に依存。 | そのまま — scope 要適応 |
|
|
30
|
+
| `.claude/commands/reviewpr.md` | `/reviewpr <pr>`: rules + CI + Critical Operational Lessons との多軸 PR レビュー。 | そのまま — rule リスト要適応 |
|
|
31
|
+
| `.claude/commands/start-task.md` | `/start-task <id>`: `docs/tasks/list.md` + `task-N-*.md` を開く、branch 切替、ステータス in_progress 化。 | そのまま — タスク layout 要適応 |
|
|
32
|
+
| `.claude/commands/finish-task.md` | `/finish-task <id>`: build/test/docs を検証し、done に更新、commit 提案。 | そのまま — タスク layout 要適応 |
|
|
33
|
+
|
|
34
|
+
## 自己改善 5 層(ECC 由来)
|
|
35
|
+
|
|
36
|
+
| Path | 役割 | ステータス |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| `.claude/rules/self-improvement.md` | ECC 5 層自己改善アルゴリズム(L1〜L5)の使い分け規約。タスク受領時・失敗時・完了時の分岐を定義。 | New (2026-05-04) |
|
|
39
|
+
| `.claude/skills/continuous-learning-v2/SKILL.md` | **L4(核心)**: Hook ベース自動学習。Atomic instinct + 信頼度 0.3-0.9 + project-scoped。 | ECC v2.1.0 から複製 |
|
|
40
|
+
| `.claude/skills/continuous-learning-v2/hooks/observe.sh` | PreToolUse/PostToolUse hook。100% 確実観察、git remote 検出、project-scoped 振り分け。 | New (2026-05-04) |
|
|
41
|
+
| `.claude/skills/continuous-learning-v2/instinct-cli.py` | 標準ライブラリのみで動く instinct 管理 CLI。status / projects / evolve / promote / export / import / observe-analyze。 | New (2026-05-04) |
|
|
42
|
+
| `.claude/skills/continuous-learning-v2/config.json` | Observer 設定(Haiku モデル・閾値・confidence 力学パラメータ)。 | New (2026-05-04) |
|
|
43
|
+
| `.claude/skills/eval-harness/SKILL.md` | **L1**: pass@k / pass^k メトリクスと code/rule/model/human grader。 | ECC から複製 |
|
|
44
|
+
| `.claude/skills/continuous-agent-loop/SKILL.md` | **L2**: 6 ループパターン(Sequential / NanoClaw / Infinite / Continuous PR / De-Sloppify / Ralphinho)。 | ECC から複製 |
|
|
45
|
+
| `.claude/skills/gan-style-harness/SKILL.md` | **L2+**: Planner / Generator / Evaluator 3 エージェントが 4 基準スコアで収束。 | ECC から複製 |
|
|
46
|
+
| `.claude/skills/agent-introspection-debugging/SKILL.md` | **L5**: 失敗時の 4 フェーズ自己診断(Capture / Diagnose / Recover / Report)。 | ECC から複製 |
|
|
47
|
+
| `.claude/commands/instinct-status.md` `/projects.md` `/evolve.md` `/promote.md` `/instinct-export.md` `/instinct-import.md` `/learn.md` | L4 操作系スラッシュコマンド 7 本。 | New (2026-05-04) |
|
|
48
|
+
| `.claude/commands/eval.md` | L1 操作(define / check / report)。 | New (2026-05-04) |
|
|
49
|
+
| `.claude/commands/gan-design.md` `/gan-build.md` | L2+ Planner / Generator-Evaluator 起動。 | New (2026-05-04) |
|
|
50
|
+
| `.claude/commands/agent-introspect.md` | L5 起動。 | New (2026-05-04) |
|
|
51
|
+
|
|
52
|
+
## 事実検証レイヤー(F1 / F2)
|
|
53
|
+
|
|
54
|
+
| Path | 役割 | ステータス |
|
|
55
|
+
|---|---|---|
|
|
56
|
+
| `.claude/skills/gateguard/SKILL.md` | **F1 事前ゲート**: 初回 Edit/Write/破壊的 Bash で 4 種の事実を強制要求。+2.25/10 ポイントの品質改善(A/B 実測)。 | ECC から複製 |
|
|
57
|
+
| `.claude/skills/gateguard/.gateguard.yml` | GateGuard 設定(gate 対象・除外パス・破壊的コマンドパターン)。 | New (2026-05-04) |
|
|
58
|
+
| `.claude/hooks/gateguard.sh` | PreToolUse hook(Edit/Write/Bash matcher で発火)。state file で 2 回目以降を通過させる。 | New (2026-05-04) |
|
|
59
|
+
| `.claude/skills/verification-loop/SKILL.md` | **F2 事後検証**: build / type / lint / test / security / diff の 6 phase 検証。 | ECC から複製 |
|
|
60
|
+
| `.claude/commands/verify.md` `/gate-status.md` `/gate-clear.md` `/gate-bypass.md` | F1/F2 操作系スラッシュコマンド 4 本。 | New (2026-05-04) |
|
|
61
|
+
| `.claude/.gitignore` | `.gateguard-state/` `.agent-markers/` を git から除外。 | New (2026-05-04) |
|
|
62
|
+
|
|
63
|
+
## タスク管理
|
|
64
|
+
|
|
65
|
+
| Path | 役割 | ステータス |
|
|
66
|
+
|---|---|---|
|
|
67
|
+
| `.claude/hooks/init-tasks-on-start.sh` | SessionStart hook。`docs/tasks/list.md` 等が未存在ならテンプレから生成。 | そのまま |
|
|
68
|
+
| `.claude/hooks/task-rule-guard.sh` | PreToolUse(Edit\|Write)。`docs/tasks/` への新規 Write を draft 不在 / ID 重複で BLOCK。 | そのまま |
|
|
69
|
+
| `.claude/templates/docs/tasks/list.md` | タスク台帳ひな型(凡例・依存関係図・更新ルール込み)。 | そのまま |
|
|
70
|
+
| `.claude/templates/docs/tasks/parking-lot.md` | 保留タスクひな型(必須 7 項目フォーマット込み)。 | そのまま |
|
|
71
|
+
| `.claude/templates/docs/tasks/_TASK_TEMPLATE.md` | 個別タスクひな型。 | そのまま |
|
|
72
|
+
| `.claude/templates/docs/draft/_DRAFT_TEMPLATE.md` | 設計 draft ひな型。 | そのまま |
|
|
73
|
+
| `.claude/commands/init-tasks.md` `/new-draft.md` `/new-task.md` `/start-task.md` `/finish-task.md` `/task-bypass.md` | タスク管理スラッシュコマンド 6 本。 | そのまま |
|
|
74
|
+
|
|
75
|
+
## 自己診断 / 観測(W2 で追加)
|
|
76
|
+
|
|
77
|
+
| Path | 役割 | ステータス |
|
|
78
|
+
|---|---|---|
|
|
79
|
+
| `.claude/hooks/failure-loop-detect.sh` | PostToolUse(`*`)。同種エラー 3 連続を検出して `/agent-introspect` を `additionalContext` で提案。 | New (W2.1) |
|
|
80
|
+
| `.claude/scripts/harness-audit.py` | ハーネス健全性レポートを実測値で出力(observations.jsonl / GateGuard / TaskGuard / failure-window)。 | New (W2.2) |
|
|
81
|
+
| `.claude/commands/harness-audit.md` | `/harness-audit`: 上記スクリプトを起動して結果を整形。 | New (W2.2) |
|
|
82
|
+
|
|
83
|
+
## 規範文書の Layer A/B Strategy (2026-05-28、task-51)
|
|
84
|
+
|
|
85
|
+
`.claude/rules/*.md` (規範文書) は **Layer A (要約、context 自動注入) + Layer B (詳細、明示 Read のみ)** の 2 層構造で運用する。
|
|
86
|
+
|
|
87
|
+
| Path | 役割 | 物理配置 | context 注入 |
|
|
88
|
+
|---|---|---|---|
|
|
89
|
+
| `.claude/rules/<rule>.md` | **Layer A** — 要約版 (採用 N 条 / 遵守事項 / table / bypass env 1-2 行 / Layer B link / 起源 1 行) | `.claude/rules/` (Claude Code 再帰 discover 対象) | claudeMd 経由で常時注入 |
|
|
90
|
+
| `.claude/rules-details/<rule>/<topic>.md` | **Layer B 断片** — topic 別詳細 (OK/NG 例 / history / SUPERSEDED / bypass 詳細 / 起源 / 5 層強制機構詳細 / 関連 artifact 完全 list) | `.claude/rules-details/<rule>/` (別 dir + subdir、Claude Code discover 対象外) | **非注入** (Read tool で明示参照のみ) |
|
|
91
|
+
|
|
92
|
+
> **設計経緯 (2026-05-28 A 案 redesign)**: 当初は `.claude/rules/<rule>.details.md` + frontmatter `paths: []` で非注入を狙ったが、Claude Code 公式仕様 (code.claude.com/docs/en/memory.md) で「`.claude/rules/*.md` は再帰 discover + startup load」「`paths:` は path match 時の**追加適用** (除外機構ではない)」が確定 (claude-code-guide subagent + 公式 doc、confidence 0.95)。token 実測でも `paths: []` 配置で context は逆に増加 (153K vs before ~146K) したため、Layer B を別 dir へ物理移動して除外を実現。
|
|
93
|
+
|
|
94
|
+
**現状の 2 層分割対象** (task-51 Step 3+5b で 2 層化、task-67 で Layer B を topic 別断片化、6 rule):
|
|
95
|
+
|
|
96
|
+
| Layer A (`.claude/rules/`) | Layer B 断片 (`.claude/rules-details/<rule>/`) | Layer A 抜粋 keyword |
|
|
97
|
+
|---|---|---|
|
|
98
|
+
| `self-improvement.md` | `self-improvement/` (4 断片) | L1-L5 + F1/F2 規約 / 5 + 3 層 |
|
|
99
|
+
| `development-process.md` | `development-process/` (8 断片) | TDD / 委譲ガード 7 必須要件 / staging 戦略 / cross-repo write 例外 / Confidence Gate (F3) |
|
|
100
|
+
| `task-management.md` | `task-management/` (8 断片) | 採用 6 条 / メイン専任 / 開発開始時必読義務 / parking-lot |
|
|
101
|
+
| `workflow.md` | `workflow/` (12 断片) | 14-stage / 10-stage / W1-W4 / 20 MECE / fan-out reviewer-registry |
|
|
102
|
+
| `modes.md` | `modes/` (5 断片) | Normal/Loop / 9 遵守事項 / 自律実行禁止 11 カテゴリ / 5 層強制機構 |
|
|
103
|
+
| `why-x5-output.md` | `why-x5-output/` (4 断片) | v10 1 行 format (`<何のため> のため、<何をやる> を行う`) |
|
|
104
|
+
|
|
105
|
+
`git-workflow.md` は ~1K で退避不要 (Layer A のみ)。
|
|
106
|
+
|
|
107
|
+
**Layer B Read trigger 4 条件** (Layer A 冒頭に admonition 配置):
|
|
108
|
+
1. 違反検出時 (hook BLOCK / warn 注入受領 / regex 不一致)
|
|
109
|
+
2. 規範変更時 (rule 編集 / draft 起案 / 採用 N 条改定)
|
|
110
|
+
3. 新規事案 (初遭遇 keyword / 例外パターン疑い)
|
|
111
|
+
4. 学習 / dogfood (task 着手前依存先必読 / harness audit / 副産物整理)
|
|
112
|
+
|
|
113
|
+
通常運用は Layer A のみで判断、Layer B Read skip (token 節約)。
|
|
114
|
+
|
|
115
|
+
**規約** (task-67 断片版): Layer A → Layer B 断片 link は断片ファイル直リンク (`[<rule>/<topic>.md](../rules-details/<rule>/<topic>.md)`、anchor 方式廃止)。Layer B 断片 → A back-link は `../../rules/<rule>.md` (2 階層上り)。dangling 0 は `.claude/tests/rule-architecture-smoke.sh` で機械検証。
|
|
116
|
+
|
|
117
|
+
**機械強制**:
|
|
118
|
+
- `install.sh` `rsync -a .claude/` で `.claude/rules-details/` 配下も自動同期 (RSYNC_EXCLUDES 不在、4 リポへ配布)
|
|
119
|
+
- `.claude/tests/layer-b-context-isolation-smoke.sh` (8 cases) + `.claude/tests/rule-architecture-smoke.sh` (3 asserts: dangling 0 / auto-load isolation / back-link 健全性) で Layer B 物理 dir / link 存在 / install.sh sync pattern 等を検証
|
|
120
|
+
|
|
121
|
+
**起源**: task-51 (context-bloat-reduction、2026-05-28)、設計 draft `docs/draft/context-bloat-reduction.md` §3 (Q2) + A 案 redesign (2026-05-28、smoke 実測で `paths: []` 無効判明 → Layer B 物理移動)。
|
|
122
|
+
|
|
123
|
+
## 外部インポート(コミュニティ由来)
|
|
124
|
+
|
|
125
|
+
### Agents([VoltAgent/awesome-claude-code-subagents](https://github.com/VoltAgent/awesome-claude-code-subagents) MIT)
|
|
126
|
+
|
|
127
|
+
`.claude/agents/<category>/<name>.md` 形式で **144 agents / 10 categories** を配置。
|
|
128
|
+
|
|
129
|
+
| Category | 件数 | 主な内容 |
|
|
130
|
+
|---|---:|---|
|
|
131
|
+
| `01-core-development` | 11 | api-designer / backend-developer / frontend-developer / mobile-developer など |
|
|
132
|
+
| `02-language-specialists` | 30 | python / typescript / golang / rust / java / kotlin / swift など各言語 pro |
|
|
133
|
+
| `03-infrastructure` | 16 | devops / kubernetes / terraform / cloud-architect など |
|
|
134
|
+
| `04-quality-security` | 16 | code-reviewer / security-auditor / penetration-tester / qa-expert など |
|
|
135
|
+
| `05-data-ai` | 13 | data-scientist / ml-engineer / nlp-engineer / mlops-engineer など |
|
|
136
|
+
| `06-developer-experience` | 14 | tooling-engineer / build-engineer / dx-optimizer / cli-developer など |
|
|
137
|
+
| `07-specialized-domains` | 13 | blockchain / iot / game-developer / embedded-systems など |
|
|
138
|
+
| `08-business-product` | 12 | product-manager / scrum-master / business-analyst など |
|
|
139
|
+
| `09-meta-orchestration` | 11 | multi-agent-coordinator / task-distributor / workflow-orchestrator など |
|
|
140
|
+
| `10-research-analysis` | 8 | research-analyst / market-researcher / trend-analyst など |
|
|
141
|
+
|
|
142
|
+
### Skills([ComposioHQ/awesome-claude-skills](https://github.com/ComposioHQ/awesome-claude-skills))
|
|
143
|
+
|
|
144
|
+
`.claude/skills/<name>/` に **32 skills** を配置(既存 9 と衝突なし)。
|
|
145
|
+
|
|
146
|
+
主要グループ:
|
|
147
|
+
- **コンテンツ生成**: `artifacts-builder` `brand-guidelines` `canvas-design` `theme-factory` `tailored-resume-generator`
|
|
148
|
+
- **ドキュメント変換**: `document-docx` `document-pdf` `document-pptx` `document-xlsx`
|
|
149
|
+
- **ビジネス自動化**: `changelog-generator` `internal-comms` `invoice-organizer` `meeting-insights-analyzer`
|
|
150
|
+
- **リサーチ**: `content-research-writer` `developer-growth-analysis` `lead-research-assistant` `competitive-ads-extractor`
|
|
151
|
+
- **ユーティリティ**: `file-organizer` `image-enhancer` `video-downloader` `webapp-testing` `domain-name-brainstormer` `raffle-winner-picker`
|
|
152
|
+
- **メタ**: `skill-creator` `skill-share` `template-skill` `mcp-builder`
|
|
153
|
+
- **連携**: `connect` `connect-apps` `langsmith-fetch` `slack-gif-creator` `twitter-algorithm-optimizer`
|
|
154
|
+
|
|
155
|
+
### 除外したもの
|
|
156
|
+
|
|
157
|
+
- `composio-skills/` — 832 個の Composio platform 連携サブスキル(platform 依存が強すぎ)
|
|
158
|
+
- `connect-apps-plugin/` — plugin 形式(commands のみで SKILL.md なし)
|
|
159
|
+
|
|
160
|
+
### ライセンス
|
|
161
|
+
|
|
162
|
+
- VoltAgent: **MIT License** — 各 agent ファイル末尾の attribution は temp ファイル参照ではないため改変不要
|
|
163
|
+
- ComposioHQ: 個別 skill により異なる(`SKILL.md` frontmatter の `license:` フィールドおよび `LICENSE.txt` を確認)
|