drt-method 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +45 -0
- package/GETTING-STARTED.md +269 -0
- package/README.md +233 -0
- package/drt-method-1.0.0.tgz +0 -0
- package/drt-modules.yaml +1 -0
- package/package.json +51 -0
- package/scripts/install-from-github.ps1 +22 -0
- package/scripts/install-from-github.sh +17 -0
- package/src/core-skills/drt-advanced-elicitation/SKILL.md +142 -0
- package/src/core-skills/drt-advanced-elicitation/methods.csv +72 -0
- package/src/core-skills/drt-brainstorming/SKILL.md +80 -0
- package/src/core-skills/drt-brainstorming/assets/brain-icons.json +166 -0
- package/src/core-skills/drt-brainstorming/assets/brain-methods.csv +109 -0
- package/src/core-skills/drt-brainstorming/assets/brain-selector.html +326 -0
- package/src/core-skills/drt-brainstorming/customize.toml +84 -0
- package/src/core-skills/drt-brainstorming/references/converge.md +24 -0
- package/src/core-skills/drt-brainstorming/references/finalize.md +26 -0
- package/src/core-skills/drt-brainstorming/references/headless.md +54 -0
- package/src/core-skills/drt-brainstorming/references/in-chat-techniques.md +18 -0
- package/src/core-skills/drt-brainstorming/references/mode-autonomous.md +10 -0
- package/src/core-skills/drt-brainstorming/references/mode-facilitator.md +11 -0
- package/src/core-skills/drt-brainstorming/references/mode-partner.md +16 -0
- package/src/core-skills/drt-brainstorming/references/resume.md +5 -0
- package/src/core-skills/drt-brainstorming/scripts/brain.py +740 -0
- package/src/core-skills/drt-customize/SKILL.md +111 -0
- package/src/core-skills/drt-customize/scripts/list_customizable_skills.py +231 -0
- package/src/core-skills/drt-editorial-review-prose/SKILL.md +86 -0
- package/src/core-skills/drt-editorial-review-structure/SKILL.md +179 -0
- package/src/core-skills/drt-forge-idea/SKILL.md +107 -0
- package/src/core-skills/drt-forge-idea/customize.toml +42 -0
- package/src/core-skills/drt-forge-idea/scripts/resolve_personas.py +270 -0
- package/src/core-skills/drt-help/SKILL.md +75 -0
- package/src/core-skills/drt-index-docs/SKILL.md +66 -0
- package/src/core-skills/drt-party-mode/SKILL.md +60 -0
- package/src/core-skills/drt-party-mode/customize.toml +211 -0
- package/src/core-skills/drt-party-mode/references/create-party.md +70 -0
- package/src/core-skills/drt-party-mode/references/mode-agent-team.md +13 -0
- package/src/core-skills/drt-party-mode/references/mode-auto.md +13 -0
- package/src/core-skills/drt-party-mode/references/mode-subagent.md +31 -0
- package/src/core-skills/drt-party-mode/references/party-memory.md +51 -0
- package/src/core-skills/drt-party-mode/scripts/resolve_party.py +272 -0
- package/src/core-skills/drt-review-adversarial-general/SKILL.md +37 -0
- package/src/core-skills/drt-review-edge-case-hunter/SKILL.md +73 -0
- package/src/core-skills/drt-review-edge-case-hunter/references/deletion-check.md +14 -0
- package/src/core-skills/drt-review-verification-gap/SKILL.md +106 -0
- package/src/core-skills/drt-shard-doc/SKILL.md +105 -0
- package/src/core-skills/drt-spec/SKILL.md +160 -0
- package/src/core-skills/drt-spec/assets/headless-schemas.md +33 -0
- package/src/core-skills/drt-spec/assets/spec-template.md +49 -0
- package/src/core-skills/drt-spec/assets/stories-schema.md +44 -0
- package/src/core-skills/drt-spec/customize.toml +53 -0
- package/src/core-skills/module-help.csv +14 -0
- package/src/core-skills/module.yaml +33 -0
- package/src/drt-skills/1-analysis/drt-agent-analyst/SKILL.md +76 -0
- package/src/drt-skills/1-analysis/drt-agent-analyst/customize.toml +90 -0
- package/src/drt-skills/1-analysis/drt-agent-tech-writer/SKILL.md +76 -0
- package/src/drt-skills/1-analysis/drt-agent-tech-writer/customize.toml +81 -0
- package/src/drt-skills/1-analysis/drt-agent-tech-writer/explain-concept.md +20 -0
- package/src/drt-skills/1-analysis/drt-agent-tech-writer/mermaid-gen.md +20 -0
- package/src/drt-skills/1-analysis/drt-agent-tech-writer/validate-doc.md +19 -0
- package/src/drt-skills/1-analysis/drt-agent-tech-writer/write-document.md +20 -0
- package/src/drt-skills/1-analysis/drt-document-project/SKILL.md +62 -0
- package/src/drt-skills/1-analysis/drt-document-project/checklist.md +245 -0
- package/src/drt-skills/1-analysis/drt-document-project/customize.toml +41 -0
- package/src/drt-skills/1-analysis/drt-document-project/documentation-requirements.csv +12 -0
- package/src/drt-skills/1-analysis/drt-document-project/instructions.md +128 -0
- package/src/drt-skills/1-analysis/drt-document-project/templates/deep-dive-template.md +345 -0
- package/src/drt-skills/1-analysis/drt-document-project/templates/index-template.md +169 -0
- package/src/drt-skills/1-analysis/drt-document-project/templates/project-overview-template.md +103 -0
- package/src/drt-skills/1-analysis/drt-document-project/templates/project-scan-report-schema.json +160 -0
- package/src/drt-skills/1-analysis/drt-document-project/templates/source-tree-template.md +135 -0
- package/src/drt-skills/1-analysis/drt-document-project/workflows/deep-dive-instructions.md +300 -0
- package/src/drt-skills/1-analysis/drt-document-project/workflows/deep-dive-workflow.md +34 -0
- package/src/drt-skills/1-analysis/drt-document-project/workflows/full-scan-instructions.md +1111 -0
- package/src/drt-skills/1-analysis/drt-document-project/workflows/full-scan-workflow.md +34 -0
- package/src/drt-skills/1-analysis/drt-prfaq/SKILL.md +135 -0
- package/src/drt-skills/1-analysis/drt-prfaq/agents/artifact-analyzer.md +60 -0
- package/src/drt-skills/1-analysis/drt-prfaq/agents/web-researcher.md +49 -0
- package/src/drt-skills/1-analysis/drt-prfaq/assets/prfaq-template.md +62 -0
- package/src/drt-skills/1-analysis/drt-prfaq/bmad-manifest.json +16 -0
- package/src/drt-skills/1-analysis/drt-prfaq/customize.toml +41 -0
- package/src/drt-skills/1-analysis/drt-prfaq/references/customer-faq.md +55 -0
- package/src/drt-skills/1-analysis/drt-prfaq/references/internal-faq.md +51 -0
- package/src/drt-skills/1-analysis/drt-prfaq/references/press-release.md +60 -0
- package/src/drt-skills/1-analysis/drt-prfaq/references/verdict.md +83 -0
- package/src/drt-skills/1-analysis/drt-product-brief/SKILL.md +91 -0
- package/src/drt-skills/1-analysis/drt-product-brief/assets/brief-template.md +41 -0
- package/src/drt-skills/1-analysis/drt-product-brief/customize.toml +99 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/SKILL.md +96 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/customize.toml +41 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-01-init.md +137 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-02-domain-analysis.md +229 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-03-competitive-landscape.md +238 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-04-regulatory-focus.md +206 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-05-technical-trends.md +234 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/domain-steps/step-06-research-synthesis.md +450 -0
- package/src/drt-skills/1-analysis/research/drt-domain-research/research.template.md +29 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/SKILL.md +96 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/customize.toml +41 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/research.template.md +29 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-01-init.md +184 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-02-customer-behavior.md +239 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-03-customer-pain-points.md +251 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-04-customer-decisions.md +261 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-05-competitive-analysis.md +173 -0
- package/src/drt-skills/1-analysis/research/drt-market-research/steps/step-06-research-completion.md +484 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/SKILL.md +96 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/customize.toml +41 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/research.template.md +29 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-01-init.md +137 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-02-technical-overview.md +239 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-03-integration-patterns.md +248 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-04-architectural-patterns.md +202 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-05-implementation-research.md +233 -0
- package/src/drt-skills/1-analysis/research/drt-technical-research/technical-steps/step-06-research-synthesis.md +493 -0
- package/src/drt-skills/2-plan-workflows/drt-agent-pm/SKILL.md +76 -0
- package/src/drt-skills/2-plan-workflows/drt-agent-pm/customize.toml +75 -0
- package/src/drt-skills/2-plan-workflows/drt-agent-ux-designer/SKILL.md +76 -0
- package/src/drt-skills/2-plan-workflows/drt-agent-ux-designer/customize.toml +60 -0
- package/src/drt-skills/2-plan-workflows/drt-create-prd/SKILL.md +30 -0
- package/src/drt-skills/2-plan-workflows/drt-create-prd/customize.toml +41 -0
- package/src/drt-skills/2-plan-workflows/drt-edit-prd/SKILL.md +30 -0
- package/src/drt-skills/2-plan-workflows/drt-edit-prd/customize.toml +42 -0
- package/src/drt-skills/2-plan-workflows/drt-prd/SKILL.md +92 -0
- package/src/drt-skills/2-plan-workflows/drt-prd/assets/headless-schemas.md +76 -0
- package/src/drt-skills/2-plan-workflows/drt-prd/assets/prd-template.md +165 -0
- package/src/drt-skills/2-plan-workflows/drt-prd/assets/prd-validation-checklist.md +135 -0
- package/src/drt-skills/2-plan-workflows/drt-prd/assets/validation-report-template.html +325 -0
- package/src/drt-skills/2-plan-workflows/drt-prd/customize.toml +147 -0
- package/src/drt-skills/2-plan-workflows/drt-prd/references/headless.md +39 -0
- package/src/drt-skills/2-plan-workflows/drt-prd/references/validate.md +97 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/SKILL.md +90 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/color-themes.md +9 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/design-directions.md +9 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/design-example-editorial.md +158 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/design-example-mobile.md +93 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/design-example-shadcn.md +109 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/excalidraw-wireframe.md +19 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/experience-example-mobile.md +112 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/experience-example-shadcn.md +133 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/headless-schemas.md +84 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/key-screens.md +29 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/assets/validation-report-template.html +319 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/customize.toml +100 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/references/creative-tools.md +19 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/references/design-md-spec.md +50 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/references/headless.md +37 -0
- package/src/drt-skills/2-plan-workflows/drt-ux/references/validate.md +115 -0
- package/src/drt-skills/2-plan-workflows/drt-validate-prd/SKILL.md +30 -0
- package/src/drt-skills/2-plan-workflows/drt-validate-prd/customize.toml +42 -0
- package/src/drt-skills/3-solutioning/drt-agent-architect/SKILL.md +76 -0
- package/src/drt-skills/3-solutioning/drt-agent-architect/customize.toml +65 -0
- package/src/drt-skills/3-solutioning/drt-architecture/SKILL.md +85 -0
- package/src/drt-skills/3-solutioning/drt-architecture/assets/spine-template.md +79 -0
- package/src/drt-skills/3-solutioning/drt-architecture/customize.toml +100 -0
- package/src/drt-skills/3-solutioning/drt-architecture/references/headless.md +26 -0
- package/src/drt-skills/3-solutioning/drt-architecture/references/reviewer-gate.md +13 -0
- package/src/drt-skills/3-solutioning/drt-architecture/scripts/lint_spine.py +257 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/SKILL.md +91 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/customize.toml +41 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-01-document-discovery.md +179 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-02-prd-analysis.md +168 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-03-epic-coverage-validation.md +169 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-04-ux-alignment.md +129 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-05-epic-quality-review.md +241 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/steps/step-06-final-assessment.md +132 -0
- package/src/drt-skills/3-solutioning/drt-check-implementation-readiness/templates/readiness-report-template.md +4 -0
- package/src/drt-skills/3-solutioning/drt-create-architecture/SKILL.md +30 -0
- package/src/drt-skills/3-solutioning/drt-create-architecture/customize.toml +41 -0
- package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/SKILL.md +93 -0
- package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/customize.toml +41 -0
- package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/steps/step-01-validate-prerequisites.md +263 -0
- package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/steps/step-02-design-epics.md +242 -0
- package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/steps/step-03-create-stories.md +255 -0
- package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/steps/step-04-final-validation.md +143 -0
- package/src/drt-skills/3-solutioning/drt-create-epics-and-stories/templates/epics-template.md +61 -0
- package/src/drt-skills/3-solutioning/drt-generate-project-context/SKILL.md +81 -0
- package/src/drt-skills/3-solutioning/drt-generate-project-context/customize.toml +41 -0
- package/src/drt-skills/3-solutioning/drt-generate-project-context/project-context-template.md +21 -0
- package/src/drt-skills/3-solutioning/drt-generate-project-context/steps/step-01-discover.md +186 -0
- package/src/drt-skills/3-solutioning/drt-generate-project-context/steps/step-02-generate.md +321 -0
- package/src/drt-skills/3-solutioning/drt-generate-project-context/steps/step-03-complete.md +284 -0
- package/src/drt-skills/4-implementation/drt-agent-dev/SKILL.md +76 -0
- package/src/drt-skills/4-implementation/drt-agent-dev/customize.toml +95 -0
- package/src/drt-skills/4-implementation/drt-checkpoint-preview/SKILL.md +68 -0
- package/src/drt-skills/4-implementation/drt-checkpoint-preview/customize.toml +41 -0
- package/src/drt-skills/4-implementation/drt-checkpoint-preview/generate-trail.md +38 -0
- package/src/drt-skills/4-implementation/drt-checkpoint-preview/step-01-orientation.md +105 -0
- package/src/drt-skills/4-implementation/drt-checkpoint-preview/step-02-walkthrough.md +89 -0
- package/src/drt-skills/4-implementation/drt-checkpoint-preview/step-03-detail-pass.md +106 -0
- package/src/drt-skills/4-implementation/drt-checkpoint-preview/step-04-testing.md +74 -0
- package/src/drt-skills/4-implementation/drt-checkpoint-preview/step-05-wrapup.md +30 -0
- package/src/drt-skills/4-implementation/drt-code-review/SKILL.md +90 -0
- package/src/drt-skills/4-implementation/drt-code-review/customize.toml +93 -0
- package/src/drt-skills/4-implementation/drt-code-review/steps/step-01-gather-context.md +84 -0
- package/src/drt-skills/4-implementation/drt-code-review/steps/step-02-review.md +32 -0
- package/src/drt-skills/4-implementation/drt-code-review/steps/step-03-triage.md +50 -0
- package/src/drt-skills/4-implementation/drt-code-review/steps/step-04-present.md +132 -0
- package/src/drt-skills/4-implementation/drt-correct-course/SKILL.md +301 -0
- package/src/drt-skills/4-implementation/drt-correct-course/checklist.md +288 -0
- package/src/drt-skills/4-implementation/drt-correct-course/customize.toml +41 -0
- package/src/drt-skills/4-implementation/drt-create-story/SKILL.md +432 -0
- package/src/drt-skills/4-implementation/drt-create-story/checklist.md +357 -0
- package/src/drt-skills/4-implementation/drt-create-story/customize.toml +41 -0
- package/src/drt-skills/4-implementation/drt-create-story/discover-inputs.md +88 -0
- package/src/drt-skills/4-implementation/drt-create-story/template.md +49 -0
- package/src/drt-skills/4-implementation/drt-dev-auto/SKILL.md +123 -0
- package/src/drt-skills/4-implementation/drt-dev-auto/compile-epic-context.md +62 -0
- package/src/drt-skills/4-implementation/drt-dev-auto/customize.toml +108 -0
- package/src/drt-skills/4-implementation/drt-dev-auto/spec-template.md +98 -0
- package/src/drt-skills/4-implementation/drt-dev-auto/step-01-clarify-and-route.md +84 -0
- package/src/drt-skills/4-implementation/drt-dev-auto/step-02-plan.md +31 -0
- package/src/drt-skills/4-implementation/drt-dev-auto/step-03-implement.md +42 -0
- package/src/drt-skills/4-implementation/drt-dev-auto/step-04-review.md +95 -0
- package/src/drt-skills/4-implementation/drt-dev-story/SKILL.md +500 -0
- package/src/drt-skills/4-implementation/drt-dev-story/checklist.md +80 -0
- package/src/drt-skills/4-implementation/drt-dev-story/customize.toml +41 -0
- package/src/drt-skills/4-implementation/drt-implement-task/SKILL.md +101 -0
- package/src/drt-skills/4-implementation/drt-implement-task/assets/task-spec-template.md +60 -0
- package/src/drt-skills/4-implementation/drt-implement-task/customize.toml +17 -0
- package/src/drt-skills/4-implementation/drt-implement-task/steps/step-01-gather-intent.md +42 -0
- package/src/drt-skills/4-implementation/drt-implement-task/steps/step-02-plan-and-approve.md +43 -0
- package/src/drt-skills/4-implementation/drt-implement-task/steps/step-03-confirm-dependencies.md +38 -0
- package/src/drt-skills/4-implementation/drt-implement-task/steps/step-04-implement.md +42 -0
- package/src/drt-skills/4-implementation/drt-implement-task/steps/step-05-qc-test.md +31 -0
- package/src/drt-skills/4-implementation/drt-implement-task/steps/step-06-quality-review.md +30 -0
- package/src/drt-skills/4-implementation/drt-implement-task/steps/step-07-fix-findings.md +33 -0
- package/src/drt-skills/4-implementation/drt-implement-task/steps/step-08-complete.md +35 -0
- package/src/drt-skills/4-implementation/drt-qa-generate-e2e-tests/SKILL.md +176 -0
- package/src/drt-skills/4-implementation/drt-qa-generate-e2e-tests/checklist.md +33 -0
- package/src/drt-skills/4-implementation/drt-qa-generate-e2e-tests/customize.toml +41 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/SKILL.md +13 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/compile-epic-context.md +62 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/customize.toml +83 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/render.js +206 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/spec-template.md +89 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/step-01-clarify-and-route.md +103 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/step-02-plan.md +47 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/step-03-implement.md +45 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/step-04-review.md +55 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/step-05-present.md +78 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/step-oneshot.md +78 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/sync-sprint-status.md +19 -0
- package/src/drt-skills/4-implementation/drt-quick-dev/workflow.md +85 -0
- package/src/drt-skills/4-implementation/drt-retrospective/SKILL.md +1527 -0
- package/src/drt-skills/4-implementation/drt-retrospective/customize.toml +41 -0
- package/src/drt-skills/4-implementation/drt-sprint-planning/SKILL.md +319 -0
- package/src/drt-skills/4-implementation/drt-sprint-planning/checklist.md +34 -0
- package/src/drt-skills/4-implementation/drt-sprint-planning/customize.toml +41 -0
- package/src/drt-skills/4-implementation/drt-sprint-planning/sprint-status-template.yaml +69 -0
- package/src/drt-skills/4-implementation/drt-sprint-status/SKILL.md +311 -0
- package/src/drt-skills/4-implementation/drt-sprint-status/customize.toml +41 -0
- package/src/drt-skills/module-help.csv +32 -0
- package/src/drt-skills/module.yaml +95 -0
- package/src/scripts/lib/load-toml.js +43 -0
- package/src/scripts/lib/merge-utils.js +89 -0
- package/src/scripts/memlog.js +184 -0
- package/src/scripts/package.json +7 -0
- package/src/scripts/resolve-config.js +56 -0
- package/src/scripts/resolve-customization.js +77 -0
- package/tools/installer/cli-utils.js +53 -0
- package/tools/installer/commands/install.js +149 -0
- package/tools/installer/commands/status.js +65 -0
- package/tools/installer/commands/uninstall.js +167 -0
- package/tools/installer/core/config.js +73 -0
- package/tools/installer/core/existing-install.js +121 -0
- package/tools/installer/core/install-paths.js +132 -0
- package/tools/installer/core/installer.js +1762 -0
- package/tools/installer/core/legacy-warnings.js +151 -0
- package/tools/installer/core/manifest-generator.js +859 -0
- package/tools/installer/core/manifest.js +433 -0
- package/tools/installer/core/uv-check.js +97 -0
- package/tools/installer/core/wsl-node-check.js +109 -0
- package/tools/installer/drt-cli.js +104 -0
- package/tools/installer/file-ops.js +204 -0
- package/tools/installer/fs-native.js +116 -0
- package/tools/installer/ide/_config-driven.js +972 -0
- package/tools/installer/ide/manager.js +324 -0
- package/tools/installer/ide/platform-codes.js +80 -0
- package/tools/installer/ide/platform-codes.yaml +343 -0
- package/tools/installer/ide/shared/installed-skills.js +50 -0
- package/tools/installer/ide/shared/path-utils.js +217 -0
- package/tools/installer/ide/shared/skill-manifest.js +57 -0
- package/tools/installer/install-messages.yaml +29 -0
- package/tools/installer/list-options.js +210 -0
- package/tools/installer/message-loader.js +83 -0
- package/tools/installer/modules/channel-plan.js +203 -0
- package/tools/installer/modules/channel-resolver.js +241 -0
- package/tools/installer/modules/custom-module-manager.js +918 -0
- package/tools/installer/modules/external-manager.js +667 -0
- package/tools/installer/modules/module-help-schema.js +13 -0
- package/tools/installer/modules/official-modules.js +2257 -0
- package/tools/installer/modules/plugin-resolver.js +398 -0
- package/tools/installer/modules/version-resolver.js +336 -0
- package/tools/installer/project-root.js +224 -0
- package/tools/installer/prompts.js +852 -0
- package/tools/installer/set-overrides.js +330 -0
- package/tools/installer/ui.js +2090 -0
- package/tools/installer/yaml-format.js +245 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: drt-forge-idea
|
|
3
|
+
description: Pressure-test an idea through persona-driven interrogation until it hardens, proves out, or dies cheaply. Use when the user says 'forge an idea', 'pressure-test this idea', 'stress-test my thinking', or 'harden this idea'.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# DRT Forge Idea
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Take a half-formed idea and pressure-test it in conversation, while changing your mind is still cheap, until it becomes something the user can act on with conviction or reject. The main risk is what the user has not examined yet: unchecked assumptions and unresolved decisions usually become more expensive problems later.
|
|
11
|
+
|
|
12
|
+
The main goal is better thinking, not producing an artifact. Strengthening an idea, rejecting it, or thinking it through more clearly are all complete outcomes. Writing `forged-idea.md` to hand off to another workflow is optional. Do not steer the conversation toward "shall we build it?"
|
|
13
|
+
|
|
14
|
+
This skill can be used on many kinds of ideas. When the idea is about a product or feature, what survives may be written to `forged-idea.md` for later planning.
|
|
15
|
+
|
|
16
|
+
Lead by questioning, not lecturing. Ask one question at a time, press on weak points, and do not let vague claims pass without examination.
|
|
17
|
+
|
|
18
|
+
## Conventions
|
|
19
|
+
|
|
20
|
+
- Scripts live in two places — run each from the exact path written, never assume co-location: the shared core scripts (`memlog.js`, `resolve-customization.js`, `resolve-config.js`) are installed by DRT core at `{project-root}/_drt/scripts/` and are never bundled here; this skill's own `resolve_personas.py` is at `{skill-root}/scripts/`.
|
|
21
|
+
- `{workflow.<name>}` resolves to fields in the merged `customize.toml` `[workflow]` table.
|
|
22
|
+
|
|
23
|
+
## On Activation
|
|
24
|
+
|
|
25
|
+
1. Resolve customization: `node {project-root}/_drt/scripts/resolve-customization.js --skill {skill-root} --key workflow`. On failure, read `{skill-root}/customize.toml` directly with defaults. Apply the resolved `{workflow.*}` values throughout.
|
|
26
|
+
2. Run each `{workflow.activation_steps_prepend}` entry; treat each `{workflow.persistent_facts}` entry as foundational context (`file:` entries load their contents, `skill:` names a skill to consult, others are facts verbatim).
|
|
27
|
+
3. Load `{project-root}/_drt/core/config.yaml` (and `config.user.yaml` if present); resolve `{user_name}`, `{communication_language}`, `{output_folder}`. Missing → neutral defaults; never block. Greet `{user_name}` in `{communication_language}` and stay in it.
|
|
28
|
+
4. Note whether a DRT persona is already active in this conversation — the user loaded one (e.g. the analyst, the storyteller) and invoked the forge from within it. If so, that persona leads the session, in voice, throughout.
|
|
29
|
+
5. Resume: glob `{workflow.forge_output_path}/**/.memlog.md` (recursive, so it still finds sessions when `run_folder_pattern` is overridden to nest paths) and read only each match's frontmatter to find any whose `status` is not `complete`. Offer to resume one — then read its full memlog once to rebuild state and continue append-only — or to start fresh.
|
|
30
|
+
6. Run each `{workflow.activation_steps_append}` entry.
|
|
31
|
+
|
|
32
|
+
## Open the session
|
|
33
|
+
|
|
34
|
+
Start by scrutinizing the idea, not endorsing it.
|
|
35
|
+
|
|
36
|
+
### Discover intent
|
|
37
|
+
Identify:
|
|
38
|
+
- the subject idea,
|
|
39
|
+
- the user's goal for the session,
|
|
40
|
+
- whether the idea is new or a change to an existing project
|
|
41
|
+
|
|
42
|
+
If any of these are already clear from the prompt that invoked this skill or previous context, ask the user to confirm and continue.
|
|
43
|
+
|
|
44
|
+
Otherwise ask for what's missing, in order:
|
|
45
|
+
- what is the idea?
|
|
46
|
+
- do you want to clarify and understand it, test whether it holds up, or make it better?
|
|
47
|
+
- is it a new idea or a change to an existing project? If the latter, what project is it, and where can I find its files or other relevant materials?
|
|
48
|
+
|
|
49
|
+
### Steering the conversation
|
|
50
|
+
|
|
51
|
+
Tell the user they can say **"attack this"**, **"defend this"**, or **"switch roles"** at any time to change how the current idea is argued. In attack mode, do not agree with the idea; look for contradictions, weak assumptions, and failure cases. In defend mode, argue for the strongest version of the idea. Tell the user they can also name a persona or party at any time to change who participates in the session.
|
|
52
|
+
|
|
53
|
+
### Set up the session
|
|
54
|
+
|
|
55
|
+
Derive a kebab-case `{slug}` for the idea and bind the session workspace `{workspace} = {workflow.forge_output_path}/{workflow.run_folder_pattern}` (the pattern fills with `{slug}`). Create the memlog once the goal is known:
|
|
56
|
+
`node {project-root}/_drt/scripts/memlog.js init --workspace {workspace} --field idea="<idea>" --field goal="<goal>"`
|
|
57
|
+
|
|
58
|
+
Tell the user the path; state is on disk now, so the session survives interruption. If init fails, don't abort — run the forge in-conversation and tell the user state won't persist this session.
|
|
59
|
+
|
|
60
|
+
## The forge
|
|
61
|
+
|
|
62
|
+
Let the session goal set the first move: for clarifying, pin down terms, boundaries, and assumptions; for testing, go after the central claim first; for making it better, drive each unresolved branch to a concrete decision.
|
|
63
|
+
|
|
64
|
+
Work one question at a time, in dependency order.
|
|
65
|
+
|
|
66
|
+
Include your current best answer or hypothesis when it helps the user respond. A concrete proposal is easier to accept, reject, or revise than an open-ended prompt. Find discoverable answers yourself instead of asking.
|
|
67
|
+
|
|
68
|
+
Do not assume the user's terms are precise. When a term is fuzzy or overloaded, name the ambiguity and ask for a precise choice before continuing. For example, do not let `user`, `buyer`, and `payer` collapse into one entity unless the idea actually requires that.
|
|
69
|
+
|
|
70
|
+
For ideas about an existing project, treat the project's files and materials as the source of truth. Do not accept a label or summary as proof. Find the relevant material yourself and check the user's claim against it. If the material contradicts the user's claim, stop and resolve that before continuing.
|
|
71
|
+
|
|
72
|
+
When a branch resolves, pause before moving on. Give the user a chance to raise any remaining concern.
|
|
73
|
+
|
|
74
|
+
Do not use agreement or praise to make the interaction smoother; they lower pressure and lead to shallower thinking. Agreement is allowed only when it helps the user think better. Praise is noise. Continued engagement and ego-stroking are not objectives. In attack mode, never agree with the idea until the user ends the mode. For each answer, either challenge the weak point or build on the strong point, whichever helps the user think better.
|
|
75
|
+
|
|
76
|
+
Capture as you go — each decision, assumption, crack, kill, and locked idea, one bullet in the user's meaning:
|
|
77
|
+
`node {project-root}/_drt/scripts/memlog.js append --workspace {workspace} --type <decision|assumption|crack|kill|direction|lock|note> --text "<gist>"`
|
|
78
|
+
A `lock` is an idea the user hardens — settled, not to be reopened; locks are what `forged-idea.md` is distilled from. Don't read the memlog back except on resume. If the user raises a different branch, capture it and stay put — the loop and the stray insight both survive.
|
|
79
|
+
|
|
80
|
+
## The personas
|
|
81
|
+
|
|
82
|
+
If a DRT persona was already active when the forge started, keep that persona as the lead voice.
|
|
83
|
+
|
|
84
|
+
Resolve the available persona pool once, as soon as the goal is known:
|
|
85
|
+
`uv run {skill-root}/scripts/resolve_personas.py --project-root {project-root} --skill {skill-root}`
|
|
86
|
+
The script returns installed DRT agents (`agents`), user-defined personas (`members`), and saved parties (`parties`). Parties may include a `scene`; some are open-cast. This gives you the same roster information as `drt-party-mode` without invoking it.
|
|
87
|
+
|
|
88
|
+
Each turn uses two voices:
|
|
89
|
+
- **One available persona** — choose an installed agent or user-defined persona whose expertise fits the current branch. Vary this voice every few turns; do not let one voice dominate. If the user names a specific persona, use it. If the user calls a saved party, use the whole party and its scene. If the user asks to go one-on-one, use only the requested persona. If no pool is available, generate this voice yourself.
|
|
90
|
+
- **One generated persona** — create a fresh outside voice, such as a competitor, buyer, finance reviewer, domain expert, or critic. Give it a name and enough characterization to keep its viewpoint distinct.
|
|
91
|
+
|
|
92
|
+
Use these voices in character to pressure-test the current branch: find sharper objections, missing assumptions, and stronger defenses. Cross-examine them for what matters, then synthesize their input into your next question. Do not let the session turn into a panel debate or persona performance.
|
|
93
|
+
|
|
94
|
+
Voice the personas yourself by default. Spawn separate agents only when a branch needs independent reasoning that should not be influenced by one shared voice.
|
|
95
|
+
|
|
96
|
+
## Exits
|
|
97
|
+
|
|
98
|
+
The session can end in three valid states:
|
|
99
|
+
|
|
100
|
+
- **Hardened** — the idea is stronger and specific enough to use. Distill the memlog into `{workspace}/forged-idea.md`. Keep it extremely short: only the decisions, rejected options, and reasons that matter downstream, in the user's meaning. Do not write a prose summary, template, or conversation recap. If it reads like a document, it is too long. Note that it can feed `drt-spec`, `drt-prd`, or `drt-prfaq`.
|
|
101
|
+
- **Killed** — the idea does not hold up. Say so plainly and record why. Finding that out early is a valid outcome.
|
|
102
|
+
- **Clearer** — the user understands the idea better, but there is no hardened idea to hand off. Leave the memlog as the record; no `forged-idea.md` is needed.
|
|
103
|
+
|
|
104
|
+
Always render `{workspace}/forge-report.html` as a self-contained HTML file the user can open, with inline CSS and an inline-SVG seal or stamp. Summarize the outcome, the locked decisions, what was rejected and why, and the weak points that survived scrutiny, in the user's meaning. Credit the personas and parties that pressure-tested the idea by name, icon, and voice. Render a prominent wax-seal-style or stamped outcome mark, matched to the result: `HARDENED`, an `Idea Death Certificate` stamped `KILLED` with the cause of death, or `CLARIFIED`. Tell the user the path.
|
|
105
|
+
|
|
106
|
+
Flip the status at the end: `node {project-root}/_drt/scripts/memlog.js set --workspace {workspace} --key status --value complete`.
|
|
107
|
+
If `{workflow.on_complete}` is non-empty, run all instructions in order.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# DO NOT EDIT -- overwritten on every update.
|
|
2
|
+
#
|
|
3
|
+
# Workflow customization surface for drt-forge-idea.
|
|
4
|
+
#
|
|
5
|
+
# Override files (not edited here):
|
|
6
|
+
# {project-root}/_drt/custom/drt-forge-idea.toml (team)
|
|
7
|
+
# {project-root}/_drt/custom/drt-forge-idea.user.toml (personal)
|
|
8
|
+
|
|
9
|
+
[workflow]
|
|
10
|
+
|
|
11
|
+
# --- Configurable below. Overrides merge per DRT structural rules: ---
|
|
12
|
+
# scalars: override wins • arrays: append
|
|
13
|
+
|
|
14
|
+
# Steps to run before the standard activation (config load, greet).
|
|
15
|
+
activation_steps_prepend = []
|
|
16
|
+
|
|
17
|
+
# Steps to run after greet but before the session begins.
|
|
18
|
+
activation_steps_append = []
|
|
19
|
+
|
|
20
|
+
# Persistent facts the interrogator keeps in mind for the whole session
|
|
21
|
+
# (domain constraints, house rules, what's off the table). Each entry is a
|
|
22
|
+
# literal sentence, a skill prefixed with `skill:`, or a `file:`-prefixed
|
|
23
|
+
# path/glob whose contents are loaded as facts. Default loads project-context.md
|
|
24
|
+
# when one exists (e.g. from drt-generate-project-context), so the forge grounds
|
|
25
|
+
# in the project's tech, domain, and constraints without re-asking.
|
|
26
|
+
persistent_facts = [
|
|
27
|
+
"file:{project-root}/**/project-context.md",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
# Executed when the session completes. Scalar or array of instructions. Empty for none.
|
|
31
|
+
on_complete = []
|
|
32
|
+
|
|
33
|
+
# Parent folder for all forge sessions. Each session gets its own run
|
|
34
|
+
# folder underneath (see run_folder_pattern). Lands directly under
|
|
35
|
+
# {output_folder} so the forge works in core-only installs.
|
|
36
|
+
forge_output_path = "{output_folder}/forge"
|
|
37
|
+
|
|
38
|
+
# Run-folder pattern inside forge_output_path. Resolved against the
|
|
39
|
+
# idea-derived slug at activation. Same slug = same folder, so resuming
|
|
40
|
+
# an idea reuses its memlog. Override to add {date} or other components
|
|
41
|
+
# if a fresh dated history per run is preferred.
|
|
42
|
+
run_folder_pattern = "{slug}"
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# /// script
|
|
3
|
+
# requires-python = ">=3.11"
|
|
4
|
+
# ///
|
|
5
|
+
"""Resolve the personas and parties the forge can bring into the room.
|
|
6
|
+
|
|
7
|
+
The forge cross-examines witnesses: the installed DRT agents, plus any
|
|
8
|
+
custom personas and party groups the user has authored for `drt-party-mode`.
|
|
9
|
+
This surfaces all of them in one shot so the orchestrator never has to ask
|
|
10
|
+
"who's available?" — it just intermixes whoever fits the branch, alongside
|
|
11
|
+
any persona the user names on the fly.
|
|
12
|
+
|
|
13
|
+
What it returns (JSON, stdout):
|
|
14
|
+
* agents — the installed DRT roster: the default room, always present.
|
|
15
|
+
* members — extra custom personas in the pool (party_members the user
|
|
16
|
+
defined that aren't already an installed slot).
|
|
17
|
+
* parties — the user's named party groups, members resolved to brief
|
|
18
|
+
entries; open-cast groups (scene names a pool, no roster)
|
|
19
|
+
are flagged.
|
|
20
|
+
* default_party — the group id pinned as party-mode's default, if any.
|
|
21
|
+
|
|
22
|
+
Discovery is best-effort and never blocks the forge. The installed roster
|
|
23
|
+
comes from the core resolver; custom personas/parties come from
|
|
24
|
+
`drt-party-mode`'s resolved customization when that skill is found beside
|
|
25
|
+
this one, else from the user's override TOMLs read directly. Anything that
|
|
26
|
+
can't be resolved is simply omitted and flagged, never fatal.
|
|
27
|
+
|
|
28
|
+
Stdlib only (Python 3.11+ for tomllib).
|
|
29
|
+
|
|
30
|
+
resolve_personas.py --project-root P --skill S
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
import argparse
|
|
34
|
+
import json
|
|
35
|
+
import subprocess
|
|
36
|
+
import sys
|
|
37
|
+
from pathlib import Path
|
|
38
|
+
|
|
39
|
+
try:
|
|
40
|
+
import tomllib
|
|
41
|
+
except ImportError: # pragma: no cover - guarded for <3.11
|
|
42
|
+
sys.stderr.write("error: Python 3.11+ is required (stdlib `tomllib`).\n")
|
|
43
|
+
sys.exit(3)
|
|
44
|
+
|
|
45
|
+
PARTY_SKILL = "drt-party-mode"
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def _run_json(cmd):
|
|
49
|
+
"""Run a resolver script and parse its JSON stdout. None on any failure."""
|
|
50
|
+
try:
|
|
51
|
+
out = subprocess.run(cmd, capture_output=True, text=True, timeout=60)
|
|
52
|
+
except (OSError, subprocess.SubprocessError):
|
|
53
|
+
return None
|
|
54
|
+
if out.returncode != 0 or not out.stdout.strip():
|
|
55
|
+
return None
|
|
56
|
+
try:
|
|
57
|
+
return json.loads(out.stdout)
|
|
58
|
+
except json.JSONDecodeError:
|
|
59
|
+
return None
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def _load_toml(path: Path):
|
|
63
|
+
if not path.exists():
|
|
64
|
+
return {}
|
|
65
|
+
try:
|
|
66
|
+
with path.open("rb") as f:
|
|
67
|
+
data = tomllib.load(f)
|
|
68
|
+
return data if isinstance(data, dict) else {}
|
|
69
|
+
except (OSError, tomllib.TOMLDecodeError):
|
|
70
|
+
return {}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def load_agents(project_root: Path):
|
|
74
|
+
"""Installed DRT agents as {code: entry}. (dict, resolved_ok).
|
|
75
|
+
|
|
76
|
+
The core resolver may emit agents as a dict keyed by code or as an array
|
|
77
|
+
of tables (depending on how the layers merged); normalize both to a dict.
|
|
78
|
+
"""
|
|
79
|
+
script = project_root / "_drt" / "scripts" / "resolve-config.js"
|
|
80
|
+
data = _run_json(["node", str(script), "--project-root", str(project_root), "--key", "agents"])
|
|
81
|
+
if data is None:
|
|
82
|
+
return {}, False
|
|
83
|
+
agents = data.get("agents", {}) or {}
|
|
84
|
+
if isinstance(agents, list):
|
|
85
|
+
agents = {a["code"]: a for a in agents if isinstance(a, dict) and a.get("code")}
|
|
86
|
+
elif not isinstance(agents, dict):
|
|
87
|
+
agents = {}
|
|
88
|
+
return agents, True
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def find_party_skill(project_root: Path, skill_root: Path):
|
|
92
|
+
"""Locate the installed drt-party-mode skill dir, or None.
|
|
93
|
+
|
|
94
|
+
Skills install as siblings, so the party skill is almost always next to
|
|
95
|
+
this one. A couple of common install roots cover the rest.
|
|
96
|
+
"""
|
|
97
|
+
candidates = [
|
|
98
|
+
skill_root.parent / PARTY_SKILL,
|
|
99
|
+
project_root / ".claude" / "skills" / PARTY_SKILL,
|
|
100
|
+
project_root / "_drt" / "skills" / PARTY_SKILL,
|
|
101
|
+
]
|
|
102
|
+
for c in candidates:
|
|
103
|
+
if (c / "customize.toml").exists():
|
|
104
|
+
return c
|
|
105
|
+
return None
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
def load_party_workflow(project_root: Path, party_skill: Path):
|
|
109
|
+
"""Merged [workflow] table for drt-party-mode (base + user overrides)."""
|
|
110
|
+
resolver = project_root / "_drt" / "scripts" / "resolve-customization.js"
|
|
111
|
+
data = _run_json(["node", str(resolver), "--skill", str(party_skill), "--key", "workflow"])
|
|
112
|
+
if data is not None and isinstance(data.get("workflow"), dict):
|
|
113
|
+
return data["workflow"]
|
|
114
|
+
# Fallback: base customize.toml directly, no override merge.
|
|
115
|
+
wf = _load_toml(party_skill / "customize.toml").get("workflow", {})
|
|
116
|
+
return wf if isinstance(wf, dict) else {}
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def load_party_overrides(project_root: Path):
|
|
120
|
+
"""Custom personas/parties when party-mode itself isn't installed.
|
|
121
|
+
|
|
122
|
+
Reads only the user's override TOMLs (team then personal, personal wins on
|
|
123
|
+
scalars). No base roster exists in this path, so a shallow merge is enough.
|
|
124
|
+
"""
|
|
125
|
+
custom = project_root / "_drt" / "custom"
|
|
126
|
+
team = _load_toml(custom / f"{PARTY_SKILL}.toml").get("workflow", {})
|
|
127
|
+
user = _load_toml(custom / f"{PARTY_SKILL}.user.toml").get("workflow", {})
|
|
128
|
+
team = team if isinstance(team, dict) else {}
|
|
129
|
+
user = user if isinstance(user, dict) else {}
|
|
130
|
+
merged = dict(team)
|
|
131
|
+
for key, val in user.items():
|
|
132
|
+
if isinstance(val, list) and isinstance(merged.get(key), list):
|
|
133
|
+
merged[key] = merged[key] + val
|
|
134
|
+
else:
|
|
135
|
+
merged[key] = val
|
|
136
|
+
return merged
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
def _alias(code: str) -> str:
|
|
140
|
+
"""Short alias for an installed agent code: drt-agent-analyst -> analyst."""
|
|
141
|
+
for prefix in ("drt-agent-", "drt-"):
|
|
142
|
+
if code.startswith(prefix):
|
|
143
|
+
return code[len(prefix):]
|
|
144
|
+
return code
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
def build_pool(agents: dict, party_members: list):
|
|
148
|
+
"""One pool keyed by code; custom members override matching installed slots.
|
|
149
|
+
|
|
150
|
+
Returns (pool, index, installed_codes, custom_codes):
|
|
151
|
+
* installed_codes — the default room (installed agents, overrides applied
|
|
152
|
+
in place); custom-only additions stay in the pool but don't crowd it.
|
|
153
|
+
* custom_codes — pure-custom personas (no installed slot), the extra
|
|
154
|
+
faces the forge can summon by name or via a party group.
|
|
155
|
+
"""
|
|
156
|
+
pool, index, installed_codes, custom_codes = {}, {}, [], []
|
|
157
|
+
|
|
158
|
+
def register(code, entry):
|
|
159
|
+
pool[code] = entry
|
|
160
|
+
index[code] = code
|
|
161
|
+
index[code.lower()] = code
|
|
162
|
+
index[_alias(code).lower()] = code
|
|
163
|
+
name = entry.get("name")
|
|
164
|
+
if name:
|
|
165
|
+
key = name.lower()
|
|
166
|
+
# A custom rename must not hijack another agent's name lookup.
|
|
167
|
+
if index.get(key, code) == code:
|
|
168
|
+
index[key] = code
|
|
169
|
+
|
|
170
|
+
for code, info in (agents or {}).items():
|
|
171
|
+
register(code, {
|
|
172
|
+
"code": code,
|
|
173
|
+
"name": info.get("name", code),
|
|
174
|
+
"icon": info.get("icon", ""),
|
|
175
|
+
"title": info.get("title", ""),
|
|
176
|
+
"description": info.get("description", ""),
|
|
177
|
+
"source": "installed",
|
|
178
|
+
})
|
|
179
|
+
installed_codes.append(code)
|
|
180
|
+
|
|
181
|
+
for m in (party_members if isinstance(party_members, list) else []):
|
|
182
|
+
if not isinstance(m, dict):
|
|
183
|
+
continue
|
|
184
|
+
code = m.get("code")
|
|
185
|
+
if not code:
|
|
186
|
+
continue
|
|
187
|
+
canonical = index.get(code) or index.get(code.lower()) or code
|
|
188
|
+
was_installed = canonical in pool
|
|
189
|
+
entry = {"code": canonical, "source": "custom"}
|
|
190
|
+
for field in ("name", "icon", "title", "persona", "capabilities", "model"):
|
|
191
|
+
if m.get(field) is not None:
|
|
192
|
+
entry[field] = m[field]
|
|
193
|
+
entry.setdefault("name", canonical)
|
|
194
|
+
register(canonical, entry)
|
|
195
|
+
if not was_installed:
|
|
196
|
+
custom_codes.append(canonical)
|
|
197
|
+
|
|
198
|
+
return pool, index, installed_codes, custom_codes
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
def _brief(entry):
|
|
202
|
+
"""The slim card the orchestrator needs to cast a persona."""
|
|
203
|
+
out = {k: entry[k] for k in ("code", "name", "icon", "title", "source") if entry.get(k)}
|
|
204
|
+
for k in ("description", "persona", "capabilities", "model"):
|
|
205
|
+
if entry.get(k):
|
|
206
|
+
out[k] = entry[k]
|
|
207
|
+
return out
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
def resolve_parties(groups, pool, index):
|
|
211
|
+
out = []
|
|
212
|
+
for g in groups or []:
|
|
213
|
+
if not isinstance(g, dict) or not g.get("id"):
|
|
214
|
+
continue
|
|
215
|
+
raw = g.get("members", []) or []
|
|
216
|
+
members = []
|
|
217
|
+
for t in raw:
|
|
218
|
+
key = t if isinstance(t, str) else str(t)
|
|
219
|
+
code = index.get(key) or index.get(key.lower())
|
|
220
|
+
if code in pool:
|
|
221
|
+
members.append(_brief(pool[code]))
|
|
222
|
+
party = {"id": g["id"], "name": g.get("name", g["id"]), "members": members}
|
|
223
|
+
if g.get("scene"):
|
|
224
|
+
party["scene"] = g["scene"]
|
|
225
|
+
if not raw:
|
|
226
|
+
party["open_cast"] = True
|
|
227
|
+
out.append(party)
|
|
228
|
+
return out
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
def main():
|
|
232
|
+
ap = argparse.ArgumentParser(description="Resolve forge personas and parties.")
|
|
233
|
+
ap.add_argument("--project-root", required=True)
|
|
234
|
+
ap.add_argument("--skill", required=True, help="Path to the drt-forge-idea skill dir")
|
|
235
|
+
args = ap.parse_args()
|
|
236
|
+
|
|
237
|
+
project_root = Path(args.project_root).resolve()
|
|
238
|
+
skill_root = Path(args.skill).resolve()
|
|
239
|
+
|
|
240
|
+
agents, agents_ok = load_agents(project_root)
|
|
241
|
+
|
|
242
|
+
party_skill = find_party_skill(project_root, skill_root)
|
|
243
|
+
if party_skill is not None:
|
|
244
|
+
workflow = load_party_workflow(project_root, party_skill)
|
|
245
|
+
else:
|
|
246
|
+
workflow = load_party_overrides(project_root)
|
|
247
|
+
|
|
248
|
+
pool, index, installed_codes, custom_codes = build_pool(
|
|
249
|
+
agents, workflow.get("party_members", []))
|
|
250
|
+
parties = resolve_parties(workflow.get("party_groups", []), pool, index)
|
|
251
|
+
|
|
252
|
+
_emit({
|
|
253
|
+
"agents": [_brief(pool[c]) for c in installed_codes],
|
|
254
|
+
"members": [_brief(pool[c]) for c in custom_codes],
|
|
255
|
+
"parties": parties,
|
|
256
|
+
"default_party": workflow.get("default_party", "") or "",
|
|
257
|
+
"party_mode_found": party_skill is not None,
|
|
258
|
+
"agents_resolved": agents_ok,
|
|
259
|
+
})
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
def _emit(obj):
|
|
263
|
+
reconfigure = getattr(sys.stdout, "reconfigure", None)
|
|
264
|
+
if reconfigure is not None:
|
|
265
|
+
reconfigure(encoding="utf-8")
|
|
266
|
+
sys.stdout.write(json.dumps(obj, indent=2, ensure_ascii=False) + "\n")
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
if __name__ == "__main__":
|
|
270
|
+
main()
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: drt-help
|
|
3
|
+
description: 'Analyzes current state and user query to answer DRT questions or recommend the next skill(s) to use. Use when user asks for help, drt help, what to do next, or what to start with in DRT.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# DRT Help
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Help the user understand where they are in their DRT workflow and what to do next, and also answer broader questions when asked that could be augmented with remote sources such as module documentation sources.
|
|
11
|
+
|
|
12
|
+
## Desired Outcomes
|
|
13
|
+
|
|
14
|
+
When this skill completes, the user should:
|
|
15
|
+
|
|
16
|
+
1. **Know where they are** — which module and phase they're in, what's already been completed
|
|
17
|
+
2. **Know what to do next** — the next recommended and/or required step, with clear reasoning
|
|
18
|
+
3. **Know how to invoke it** — skill name, menu code, action context, and any args that shortcut the conversation
|
|
19
|
+
4. **Get offered a quick start** — when a single skill is the clear next step, offer to run it for the user right now rather than just listing it
|
|
20
|
+
5. **Feel oriented, not overwhelmed** — surface only what's relevant to their current position; don't dump the entire catalog
|
|
21
|
+
6. **Get answers to general questions** — when the question doesn't map to a specific skill, use the module's registered documentation to give a grounded answer
|
|
22
|
+
|
|
23
|
+
## Data Sources
|
|
24
|
+
|
|
25
|
+
- **Catalog**: `{project-root}/_drt/_config/drt-help.csv` — assembled manifest of all installed module skills
|
|
26
|
+
- **Config**: Run `node {project-root}/_drt/scripts/resolve-config.js --project-root {project-root}` and use the merged JSON to resolve `output-location` variables and read `core.communication_language` and `modules.drt.project_knowledge`. The resolver merges `_drt/config.toml`, `_drt/config.user.toml`, `_drt/custom/config.toml`, and `_drt/custom/config.user.toml` in that order.
|
|
27
|
+
- **Artifacts**: Files matching `outputs` patterns at resolved `output-location` paths reveal which steps are possibly completed; their content may also provide grounding context for recommendations
|
|
28
|
+
- **Project knowledge**: If `project_knowledge` resolves to an existing path, read it for grounding context. Never fabricate project-specific details.
|
|
29
|
+
- **Module docs**: Rows with `_meta` in the `skill` column carry a URL or path in `output-location` pointing to the module's documentation (e.g., llms.txt). Fetch and use these to answer general questions about that module.
|
|
30
|
+
|
|
31
|
+
## CSV Interpretation
|
|
32
|
+
|
|
33
|
+
The catalog uses this format:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
module,skill,display-name,menu-code,description,action,args,phase,preceded-by,followed-by,required,output-location,outputs
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**Phases** determine the high-level flow:
|
|
40
|
+
- `anytime` — available regardless of workflow state
|
|
41
|
+
- Numbered phases (`1-analysis`, `2-planning`, etc.) flow in order; naming varies by module
|
|
42
|
+
|
|
43
|
+
**Sequencing** determines recommended ordering within and across phases (these are soft suggestions, not hard gates — see `required` for gating):
|
|
44
|
+
- `preceded-by` — skills that should ideally complete before this one
|
|
45
|
+
- `followed-by` — skills that should ideally run after this one
|
|
46
|
+
- Format: `skill-name` for single-action skills, `skill-name:action` for multi-action skills
|
|
47
|
+
|
|
48
|
+
**Required gates**:
|
|
49
|
+
- `required=true` items must complete before the user can meaningfully proceed to later phases
|
|
50
|
+
- A phase with no required items is entirely optional — recommend it but be clear about what's actually required next
|
|
51
|
+
|
|
52
|
+
**Completion detection**:
|
|
53
|
+
- Search resolved output paths for `outputs` patterns
|
|
54
|
+
- Fuzzy-match found files to catalog rows
|
|
55
|
+
- User may also state completion explicitly, or it may be evident from the current conversation
|
|
56
|
+
|
|
57
|
+
**Descriptions carry routing context** — some contain cycle info and alternate paths (e.g., "back to DS if fixes needed"). Read them as navigation hints, not just display text.
|
|
58
|
+
|
|
59
|
+
## Response Format
|
|
60
|
+
|
|
61
|
+
For each recommended item, present:
|
|
62
|
+
- `[menu-code]` **Display name** — e.g., "[PR] PRD"
|
|
63
|
+
- Skill name in backticks — e.g., `drt-prd`
|
|
64
|
+
- For multi-action skills: action invocation context — e.g., "tech-writer lets create a mermaid diagram!"
|
|
65
|
+
- Description if present in CSV; otherwise your existing knowledge of the skill suffices
|
|
66
|
+
- Args if available
|
|
67
|
+
|
|
68
|
+
**Ordering**: Show optional items first, then the next required item. Make it clear which is which.
|
|
69
|
+
|
|
70
|
+
## Constraints
|
|
71
|
+
|
|
72
|
+
- Present all output in `{communication_language}`
|
|
73
|
+
- Recommend running each skill in a **fresh context window**
|
|
74
|
+
- Match the user's tone — conversational when they're casual, structured when they want specifics
|
|
75
|
+
- If the active module is ambiguous, retrieve all meta rows remote sources to find relevant info also to help answer their question
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: drt-index-docs
|
|
3
|
+
description: 'Generates or updates an index.md to reference all docs in the folder. Use if user requests to create or update an index of all files in a specific folder'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Index Docs
|
|
7
|
+
|
|
8
|
+
**Goal:** Generate or update an index.md to reference all docs in a target folder.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## EXECUTION
|
|
12
|
+
|
|
13
|
+
### Step 1: Scan Directory
|
|
14
|
+
|
|
15
|
+
- List all files and subdirectories in the target location
|
|
16
|
+
|
|
17
|
+
### Step 2: Group Content
|
|
18
|
+
|
|
19
|
+
- Organize files by type, purpose, or subdirectory
|
|
20
|
+
|
|
21
|
+
### Step 3: Generate Descriptions
|
|
22
|
+
|
|
23
|
+
- Read each file to understand its actual purpose and create brief (3-10 word) descriptions based on the content, not just the filename
|
|
24
|
+
|
|
25
|
+
### Step 4: Create/Update Index
|
|
26
|
+
|
|
27
|
+
- Write or update index.md with organized file listings
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## OUTPUT FORMAT
|
|
31
|
+
|
|
32
|
+
```markdown
|
|
33
|
+
# Directory Index
|
|
34
|
+
|
|
35
|
+
## Files
|
|
36
|
+
|
|
37
|
+
- **[filename.ext](./filename.ext)** - Brief description
|
|
38
|
+
- **[another-file.ext](./another-file.ext)** - Brief description
|
|
39
|
+
|
|
40
|
+
## Subdirectories
|
|
41
|
+
|
|
42
|
+
### subfolder/
|
|
43
|
+
|
|
44
|
+
- **[file1.ext](./subfolder/file1.ext)** - Brief description
|
|
45
|
+
- **[file2.ext](./subfolder/file2.ext)** - Brief description
|
|
46
|
+
|
|
47
|
+
### another-folder/
|
|
48
|
+
|
|
49
|
+
- **[file3.ext](./another-folder/file3.ext)** - Brief description
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
## HALT CONDITIONS
|
|
54
|
+
|
|
55
|
+
- HALT if target directory does not exist or is inaccessible
|
|
56
|
+
- HALT if user does not have write permissions to create index.md
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## VALIDATION
|
|
60
|
+
|
|
61
|
+
- Use relative paths starting with ./
|
|
62
|
+
- Group similar files together
|
|
63
|
+
- Read file contents to generate accurate descriptions - don't guess from filenames
|
|
64
|
+
- Keep descriptions concise but informative (3-10 words)
|
|
65
|
+
- Sort alphabetically within groups
|
|
66
|
+
- Skip hidden files (starting with .) unless specified
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: drt-party-mode
|
|
3
|
+
description: 'Orchestrates lively group discussions between installed DRT agents or custom personas, and helps author custom parties. Use when the user requests party mode, a roundtable, or multiple agent perspectives — or wants to create/configure a party, define personas, or build an AI focus-group panel.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Party Mode
|
|
7
|
+
|
|
8
|
+
Run a round-table where these agents talk to each other and to the user like real, distinct people in conversation. You're the orchestrator.
|
|
9
|
+
|
|
10
|
+
## Conventions
|
|
11
|
+
|
|
12
|
+
- **Paths:** bare paths (e.g. `references/create-party.md`) resolve from `{skill-root}` (where `customize.toml` lives); `{project-root}`-prefixed paths from the project working dir. `{workflow.<name>}` resolves to `customize.toml`'s `[workflow]` table (overrides win).
|
|
13
|
+
- **Scripts:** `node {project-root}/_drt/scripts/resolve-customization.js` resolves `{workflow.*}`; `uv run {skill-root}/scripts/resolve_party.py` resolves the roster, `party_mode`, `memory_enabled`, and scene/`open_cast`; `node {project-root}/_drt/scripts/memlog.js` reads/writes per-party memory.
|
|
14
|
+
- **File roles:** a party's memory is the per-party memlog at `{workflow.memory_dir}/<party>/.memlog.md`; custom members and groups live in the user's `customize.toml` overrides. Mechanics in `references/party-memory.md` (memory) and `references/create-party.md` (authoring).
|
|
15
|
+
- **Search:** Web-search, don't guess — anything past your cutoff or unfamiliar; subagents too.
|
|
16
|
+
|
|
17
|
+
## On Activation
|
|
18
|
+
|
|
19
|
+
1. **Resolve customization:** `node {project-root}/_drt/scripts/resolve-customization.js --skill {skill-root} --key workflow`. On failure, read `{skill-root}/customize.toml` directly and use defaults. Then run each `{workflow.activation_steps_prepend}` entry, and hold each `{workflow.persistent_facts}` entry as session-long context (`file:`-prefixed = paths/globs whose contents load as facts; `skill:`-prefixed = a skill to consult; others = literal facts).
|
|
20
|
+
2. Load `{project-root}/_drt/core/config.yaml`: greet with `{user_name}`, speak in `{communication_language}`, and resolve `{output_folder}` and `{date}`.
|
|
21
|
+
3. **Detect intent and route.** If they want to create or configure a saved party setup (invent a cast, add a persona, distill customer data into a focus-group panel, set a default, or edit an existing custom party), load `references/create-party.md` and follow it. Otherwise run a party — continue below.
|
|
22
|
+
4. **Resolve the roster:** `uv run {skill-root}/scripts/resolve_party.py --project-root {project-root} --skill {skill-root}`. It returns the active roster (`{workflow.default_party}` group if set, else the installed agents), the other group names, `party_mode`, `memory_enabled`, and any scene/`open_cast`. Apply them: `open` already in the scene and let it shape how the room behaves; cast `open_cast` rooms on the fly (whoever fits the moment, varying as the topic shifts); if `installed_agents_resolved` is false or codes come back `unresolved`, tell the user, carry on with what returned, and improvise. Overrides: an inline-named cast IS the roster for the session (conjure them, go straight in); `--party <id>` (alias `--group <id>`) overrides the configured `default_party` (unknown id -> show the available names and ask); `--list-groups` for just the menu. Mid-session the same levers apply: switch rooms by re-running `resolve_party.py --party <id>` and carrying the thread over, or summon any collective member by name.
|
|
23
|
+
5. **Memory.** If `memory_enabled` (from `resolve_party.py`), follow `references/party-memory.md` for the whole run.
|
|
24
|
+
6. **Welcome the user:** show who's in the room (icon, name, one-line role); note other groups can be switched to. Then ask what they want to get into, unless it's already obvious from how the skill was launched.
|
|
25
|
+
7. Run each `{workflow.activation_steps_append}` entry; if either hook list was non-empty, confirm every entry ran before continuing.
|
|
26
|
+
|
|
27
|
+
## Keep It Feeling Like a Party
|
|
28
|
+
|
|
29
|
+
This is the bar — strive for every one of these, every round. It's the difference between a party and a panel:
|
|
30
|
+
|
|
31
|
+
- **It reads like people talking, not a report.** Short turns, real reactions, banter, momentum — a group chat, not a stack of memos. Brevity by default: a persona goes long only when asked. The instant it reads like answers being filed, the party's dead.
|
|
32
|
+
- **Every voice is unmistakably itself.** Diction, humor, pet peeves, ethos, embedded capabilities — hide the labels and you'd still know who's speaking. Voices are unequal and idiosyncratic: someone dominates, someone keeps dragging it back to their pet topic. Vary who's in the spotlight round to round. A balanced panel is boring.
|
|
33
|
+
- **They clash, and you don't resolve it.** Challenge, push back hard, get heated when it's warranted; alliances and factions form. Your instinct is to reconcile the voices and tie a bow — resist it. Clean consensus that took no effort is where the party dies.
|
|
34
|
+
- **One exchange, woven — never softened.** Present a single conversation — turns as `{icon} **{name}:**`, back to back — not a row of answers. Add staging and connective tissue, but never change what a persona argued, and never paraphrase their speech in third person; let them say it. Weave the delivery, keep the substance.
|
|
35
|
+
- **Pull the user into the room.** Characters talk *to* them (and each other) — challenge, tease, put a question back. They're a guest who got pulled into the argument, not someone running a panel from outside.
|
|
36
|
+
- **Make the collision earn its keep.** Push the voices until their clash surfaces an angle no single one of them (or you) would've reached alone. That's the whole point of more than one mind in the room.
|
|
37
|
+
- **Let a history form.** Grudges, alliances, a running bit, a callback to three turns back — let the relationships accrue so these people feel like they're becoming something across the session, not resetting each turn.
|
|
38
|
+
- **Commit to the fiction.** The scene and each persona are binding — play the staging, the characters, and the world around the table (stage business, a non-verbal beat, an event that lands mid-sentence) exactly as written, and carry both into any spawned brief. Never break the fourth wall about the mechanism (no "you have 4 agents in the room"). Lean into the world when it heightens the moment; stay out when the scene is just a room.
|
|
39
|
+
- **When it sags, change something — don't force it.** A flat turn? Move on, don't retry it. Drifting into Q&A or going in circles? Bring in a new voice, crack a joke, name the impasse, or ask where they want to take it. Never work in a summary or takeaways — they're there if the user asks.
|
|
40
|
+
|
|
41
|
+
## How It Runs
|
|
42
|
+
|
|
43
|
+
Use `{workflow.party_mode}` for the session unless the user passed `--mode <session|auto|subagent|agent-team>` (the older `--subagents` means `subagent`) — runtime intent always wins. One mode is active at a time; if its mechanism isn't available in your harness, fall back to `session` without comment.
|
|
44
|
+
|
|
45
|
+
**A party is interactive and open-ended.** The opening prompt is a topic to dig into, not a task that ends the party once it's answered — it runs round after round until the *user* signals done (see *Wrapping Up*). A served opening intent means *what's next?*, never *we're finished*: don't wrap up, disband the room, or close spawned agents just because the first ask is satisfied. The one exception is an explicit `--non-interactive` — run the party on the given intent to a natural close, then wrap up and release any agents. That's the only non-interactive path, and only when the user asked for it.
|
|
46
|
+
|
|
47
|
+
- **`session`** — voice every persona inline, one mind behind every voice. The floor every other mode degrades to; needs no extra instructions.
|
|
48
|
+
- **`auto`** — voice inline for ordinary back-and-forth, spawn real agents only when independent thinking changes the outcome. Load `references/mode-auto.md` for that call; when it says to spawn, follow `references/mode-subagent.md`.
|
|
49
|
+
- **`subagent`** — a real agent behind each persona every substantive round so each thinks independently. Load `references/mode-subagent.md`, favor faster cheaper models if available for each subagent.
|
|
50
|
+
- **`agent-team`** — stand the personas up as a persistent team who address each other directly (Claude Code only). Load `references/mode-agent-team.md`.
|
|
51
|
+
|
|
52
|
+
## Wrapping Up
|
|
53
|
+
|
|
54
|
+
When the user signals done — read the room, don't wait for a magic word — or an explicit `--non-interactive` run has served its intent (never merely because the opening prompt got answered):
|
|
55
|
+
|
|
56
|
+
- Read back the best takeaways.
|
|
57
|
+
- If memory is on, top up the memlog with the final outcome and any memorable beat not yet captured (`references/party-memory.md`) — a top-up; memory accrued live.
|
|
58
|
+
- Offer a keepsake: a single self-contained very creative HTML of the session, laid out by persona (icons, names, voice), genuinely nice remembrance, with inline SVG/light animation where it lifts the piece — written as a `{date}`-stamped `.html` into `{workflow.output_dir}/`, or wherever they ask.
|
|
59
|
+
- If memory is on and new faces showed up who aren't in the party's roster (open-cast walk-ons, or members the user added on the fly), offer once to save them into the users party customization - if yes then follow the instruction in `references/create-party.md` (declinable; don't stall the close).
|
|
60
|
+
- Run `{workflow.on_complete}` if non-empty, then drop back to normal mode.
|