@hanzlaa/rcode 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +120 -0
- package/CLAUDE.md +120 -0
- package/CONTRIBUTING.md +298 -0
- package/README.md +436 -0
- package/cli/config.js +142 -0
- package/cli/context.js +213 -0
- package/cli/dashboard.js +38 -0
- package/cli/digest.js +66 -0
- package/cli/doctor.js +283 -0
- package/cli/github-sync.js +1016 -0
- package/cli/index.js +113 -0
- package/cli/install.js +946 -0
- package/cli/lib/config.cjs +334 -0
- package/cli/lib/fsutil.cjs +76 -0
- package/cli/lib/github.cjs +365 -0
- package/cli/lib/manifest.cjs +240 -0
- package/cli/lib/memory-bank.cjs +348 -0
- package/cli/lib/model-profiles.cjs +169 -0
- package/cli/lib/prompts.cjs +355 -0
- package/cli/postinstall.js +32 -0
- package/cli/set-mode.js +94 -0
- package/cli/set-profile.js +80 -0
- package/cli/show-model.js +82 -0
- package/cli/team.js +35 -0
- package/cli/tiers.js +49 -0
- package/cli/uninstall.js +600 -0
- package/cli/update.js +373 -0
- package/package.json +60 -0
- package/rihal/agents/rihal-advisor-researcher.md +116 -0
- package/rihal/agents/rihal-ahmed.md +66 -0
- package/rihal/agents/rihal-architect.md +79 -0
- package/rihal/agents/rihal-assumptions-analyzer.md +117 -0
- package/rihal/agents/rihal-code-fixer.md +74 -0
- package/rihal/agents/rihal-code-reviewer.md +75 -0
- package/rihal/agents/rihal-codebase-mapper.md +170 -0
- package/rihal/agents/rihal-debugger.md +140 -0
- package/rihal/agents/rihal-deviation-analyzer.md +74 -0
- package/rihal/agents/rihal-docs-auditor.md +77 -0
- package/rihal/agents/rihal-edge-case-hunter.md +75 -0
- package/rihal/agents/rihal-executor.md +113 -0
- package/rihal/agents/rihal-fatima.md +68 -0
- package/rihal/agents/rihal-haitham.md +75 -0
- package/rihal/agents/rihal-hanzla.md +59 -0
- package/rihal/agents/rihal-hussain-pm.md +82 -0
- package/rihal/agents/rihal-integration-checker.md +455 -0
- package/rihal/agents/rihal-khalid.md +59 -0
- package/rihal/agents/rihal-layla.md +57 -0
- package/rihal/agents/rihal-mariam.md +58 -0
- package/rihal/agents/rihal-nasser.md +57 -0
- package/rihal/agents/rihal-noor.md +60 -0
- package/rihal/agents/rihal-nyquist-auditor.md +182 -0
- package/rihal/agents/rihal-omar.md +57 -0
- package/rihal/agents/rihal-phase-researcher.md +84 -0
- package/rihal/agents/rihal-planner.md +176 -0
- package/rihal/agents/rihal-profiler.md +74 -0
- package/rihal/agents/rihal-project-researcher.md +80 -0
- package/rihal/agents/rihal-remediation-planner.md +78 -0
- package/rihal/agents/rihal-research-synthesizer.md +253 -0
- package/rihal/agents/rihal-roadmapper.md +73 -0
- package/rihal/agents/rihal-sadiq.md +72 -0
- package/rihal/agents/rihal-security-adversary.md +82 -0
- package/rihal/agents/rihal-security-auditor.md +78 -0
- package/rihal/agents/rihal-sprint-checker.md +124 -0
- package/rihal/agents/rihal-tech-writer.md +80 -0
- package/rihal/agents/rihal-ui-auditor.md +81 -0
- package/rihal/agents/rihal-ui-designer.md +6 -0
- package/rihal/agents/rihal-ux-designer.md +83 -0
- package/rihal/agents/rihal-verifier.md +124 -0
- package/rihal/agents/rihal-waleed.md +60 -0
- package/rihal/agents/rihal-yousef.md +78 -0
- package/rihal/agents/rihal-zahra.md +62 -0
- package/rihal/agents/rihal-zayd.md +78 -0
- package/rihal/agents/rules/codebase-mapper/detailed-guide.md +615 -0
- package/rihal/agents/rules/debugger/checkpoint-recovery.md +272 -0
- package/rihal/agents/rules/debugger/debug-session-state.md +261 -0
- package/rihal/agents/rules/debugger/hypothesis-templates.md +330 -0
- package/rihal/agents/rules/debugger/investigation-protocol.md +298 -0
- package/rihal/agents/rules/debugger/scientific-method.md +317 -0
- package/rihal/agents/rules/executor/authentication-gates.md +202 -0
- package/rihal/agents/rules/executor/deviation-rules.md +191 -0
- package/rihal/agents/rules/executor/execution-flow.md +116 -0
- package/rihal/agents/rules/executor/self-check.md +241 -0
- package/rihal/agents/rules/executor/stub-detection.md +267 -0
- package/rihal/agents/rules/executor/summary-creation.md +76 -0
- package/rihal/agents/rules/executor/task-commit-protocol.md +283 -0
- package/rihal/agents/rules/executor/tdd-flow.md +294 -0
- package/rihal/agents/rules/phase-researcher/detailed-guide.md +628 -0
- package/rihal/agents/rules/planner/common-patterns.md +373 -0
- package/rihal/agents/rules/planner/dependency-analysis.md +195 -0
- package/rihal/agents/rules/planner/goal-backward-thinking.md +220 -0
- package/rihal/agents/rules/planner/sprint-verification.md +202 -0
- package/rihal/agents/rules/planner/task-templates.md +296 -0
- package/rihal/agents/rules/project-researcher/detailed-guide.md +589 -0
- package/rihal/agents/rules/roadmapper/detailed-guide.md +620 -0
- package/rihal/agents/rules/sprint-checker/dimensions.md +414 -0
- package/rihal/agents/rules/sprint-checker/process.md +377 -0
- package/rihal/agents/rules/verifier/anti-patterns.md +94 -0
- package/rihal/agents/rules/verifier/artifact-verification.md +69 -0
- package/rihal/agents/rules/verifier/behavioral-spot-checks.md +49 -0
- package/rihal/agents/rules/verifier/context-loading.md +84 -0
- package/rihal/agents/rules/verifier/data-flow-trace.md +65 -0
- package/rihal/agents/rules/verifier/gap-output.md +51 -0
- package/rihal/agents/rules/verifier/key-links.md +56 -0
- package/rihal/agents/rules/verifier/requirements-coverage.md +28 -0
- package/rihal/agents/rules/verifier/verification-report.md +131 -0
- package/rihal/bin/lib/code-references.cjs +196 -0
- package/rihal/bin/lib/config.cjs +146 -0
- package/rihal/bin/lib/council-panel.cjs +501 -0
- package/rihal/bin/lib/roadmap.cjs +256 -0
- package/rihal/bin/lib/verify.cjs +118 -0
- package/rihal/bin/rihal-hooks.cjs +204 -0
- package/rihal/bin/rihal-tools.cjs +3554 -0
- package/rihal/brain/README.md +38 -0
- package/rihal/brain/best-practices/no-autonomous-bypass.md +37 -0
- package/rihal/brain/best-practices/research-citation-rule.md +39 -0
- package/rihal/brain/best-practices/state-sync-rule.md +43 -0
- package/rihal/brain/sources.yaml +59 -0
- package/rihal/commands/add-phase.md +18 -0
- package/rihal/commands/add-tests.md +18 -0
- package/rihal/commands/add-todo.md +8 -0
- package/rihal/commands/analyze-dependencies.md +11 -0
- package/rihal/commands/audit-fix.md +14 -0
- package/rihal/commands/audit-milestone.md +12 -0
- package/rihal/commands/audit-uat.md +18 -0
- package/rihal/commands/autonomous.md +19 -0
- package/rihal/commands/brainstorm.md +11 -0
- package/rihal/commands/chain.md +8 -0
- package/rihal/commands/check-implementation-readiness.md +8 -0
- package/rihal/commands/check-todos.md +18 -0
- package/rihal/commands/cleanup.md +18 -0
- package/rihal/commands/code-review-fix.md +14 -0
- package/rihal/commands/code-review.md +14 -0
- package/rihal/commands/complete-milestone.md +12 -0
- package/rihal/commands/config.md +8 -0
- package/rihal/commands/correct-course.md +8 -0
- package/rihal/commands/council.md +25 -0
- package/rihal/commands/create-epics-and-stories.md +8 -0
- package/rihal/commands/create-story.md +8 -0
- package/rihal/commands/dashboard.md +10 -0
- package/rihal/commands/debug.md +8 -0
- package/rihal/commands/decisions.md +10 -0
- package/rihal/commands/dev-story.md +8 -0
- package/rihal/commands/diff.md +10 -0
- package/rihal/commands/discuss-phase-power.md +11 -0
- package/rihal/commands/discuss-phase.md +19 -0
- package/rihal/commands/discuss.md +23 -0
- package/rihal/commands/do.md +22 -0
- package/rihal/commands/docs-update.md +14 -0
- package/rihal/commands/document-project.md +8 -0
- package/rihal/commands/enable-hooks.md +11 -0
- package/rihal/commands/execute-sprint.md +13 -0
- package/rihal/commands/execute.md +19 -0
- package/rihal/commands/explore.md +14 -0
- package/rihal/commands/export-to-github.md +11 -0
- package/rihal/commands/forensics.md +11 -0
- package/rihal/commands/from-template.md +11 -0
- package/rihal/commands/health.md +10 -0
- package/rihal/commands/help.md +8 -0
- package/rihal/commands/import.md +12 -0
- package/rihal/commands/inbox.md +12 -0
- package/rihal/commands/init.md +14 -0
- package/rihal/commands/insert-phase.md +11 -0
- package/rihal/commands/install.md +10 -0
- package/rihal/commands/karpathy-audit.md +12 -0
- package/rihal/commands/list-plans.md +11 -0
- package/rihal/commands/list-workspaces.md +10 -0
- package/rihal/commands/map-codebase.md +14 -0
- package/rihal/commands/milestone-summary.md +11 -0
- package/rihal/commands/new-milestone.md +12 -0
- package/rihal/commands/new-project-research.md +11 -0
- package/rihal/commands/new-project-roadmap.md +11 -0
- package/rihal/commands/new-project.md +13 -0
- package/rihal/commands/new-workspace.md +12 -0
- package/rihal/commands/next.md +19 -0
- package/rihal/commands/note.md +12 -0
- package/rihal/commands/notify-test.md +10 -0
- package/rihal/commands/pause-work.md +8 -0
- package/rihal/commands/plan-milestone-gaps.md +18 -0
- package/rihal/commands/plan.md +19 -0
- package/rihal/commands/plant-seed.md +18 -0
- package/rihal/commands/pr-branch.md +18 -0
- package/rihal/commands/profile-user.md +8 -0
- package/rihal/commands/progress.md +19 -0
- package/rihal/commands/quick.md +14 -0
- package/rihal/commands/remove-phase.md +18 -0
- package/rihal/commands/remove-workspace.md +11 -0
- package/rihal/commands/replay.md +11 -0
- package/rihal/commands/report.md +10 -0
- package/rihal/commands/rerun.md +11 -0
- package/rihal/commands/research-phase.md +18 -0
- package/rihal/commands/resume-work.md +8 -0
- package/rihal/commands/review-adversarial.md +8 -0
- package/rihal/commands/review-edge-case-hunter.md +8 -0
- package/rihal/commands/review.md +18 -0
- package/rihal/commands/scan.md +14 -0
- package/rihal/commands/secure-phase.md +14 -0
- package/rihal/commands/session-report.md +10 -0
- package/rihal/commands/settings.md +8 -0
- package/rihal/commands/ship.md +18 -0
- package/rihal/commands/show.md +10 -0
- package/rihal/commands/sprint-planning.md +20 -0
- package/rihal/commands/sprint-status.md +21 -0
- package/rihal/commands/stats.md +10 -0
- package/rihal/commands/status.md +21 -0
- package/rihal/commands/ui-phase.md +8 -0
- package/rihal/commands/ui-review.md +8 -0
- package/rihal/commands/undo.md +14 -0
- package/rihal/commands/update.md +11 -0
- package/rihal/commands/validate-phase.md +18 -0
- package/rihal/commands/verify-phase.md +18 -0
- package/rihal/commands/verify-work.md +19 -0
- package/rihal/commands/why.md +10 -0
- package/rihal/commands/workstream.md +11 -0
- package/rihal/config/model-profiles.json +226 -0
- package/rihal/config/model-profiles.schema.json +36 -0
- package/rihal/config.yaml +39 -0
- package/rihal/digests/README.md +50 -0
- package/rihal/digests/fatima.md +24 -0
- package/rihal/digests/hussain-pm.md +24 -0
- package/rihal/digests/mariam.md +24 -0
- package/rihal/digests/sadiq.md +24 -0
- package/rihal/digests/waleed.md +24 -0
- package/rihal/modules/core.yaml +101 -0
- package/rihal/modules/discovery.yaml +50 -0
- package/rihal/modules/execution.yaml +66 -0
- package/rihal/references/brain-methods.csv +9 -0
- package/rihal/references/checklist-architect.md +146 -0
- package/rihal/references/checklist-change.md +136 -0
- package/rihal/references/checklist-pm.md +154 -0
- package/rihal/references/checklist-po-master.md +100 -0
- package/rihal/references/checklist-story-dod.md +75 -0
- package/rihal/references/checklist-story-draft.md +53 -0
- package/rihal/references/checkpoints-index.md +53 -0
- package/rihal/references/checkpoints.md +778 -0
- package/rihal/references/codebase-grounding.md +76 -0
- package/rihal/references/command-redirect-format.md +62 -0
- package/rihal/references/commit-conventions.md +125 -0
- package/rihal/references/common-bug-patterns-index.md +44 -0
- package/rihal/references/common-bug-patterns.md +621 -0
- package/rihal/references/context-budget.md +104 -0
- package/rihal/references/continuation-format.md +249 -0
- package/rihal/references/council-protocol.md +91 -0
- package/rihal/references/domain-probes.md +213 -0
- package/rihal/references/elicitation-methods.csv +16 -0
- package/rihal/references/execution-protocol.md +155 -0
- package/rihal/references/gate-prompts.md +212 -0
- package/rihal/references/gates.md +127 -0
- package/rihal/references/git-integration.md +159 -0
- package/rihal/references/git-planning-commit.md +185 -0
- package/rihal/references/karpathy-guidelines.md +79 -0
- package/rihal/references/model-profiles.md +90 -0
- package/rihal/references/no-unauthorized-git-ops.md +73 -0
- package/rihal/references/output-format.md +319 -0
- package/rihal/references/output-realism.md +52 -0
- package/rihal/references/project-types.yaml +270 -0
- package/rihal/references/questioning.md +163 -0
- package/rihal/references/response-style.md +81 -0
- package/rihal/references/state-schema.md +366 -0
- package/rihal/references/tdd.md +263 -0
- package/rihal/references/thinking-models-debug.md +126 -0
- package/rihal/references/thinking-models-planning.md +127 -0
- package/rihal/references/ui-brand.md +254 -0
- package/rihal/references/verification-patterns-index.md +76 -0
- package/rihal/references/verification-patterns.md +612 -0
- package/rihal/references/workstream-flag.md +166 -0
- package/rihal/skills/SKILLS_INDEX.md +114 -0
- package/rihal/skills/_shared/no-autonomous-bypass.md +37 -0
- package/rihal/skills/_shared/research-citation-rule.md +39 -0
- package/rihal/skills/_shared/state-sync-rule.md +43 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/SKILL.md +31 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/domain-steps/step-01-init.md +137 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/domain-steps/step-02-domain-analysis.md +229 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/domain-steps/step-03-competitive-landscape.md +238 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/domain-steps/step-04-regulatory-focus.md +206 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/domain-steps/step-05-technical-trends.md +234 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/domain-steps/step-06-research-synthesis.md +444 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/research.template.md +29 -0
- package/rihal/skills/actions/1-analysis/research/rihal-domain-research/workflow.md +49 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/SKILL.md +30 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/research.template.md +29 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/steps/step-01-init.md +184 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/steps/step-02-customer-behavior.md +239 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/steps/step-03-customer-pain-points.md +251 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/steps/step-04-customer-decisions.md +261 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/steps/step-05-competitive-analysis.md +173 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/steps/step-06-research-completion.md +478 -0
- package/rihal/skills/actions/1-analysis/research/rihal-market-research/workflow.md +49 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/SKILL.md +31 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/research.template.md +29 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/technical-steps/step-01-init.md +137 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/technical-steps/step-02-technical-overview.md +239 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/technical-steps/step-03-integration-patterns.md +248 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/technical-steps/step-04-architectural-patterns.md +202 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/technical-steps/step-05-implementation-research.md +233 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/technical-steps/step-06-research-synthesis.md +487 -0
- package/rihal/skills/actions/1-analysis/research/rihal-technical-research/workflow.md +50 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/SKILL.md +30 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/checklist.md +245 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/documentation-requirements.csv +12 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/instructions.md +128 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/templates/deep-dive-template.md +345 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/templates/index-template.md +169 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/templates/project-overview-template.md +103 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/templates/project-scan-report-schema.json +160 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/templates/source-tree-template.md +135 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/workflow.md +27 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/workflows/deep-dive-instructions.md +299 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/workflows/deep-dive-workflow.md +34 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/workflows/full-scan-instructions.md +1107 -0
- package/rihal/skills/actions/1-analysis/rihal-document-project/workflows/full-scan-workflow.md +34 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/SKILL.md +120 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/agents/artifact-analyzer.md +60 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/agents/web-researcher.md +49 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/assets/prfaq-template.md +62 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/references/customer-faq.md +55 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/references/internal-faq.md +51 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/references/press-release.md +60 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/references/verdict.md +79 -0
- package/rihal/skills/actions/1-analysis/rihal-prfaq/rihal-manifest.json +16 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/SKILL.md +112 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/agents/artifact-analyzer.md +60 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/agents/opportunity-reviewer.md +44 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/agents/skeptic-reviewer.md +44 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/agents/web-researcher.md +49 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/prompts/contextual-discovery.md +57 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/prompts/draft-and-review.md +86 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/prompts/finalize.md +75 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/prompts/guided-elicitation.md +70 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/resources/brief-template.md +60 -0
- package/rihal/skills/actions/1-analysis/rihal-product-brief/rihal-manifest.json +17 -0
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/SKILL.md +30 -0
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/steps/step-01-validate-prerequisites.md +255 -0
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/steps/step-02-design-epics.md +212 -0
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/steps/step-03-create-stories.md +255 -0
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/steps/step-04-final-validation.md +131 -0
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/templates/epics-template.md +61 -0
- package/rihal/skills/actions/2-plan/rihal-create-epics-and-stories/workflow.md +54 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/SKILL.md +39 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/README.md +30 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-01-init.md +62 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-02-outcomes.md +64 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-03-sequencing.md +65 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-04-windows.md +60 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-05-kill-criteria.md +59 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-06-phase-stubs.md +56 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-07-backlog.md +44 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-08-write-roadmap.md +58 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-09-state-sync.md +62 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/steps/step-10-complete.md +56 -0
- package/rihal/skills/actions/2-plan/rihal-create-milestone/workflow.md +93 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/SKILL.md +40 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/data/domain-complexity.csv +15 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/data/prd-purpose.md +197 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/data/project-types.csv +11 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-01-init.md +178 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-01b-continue.md +161 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-02-discovery.md +208 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-02b-vision.md +142 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-02c-executive-summary.md +158 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-03-success.md +214 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-04-journeys.md +201 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-05-domain.md +194 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-06-innovation.md +211 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-07-project-type.md +222 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-08-scoping.md +216 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-09-functional.md +219 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-10-nonfunctional.md +230 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-11-polish.md +221 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/steps-c/step-12-complete.md +115 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/templates/prd-template.md +10 -0
- package/rihal/skills/actions/2-plan/rihal-create-prd/workflow.md +64 -0
- package/rihal/skills/actions/2-plan/rihal-create-story/SKILL.md +31 -0
- package/rihal/skills/actions/2-plan/rihal-create-story/checklist.md +357 -0
- package/rihal/skills/actions/2-plan/rihal-create-story/discover-inputs.md +88 -0
- package/rihal/skills/actions/2-plan/rihal-create-story/template.md +49 -0
- package/rihal/skills/actions/2-plan/rihal-create-story/workflow.md +380 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/SKILL.md +31 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-01-init.md +135 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-01b-continue.md +127 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-02-discovery.md +190 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-03-core-experience.md +217 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-04-emotional-response.md +220 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-05-inspiration.md +235 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-06-design-system.md +253 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-07-defining-experience.md +255 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-08-visual-foundation.md +225 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-09-design-directions.md +225 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-10-user-journeys.md +242 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-11-component-strategy.md +249 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-12-ux-patterns.md +238 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-13-responsive-accessibility.md +265 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/steps/step-14-complete.md +171 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/ux-design-template.md +13 -0
- package/rihal/skills/actions/2-plan/rihal-create-ux-design/workflow.md +36 -0
- package/rihal/skills/actions/2-plan/rihal-edit-prd/SKILL.md +30 -0
- package/rihal/skills/actions/2-plan/rihal-edit-prd/steps-e/step-e-01-discovery.md +242 -0
- package/rihal/skills/actions/2-plan/rihal-edit-prd/steps-e/step-e-01b-legacy-conversion.md +204 -0
- package/rihal/skills/actions/2-plan/rihal-edit-prd/steps-e/step-e-02-review.md +245 -0
- package/rihal/skills/actions/2-plan/rihal-edit-prd/steps-e/step-e-03-edit.md +250 -0
- package/rihal/skills/actions/2-plan/rihal-edit-prd/steps-e/step-e-04-complete.md +165 -0
- package/rihal/skills/actions/2-plan/rihal-edit-prd/workflow.md +63 -0
- package/rihal/skills/actions/2-plan/rihal-frontend-design/SKILL.md +169 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/SKILL.md +29 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/data/domain-complexity.csv +15 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/data/prd-purpose.md +197 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/data/project-types.csv +11 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-01-discovery.md +221 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-02-format-detection.md +188 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-02b-parity-check.md +206 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-03-density-validation.md +171 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-04-brief-coverage-validation.md +211 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-05-measurability-validation.md +225 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-06-traceability-validation.md +214 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-07-implementation-leakage-validation.md +202 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-08-domain-compliance-validation.md +240 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-09-project-type-validation.md +260 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-10-smart-validation.md +206 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-11-holistic-quality-validation.md +261 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-12-completeness-validation.md +239 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/steps-v/step-v-13-report-complete.md +229 -0
- package/rihal/skills/actions/2-plan/rihal-validate-prd/workflow.md +62 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/SKILL.md +30 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/steps/step-01-document-discovery.md +179 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/steps/step-02-prd-analysis.md +168 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/steps/step-03-epic-coverage-validation.md +169 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/steps/step-04-ux-alignment.md +129 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/steps/step-05-epic-quality-review.md +241 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/steps/step-06-final-assessment.md +126 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/templates/readiness-report-template.md +4 -0
- package/rihal/skills/actions/3-solutioning/rihal-check-implementation-readiness/workflow.md +49 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/SKILL.md +32 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/architecture-decision-template.md +12 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/data/domain-complexity.csv +13 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/data/project-types.csv +7 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-01-init.md +153 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-01b-continue.md +173 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-02-context.md +224 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-03-starter.md +329 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-04-decisions.md +318 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-05-patterns.md +359 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-06-structure.md +379 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-07-validation.md +359 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/steps/step-08-complete.md +76 -0
- package/rihal/skills/actions/3-solutioning/rihal-create-architecture/workflow.md +38 -0
- package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/SKILL.md +31 -0
- package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/project-context-template.md +21 -0
- package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/steps/step-01-discover.md +186 -0
- package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/steps/step-02-generate.md +321 -0
- package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/steps/step-03-complete.md +278 -0
- package/rihal/skills/actions/3-solutioning/rihal-generate-project-context/workflow.md +43 -0
- package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/SKILL.md +48 -0
- package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/generate-trail.md +38 -0
- package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/step-01-orientation.md +105 -0
- package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/step-02-walkthrough.md +89 -0
- package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/step-03-detail-pass.md +106 -0
- package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/step-04-testing.md +74 -0
- package/rihal/skills/actions/4-implementation/rihal-checkpoint-preview/step-05-wrapup.md +24 -0
- package/rihal/skills/actions/4-implementation/rihal-code-review/SKILL.md +31 -0
- package/rihal/skills/actions/4-implementation/rihal-code-review/steps/step-01-gather-context.md +62 -0
- package/rihal/skills/actions/4-implementation/rihal-code-review/steps/step-02-review.md +34 -0
- package/rihal/skills/actions/4-implementation/rihal-code-review/steps/step-03-triage.md +49 -0
- package/rihal/skills/actions/4-implementation/rihal-code-review/steps/step-04-present.md +129 -0
- package/rihal/skills/actions/4-implementation/rihal-code-review/workflow.md +55 -0
- package/rihal/skills/actions/4-implementation/rihal-correct-course/SKILL.md +29 -0
- package/rihal/skills/actions/4-implementation/rihal-correct-course/checklist.md +288 -0
- package/rihal/skills/actions/4-implementation/rihal-correct-course/workflow.md +267 -0
- package/rihal/skills/actions/4-implementation/rihal-dev-story/SKILL.md +36 -0
- package/rihal/skills/actions/4-implementation/rihal-dev-story/checklist.md +80 -0
- package/rihal/skills/actions/4-implementation/rihal-dev-story/workflow.md +450 -0
- package/rihal/skills/actions/4-implementation/rihal-qa-generate-e2e-tests/SKILL.md +31 -0
- package/rihal/skills/actions/4-implementation/rihal-qa-generate-e2e-tests/checklist.md +33 -0
- package/rihal/skills/actions/4-implementation/rihal-qa-generate-e2e-tests/workflow.md +136 -0
- package/rihal/skills/actions/4-implementation/rihal-retrospective/SKILL.md +30 -0
- package/rihal/skills/actions/4-implementation/rihal-retrospective/workflow.md +1479 -0
- package/rihal/skills/actions/4-implementation/rihal-scaffold-project/SKILL.md +77 -0
- package/rihal/skills/actions/4-implementation/rihal-scaffold-project/steps/step-01-target.md +17 -0
- package/rihal/skills/actions/4-implementation/rihal-scaffold-project/steps/step-02-safety.md +35 -0
- package/rihal/skills/actions/4-implementation/rihal-scaffold-project/steps/step-03-clone.md +50 -0
- package/rihal/skills/actions/4-implementation/rihal-scaffold-project/steps/step-04-post-setup.md +44 -0
- package/rihal/skills/actions/4-implementation/rihal-sprint-planning/SKILL.md +35 -0
- package/rihal/skills/actions/4-implementation/rihal-sprint-planning/checklist.md +43 -0
- package/rihal/skills/actions/4-implementation/rihal-sprint-planning/sprint-status-template.yaml +56 -0
- package/rihal/skills/actions/4-implementation/rihal-sprint-planning/workflow.md +284 -0
- package/rihal/skills/actions/4-implementation/rihal-sprint-status/SKILL.md +30 -0
- package/rihal/skills/actions/4-implementation/rihal-sprint-status/workflow.md +261 -0
- package/rihal/skills/agents/ahmed-hassani-director/SKILL.md +121 -0
- package/rihal/skills/agents/fatima-qa/SKILL.md +106 -0
- package/rihal/skills/agents/fatima-qa/skill-manifest.yaml +11 -0
- package/rihal/skills/agents/haitham-frontend/SKILL.md +120 -0
- package/rihal/skills/agents/hanzla-engineer/SKILL.md +109 -0
- package/rihal/skills/agents/hanzla-engineer/skill-manifest.yaml +11 -0
- package/rihal/skills/agents/hussain-pm/SKILL.md +107 -0
- package/rihal/skills/agents/hussain-pm/skill-manifest.yaml +11 -0
- package/rihal/skills/agents/hussain-sm/SKILL.md +104 -0
- package/rihal/skills/agents/hussain-sm/skill-manifest.yaml +11 -0
- package/rihal/skills/agents/layla-designer/SKILL.md +96 -0
- package/rihal/skills/agents/layla-designer/skill-manifest.yaml +11 -0
- package/rihal/skills/agents/majlis-council/SKILL.md +179 -0
- package/rihal/skills/agents/mariam-marketing/SKILL.md +133 -0
- package/rihal/skills/agents/nasser-eng-manager/SKILL.md +125 -0
- package/rihal/skills/agents/noor-writer/SKILL.md +104 -0
- package/rihal/skills/agents/noor-writer/explain-concept.md +20 -0
- package/rihal/skills/agents/noor-writer/mermaid-gen.md +20 -0
- package/rihal/skills/agents/noor-writer/skill-manifest.yaml +11 -0
- package/rihal/skills/agents/noor-writer/validate-doc.md +19 -0
- package/rihal/skills/agents/noor-writer/write-document.md +20 -0
- package/rihal/skills/agents/raees-orchestrator/SKILL.md +154 -0
- package/rihal/skills/agents/sadiq-analyst/SKILL.md +106 -0
- package/rihal/skills/agents/sadiq-analyst/skill-manifest.yaml +11 -0
- package/rihal/skills/agents/waleed-architect/SKILL.md +106 -0
- package/rihal/skills/agents/waleed-architect/skill-manifest.yaml +11 -0
- package/rihal/skills/agents/yousef-backend/SKILL.md +136 -0
- package/rihal/skills/agents/zahra-branding/SKILL.md +141 -0
- package/rihal/skills/agents/zayd-ml/SKILL.md +124 -0
- package/rihal/skills/core/module-help.csv +11 -0
- package/rihal/skills/core/module.yaml +25 -0
- package/rihal/skills/core/rihal-advanced-elicitation/SKILL.md +155 -0
- package/rihal/skills/core/rihal-advanced-elicitation/methods.csv +51 -0
- package/rihal/skills/core/rihal-advanced-elicitation/rihal-advanced-elicitation/SKILL.md +148 -0
- package/rihal/skills/core/rihal-advanced-elicitation/rihal-advanced-elicitation/methods.csv +51 -0
- package/rihal/skills/core/rihal-brainstorming/SKILL.md +82 -0
- package/rihal/skills/core/rihal-brainstorming/brain-methods.csv +62 -0
- package/rihal/skills/core/rihal-brainstorming/steps/step-01-session-setup.md +214 -0
- package/rihal/skills/core/rihal-brainstorming/steps/step-01b-continue.md +124 -0
- package/rihal/skills/core/rihal-brainstorming/steps/step-02a-user-selected.md +229 -0
- package/rihal/skills/core/rihal-brainstorming/steps/step-02b-ai-recommended.md +239 -0
- package/rihal/skills/core/rihal-brainstorming/steps/step-02c-random-selection.md +211 -0
- package/rihal/skills/core/rihal-brainstorming/steps/step-02d-progressive-flow.md +266 -0
- package/rihal/skills/core/rihal-brainstorming/steps/step-03-technique-execution.md +401 -0
- package/rihal/skills/core/rihal-brainstorming/steps/step-04-idea-organization.md +305 -0
- package/rihal/skills/core/rihal-brainstorming/template.md +15 -0
- package/rihal/skills/core/rihal-brainstorming/workflow.md +53 -0
- package/rihal/skills/core/rihal-clone-website/SKILL.md +395 -0
- package/rihal/skills/core/rihal-distillator/SKILL.md +205 -0
- package/rihal/skills/core/rihal-distillator/agents/distillate-compressor.md +116 -0
- package/rihal/skills/core/rihal-distillator/agents/round-trip-reconstructor.md +68 -0
- package/rihal/skills/core/rihal-distillator/resources/compression-rules.md +51 -0
- package/rihal/skills/core/rihal-distillator/resources/distillate-format-reference.md +227 -0
- package/rihal/skills/core/rihal-distillator/resources/splitting-strategy.md +78 -0
- package/rihal/skills/core/rihal-distillator/scripts/analyze_sources.py +300 -0
- package/rihal/skills/core/rihal-distillator/scripts/tests/test_analyze_sources.py +204 -0
- package/rihal/skills/core/rihal-editorial-review-prose/SKILL.md +108 -0
- package/rihal/skills/core/rihal-editorial-review-structure/SKILL.md +193 -0
- package/rihal/skills/core/rihal-help/SKILL.md +91 -0
- package/rihal/skills/core/rihal-index-docs/SKILL.md +80 -0
- package/rihal/skills/core/rihal-init/SKILL.md +119 -0
- package/rihal/skills/core/rihal-init/resources/core-module.yaml +25 -0
- package/rihal/skills/core/rihal-init/scripts/rihal_init.py +593 -0
- package/rihal/skills/core/rihal-init/scripts/tests/test_rihal_init.py +329 -0
- package/rihal/skills/core/rihal-party-mode/SKILL.md +77 -0
- package/rihal/skills/core/rihal-party-mode/steps/step-01-agent-loading.md +138 -0
- package/rihal/skills/core/rihal-party-mode/steps/step-02-discussion-orchestration.md +187 -0
- package/rihal/skills/core/rihal-party-mode/steps/step-03-graceful-exit.md +167 -0
- package/rihal/skills/core/rihal-party-mode/workflow.md +190 -0
- package/rihal/skills/core/rihal-review-adversarial-general/SKILL.md +55 -0
- package/rihal/skills/core/rihal-review-edge-case-hunter/SKILL.md +81 -0
- package/rihal/skills/core/rihal-shard-doc/SKILL.md +119 -0
- package/rihal/skills/core/rihal-shard-doc/rihal-shard-doc/SKILL.md +122 -0
- package/rihal/team.yaml +343 -0
- package/rihal/templates/UI-SPEC.md +127 -0
- package/rihal/templates/documentation-requirements.csv +11 -0
- package/rihal/templates/github/bug-template.md +53 -0
- package/rihal/templates/github/epic-template.md +57 -0
- package/rihal/templates/github/feature-template.md +55 -0
- package/rihal/templates/github/task-template.md +52 -0
- package/rihal/templates/milestone.md +147 -0
- package/rihal/templates/projects/api-backend/PROJECT.md +37 -0
- package/rihal/templates/projects/api-backend/REQUIREMENTS.md +38 -0
- package/rihal/templates/projects/api-backend/ROADMAP.md +92 -0
- package/rihal/templates/projects/api-backend/template.yaml +17 -0
- package/rihal/templates/projects/mobile-app/PROJECT.md +37 -0
- package/rihal/templates/projects/mobile-app/REQUIREMENTS.md +32 -0
- package/rihal/templates/projects/mobile-app/ROADMAP.md +93 -0
- package/rihal/templates/projects/mobile-app/template.yaml +17 -0
- package/rihal/templates/projects/saas-b2b/PROJECT.md +40 -0
- package/rihal/templates/projects/saas-b2b/REQUIREMENTS.md +38 -0
- package/rihal/templates/projects/saas-b2b/ROADMAP.md +95 -0
- package/rihal/templates/projects/saas-b2b/template.yaml +18 -0
- package/rihal/templates/settings-hooks.json +36 -0
- package/rihal/templates/sprint.md +70 -0
- package/rihal/workflows/add-phase.md +112 -0
- package/rihal/workflows/add-tests.md +351 -0
- package/rihal/workflows/add-todo.md +181 -0
- package/rihal/workflows/analyze-dependencies.md +138 -0
- package/rihal/workflows/audit-fix.md +190 -0
- package/rihal/workflows/audit-milestone.md +155 -0
- package/rihal/workflows/audit-uat.md +109 -0
- package/rihal/workflows/autonomous.md +992 -0
- package/rihal/workflows/brainstorm.md +203 -0
- package/rihal/workflows/chain.md +188 -0
- package/rihal/workflows/check-implementation-readiness.md +193 -0
- package/rihal/workflows/check-todos.md +177 -0
- package/rihal/workflows/cleanup.md +152 -0
- package/rihal/workflows/code-review-fix.md +529 -0
- package/rihal/workflows/code-review.md +566 -0
- package/rihal/workflows/complete-milestone.md +836 -0
- package/rihal/workflows/config.md +105 -0
- package/rihal/workflows/correct-course.md +190 -0
- package/rihal/workflows/council.md +565 -0
- package/rihal/workflows/create-epics-and-stories.md +373 -0
- package/rihal/workflows/create-story.md +297 -0
- package/rihal/workflows/dashboard.md +102 -0
- package/rihal/workflows/debug.md +256 -0
- package/rihal/workflows/decisions.md +107 -0
- package/rihal/workflows/dev-story.md +432 -0
- package/rihal/workflows/diff.md +74 -0
- package/rihal/workflows/discuss-phase-power.md +325 -0
- package/rihal/workflows/discuss-phase.md +1201 -0
- package/rihal/workflows/discuss.md +227 -0
- package/rihal/workflows/do.md +175 -0
- package/rihal/workflows/docs-update.md +261 -0
- package/rihal/workflows/document-project.md +180 -0
- package/rihal/workflows/enable-hooks.md +102 -0
- package/rihal/workflows/execute-sprint.md +514 -0
- package/rihal/workflows/execute.md +1478 -0
- package/rihal/workflows/explore.md +171 -0
- package/rihal/workflows/export-to-github.md +174 -0
- package/rihal/workflows/forensics.md +201 -0
- package/rihal/workflows/from-template.md +173 -0
- package/rihal/workflows/health.md +194 -0
- package/rihal/workflows/help.md +318 -0
- package/rihal/workflows/import.md +306 -0
- package/rihal/workflows/inbox.md +418 -0
- package/rihal/workflows/init.md +245 -0
- package/rihal/workflows/insert-phase.md +116 -0
- package/rihal/workflows/install.md +85 -0
- package/rihal/workflows/karpathy-audit.md +409 -0
- package/rihal/workflows/list-plans.md +146 -0
- package/rihal/workflows/list-workspaces.md +115 -0
- package/rihal/workflows/map-codebase.md +449 -0
- package/rihal/workflows/milestone-summary.md +206 -0
- package/rihal/workflows/new-milestone.md +616 -0
- package/rihal/workflows/new-project-research.md +262 -0
- package/rihal/workflows/new-project-roadmap.md +446 -0
- package/rihal/workflows/new-project.md +1503 -0
- package/rihal/workflows/new-workspace.md +167 -0
- package/rihal/workflows/next.md +162 -0
- package/rihal/workflows/note.md +156 -0
- package/rihal/workflows/notify-test.md +113 -0
- package/rihal/workflows/pause-work.md +243 -0
- package/rihal/workflows/plan-milestone-gaps.md +273 -0
- package/rihal/workflows/plan.md +1262 -0
- package/rihal/workflows/plant-seed.md +169 -0
- package/rihal/workflows/pr-branch.md +129 -0
- package/rihal/workflows/profile-user.md +162 -0
- package/rihal/workflows/progress.md +184 -0
- package/rihal/workflows/quick.md +105 -0
- package/rihal/workflows/remove-phase.md +155 -0
- package/rihal/workflows/remove-workspace.md +158 -0
- package/rihal/workflows/replay.md +160 -0
- package/rihal/workflows/rerun.md +77 -0
- package/rihal/workflows/research-phase.md +82 -0
- package/rihal/workflows/resume-work.md +326 -0
- package/rihal/workflows/review-adversarial.md +180 -0
- package/rihal/workflows/review-edge-case-hunter.md +214 -0
- package/rihal/workflows/review.md +281 -0
- package/rihal/workflows/scan.md +135 -0
- package/rihal/workflows/secure-phase.md +196 -0
- package/rihal/workflows/session-report.md +187 -0
- package/rihal/workflows/settings.md +185 -0
- package/rihal/workflows/ship.md +237 -0
- package/rihal/workflows/show.md +63 -0
- package/rihal/workflows/sprint-planning.md +166 -0
- package/rihal/workflows/sprint-status.md +124 -0
- package/rihal/workflows/stats.md +141 -0
- package/rihal/workflows/status.md +116 -0
- package/rihal/workflows/ui-phase.md +148 -0
- package/rihal/workflows/ui-review.md +130 -0
- package/rihal/workflows/undo.md +426 -0
- package/rihal/workflows/update.md +185 -0
- package/rihal/workflows/validate-phase.md +174 -0
- package/rihal/workflows/verify-phase.md +375 -0
- package/rihal/workflows/verify-work.md +717 -0
- package/rihal/workflows/why.md +130 -0
- package/rihal/workflows/workstream.md +197 -0
- package/server/dashboard.js +632 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# Workflow: rihal:stats
|
|
2
|
+
|
|
3
|
+
<purpose>
|
|
4
|
+
Read .rihal/state.json and display project statistics: phases, plans, council sessions, decisions, blockers, timeline, and git stats.
|
|
5
|
+
</purpose>
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Step 0 — Usage check
|
|
9
|
+
|
|
10
|
+
If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
/rihal:stats <argument-here>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
**Examples:**
|
|
17
|
+
```
|
|
18
|
+
/rihal:stats example 1
|
|
19
|
+
/rihal:stats example 2
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
STOP — do not proceed.
|
|
23
|
+
|
|
24
|
+
## Step 1 — Load state
|
|
25
|
+
|
|
26
|
+
Read `.rihal/state.json`:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
cat .rihal/state.json 2>/dev/null || echo '{}'
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Parse as JSON. If parse fails or file doesn't exist, print:
|
|
33
|
+
```
|
|
34
|
+
ℹ️ No rihal state found in this project yet.
|
|
35
|
+
Run /rihal:help to get started.
|
|
36
|
+
```
|
|
37
|
+
Exit.
|
|
38
|
+
|
|
39
|
+
Store the parsed state as `$STATE`.
|
|
40
|
+
|
|
41
|
+
## Step 2 — Compute statistics
|
|
42
|
+
|
|
43
|
+
From `$STATE`, extract:
|
|
44
|
+
|
|
45
|
+
- **phases**: `$STATE.phases.length` (total)
|
|
46
|
+
- **active_phases**: count of phases with status = "active"
|
|
47
|
+
- **plans_completed**: `$STATE.current_plan` (number completed in current phase)
|
|
48
|
+
- **council_sessions**: `$STATE.council_sessions.length`
|
|
49
|
+
- **chains_run**: `$STATE.executions.length` (all execution records)
|
|
50
|
+
- **decisions**: `$STATE.decisions.length` (total)
|
|
51
|
+
- **blockers_open**: count of blockers with status = "open"
|
|
52
|
+
- **blockers_resolved**: count of blockers with status = "resolved"
|
|
53
|
+
- **last_3_decisions**: extract summaries from the last 3 items in `$STATE.decisions` array (summary field or description field)
|
|
54
|
+
- **timeline_start**: `$STATE.created` (ISO timestamp of first session)
|
|
55
|
+
- **timeline_end**: `$STATE.last_session` (ISO timestamp of most recent activity)
|
|
56
|
+
|
|
57
|
+
## Step 3 — Compute timeline duration
|
|
58
|
+
|
|
59
|
+
Calculate human-readable duration from timeline_start to timeline_end:
|
|
60
|
+
- If more than 30 days: show "N months"
|
|
61
|
+
- If 1-30 days: show "N days"
|
|
62
|
+
- If less than 1 day: show "hours"
|
|
63
|
+
- If null/missing: show "never started"
|
|
64
|
+
|
|
65
|
+
## Step 4 — Compute git stats (if .git exists)
|
|
66
|
+
|
|
67
|
+
If `.git/` directory exists, run:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
git log --oneline --pretty=format:'%s' -- .rihal rihal/ | wc -l
|
|
71
|
+
git log --oneline --pretty=format:'%s' -- .rihal rihal/ | head -5
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Extract:
|
|
75
|
+
- **rihal_commits**: count of commits on .rihal or rihal paths
|
|
76
|
+
- **recent_commits**: last 5 commit messages
|
|
77
|
+
|
|
78
|
+
If `.git/` does not exist, set `rihal_commits` = 0 and omit recent_commits from output.
|
|
79
|
+
|
|
80
|
+
## Step 5 — Format and print output
|
|
81
|
+
|
|
82
|
+
Print a human-readable stats block:
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
📊 rihal:stats — Project Timeline
|
|
86
|
+
|
|
87
|
+
Project: $PROJECT_NAME
|
|
88
|
+
Created: $TIMELINE_START
|
|
89
|
+
Updated: $TIMELINE_END
|
|
90
|
+
Duration: $DURATION
|
|
91
|
+
|
|
92
|
+
Phases
|
|
93
|
+
Total: N
|
|
94
|
+
Active: N
|
|
95
|
+
Example: [01] Initial Setup, [02] API Development, [02.1] Urgent Fix
|
|
96
|
+
|
|
97
|
+
Plans
|
|
98
|
+
Completed: N
|
|
99
|
+
Example: [01.01] Schema setup, [01.02] Seed data
|
|
100
|
+
|
|
101
|
+
Council
|
|
102
|
+
Sessions: N
|
|
103
|
+
Decisions: N (last 3: "...", "...", "...")
|
|
104
|
+
|
|
105
|
+
Chains
|
|
106
|
+
Executions: N
|
|
107
|
+
|
|
108
|
+
Blockers
|
|
109
|
+
Open: N
|
|
110
|
+
Resolved: N
|
|
111
|
+
|
|
112
|
+
Git Activity (rihal-related)
|
|
113
|
+
Commits: N
|
|
114
|
+
Recent:
|
|
115
|
+
- [01.02] message-1
|
|
116
|
+
- [02.01] message-2
|
|
117
|
+
- [02.1] message-3
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
**ID Format Notes:**
|
|
121
|
+
- Phases display as `[NN]` (e.g., `[01]`, `[02]`)
|
|
122
|
+
- Decimal phases display as `[NN.M]` (e.g., `[02.1]`)
|
|
123
|
+
- Plans display as `[NN.MM]` (e.g., `[01.02]`)
|
|
124
|
+
- Include IDs in examples and recent commit references where available
|
|
125
|
+
|
|
126
|
+
If any counts are 0, still show them (e.g., "Phases: 0").
|
|
127
|
+
|
|
128
|
+
## Success Criteria
|
|
129
|
+
|
|
130
|
+
- [ ] Task completed as requested
|
|
131
|
+
- [ ] Output saved or reported
|
|
132
|
+
- [ ] State updated if necessary
|
|
133
|
+
- [ ] No errors encountered
|
|
134
|
+
|
|
135
|
+
## On Error
|
|
136
|
+
|
|
137
|
+
If arguments are invalid, missing files, or subagent fails:
|
|
138
|
+
- Validate inputs match expected format
|
|
139
|
+
- Check that required files exist
|
|
140
|
+
- Retry with clearer arguments or report the specific error to the user
|
|
141
|
+
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# Workflow: rihal:status
|
|
2
|
+
|
|
3
|
+
<purpose>
|
|
4
|
+
Render a human-readable project status dashboard. All data comes from a single `rihal-tools progress init` call — this workflow does NOT parse ROADMAP.md, walk SUMMARY.md files, or grep state.json itself. Rendering only. See `rihal-tools.cjs` `cmdProgress` for the source-of-truth logic (issue #159 M2.5).
|
|
5
|
+
|
|
6
|
+
**SSOT:** `.rihal/state.json`. `/rihal:status` and `/rihal:progress` both call the same CLI so they cannot disagree. If the CLI reports a drift insight, surface it — do not silently compensate.
|
|
7
|
+
</purpose>
|
|
8
|
+
|
|
9
|
+
<required_reading>
|
|
10
|
+
@.rihal/references/output-format.md
|
|
11
|
+
</required_reading>
|
|
12
|
+
|
|
13
|
+
<process>
|
|
14
|
+
|
|
15
|
+
## Step 1 — Fetch the snapshot
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
SNAPSHOT=$(node .rihal/bin/rihal-tools.cjs progress init)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Parse as JSON. If `SNAPSHOT.ok` is not true, print a one-line error and stop.
|
|
22
|
+
|
|
23
|
+
If `SNAPSHOT.project` is empty and `SNAPSHOT.phases` is empty, print:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
No state found. Run a council session or execute a plan to initialize state.
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Then stop.
|
|
30
|
+
|
|
31
|
+
## Step 2 — Print banner + dashboard
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
35
|
+
RIHAL ► STATUS — {SNAPSHOT.project}
|
|
36
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
37
|
+
|
|
38
|
+
╭─ Rihal Status — {SNAPSHOT.project} ─────────────────────╮
|
|
39
|
+
│ Milestone: {SNAPSHOT.milestone or "—"} │
|
|
40
|
+
│ Phase: {SNAPSHOT.current_phase or "none started"} │
|
|
41
|
+
│ Progress: {SNAPSHOT.bar} │
|
|
42
|
+
│ Updated: {relative_time(SNAPSHOT.updated)} │
|
|
43
|
+
╰─────────────────────────────────────────────────────────╯
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Step 3 — Phases section
|
|
47
|
+
|
|
48
|
+
For each entry in `SNAPSHOT.phases[]`:
|
|
49
|
+
|
|
50
|
+
- `▶` if `phase.number === SNAPSHOT.current_phase`
|
|
51
|
+
- `✓` if `phase.disk.summary_count > 0` AND matches `phase.disk.plan_count` (complete)
|
|
52
|
+
- `◆` if `phase.disk.plan_count > phase.disk.summary_count` (in progress)
|
|
53
|
+
- `○` otherwise (planned)
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
Phases:
|
|
57
|
+
▶ [04] Component compaction — in progress (1/3 plans)
|
|
58
|
+
✓ [03] Auth hardening — complete
|
|
59
|
+
○ [05] Billing rewrite — planned
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
If a phase number starts with `999.`, render with a `🅿` marker and the label `(parking lot)`.
|
|
63
|
+
|
|
64
|
+
## Step 4 — Insights (NEW — issue #159)
|
|
65
|
+
|
|
66
|
+
If `SNAPSHOT.insights[]` is non-empty, print above the Next Up section:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
Insights:
|
|
70
|
+
⚠ {insight.message} (for severity: warn)
|
|
71
|
+
ℹ {insight.message} (for severity: info)
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Do NOT hide insights. They exist because the CLI noticed something the workflow would otherwise gloss over.
|
|
75
|
+
|
|
76
|
+
## Step 5 — Recent decisions + blockers
|
|
77
|
+
|
|
78
|
+
- If `SNAPSHOT.decisions.length > 0`, print the last 3 (most recent first).
|
|
79
|
+
- If `SNAPSHOT.blockers.length > 0`, render each with ⚠ and the blocker description.
|
|
80
|
+
|
|
81
|
+
Omit a section entirely when its array is empty.
|
|
82
|
+
|
|
83
|
+
## Step 6 — Next Up (intent-tree)
|
|
84
|
+
|
|
85
|
+
Render `SNAPSHOT.routes[]` as a Route A/B/C menu:
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
Next Up:
|
|
89
|
+
|
|
90
|
+
[A] {route where letter === "A"}
|
|
91
|
+
→ {route.command}
|
|
92
|
+
|
|
93
|
+
[B] {route where letter === "B"}
|
|
94
|
+
→ {route.command}
|
|
95
|
+
|
|
96
|
+
[C] {route where letter === "C"}
|
|
97
|
+
→ {route.command}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Group routes by letter. If multiple routes share a letter, list them indented. If there are no routes, print the fallback suggestion from the CLI output.
|
|
101
|
+
|
|
102
|
+
</process>
|
|
103
|
+
|
|
104
|
+
## Success Criteria
|
|
105
|
+
|
|
106
|
+
- [ ] State read via `progress init` — no direct ROADMAP.md or SUMMARY.md parsing
|
|
107
|
+
- [ ] Drift insights surfaced if present
|
|
108
|
+
- [ ] Banner + dashboard printed
|
|
109
|
+
- [ ] Phases section shows symbols based on CLI-computed disk state
|
|
110
|
+
- [ ] Next Up is a route tree, not a single suggestion
|
|
111
|
+
|
|
112
|
+
## On Error
|
|
113
|
+
|
|
114
|
+
- **CLI not found:** "Rihal Code install missing. Run: npx @hanzlahabib/rihal-code install"
|
|
115
|
+
- **state.json invalid JSON:** report the CLI's exact error string — the CLI already has a clean error shape.
|
|
116
|
+
- **Unexpected shape:** fall back to the banner + "State present but unreadable. Try: node .rihal/bin/rihal-tools.cjs state read"
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# Workflow: rihal:ui-phase
|
|
2
|
+
|
|
3
|
+
<purpose>
|
|
4
|
+
Produce UI-SPEC.md with formalized design contract: color tokens, typography system, component inventory, interaction states, accessibility requirements. Detects frontend keywords (React, Next.js, Vue, Tailwind, CSS, UI) and suggests this workflow early if UI-SPEC.md is absent.
|
|
5
|
+
</purpose>
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Step 0 — Usage check
|
|
9
|
+
|
|
10
|
+
If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
/rihal:ui-phase <argument-here>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
**Examples:**
|
|
17
|
+
```
|
|
18
|
+
/rihal:ui-phase example 1
|
|
19
|
+
/rihal:ui-phase example 2
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
STOP — do not proceed.
|
|
23
|
+
|
|
24
|
+
<available_agent_types>
|
|
25
|
+
- `rihal-ui-designer` — UI specification generator
|
|
26
|
+
</available_agent_types>
|
|
27
|
+
|
|
28
|
+
## Step 0 — Initialize
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
INIT=$(node .rihal/bin/rihal-tools.cjs init ui-phase "$ARGUMENTS")
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Parse:
|
|
35
|
+
- `flags.existing_ui` — path to existing design system or Figma export
|
|
36
|
+
- `flags.design_system` — path to design tokens file
|
|
37
|
+
- `ui_spec_path` — `.rihal/UI-SPEC.md` (output location)
|
|
38
|
+
|
|
39
|
+
## Step 1 — Detect Existing UI Assets
|
|
40
|
+
|
|
41
|
+
If `flags.existing_ui` or `flags.design_system` provided:
|
|
42
|
+
```bash
|
|
43
|
+
EXISTING=$(node .rihal/bin/rihal-tools.cjs find-files --type=design-tokens)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Load existing design system, extract:
|
|
47
|
+
- Color palette (hex, variable names)
|
|
48
|
+
- Typography scales (font family, sizes, weights, line heights)
|
|
49
|
+
- Component list (buttons, forms, layouts, modals, etc.)
|
|
50
|
+
- Interaction patterns (hover, focus, active, disabled states)
|
|
51
|
+
|
|
52
|
+
## Step 2 — Spawn UI Designer
|
|
53
|
+
|
|
54
|
+
Spawn `rihal-ui-designer` subagent:
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
Task tool call:
|
|
58
|
+
subagent_type: "rihal-ui-designer"
|
|
59
|
+
description: "Generate UI-SPEC.md"
|
|
60
|
+
prompt: |
|
|
61
|
+
Generate a UI-SPEC.md file with the following structure:
|
|
62
|
+
|
|
63
|
+
1. **Color Tokens** — semantic variable names, hex values, accessibility contrast ratios
|
|
64
|
+
2. **Typography** — font family, scales (12px, 14px, 16px, 18px, 20px, 24px, etc.), weights, line heights
|
|
65
|
+
3. **Component Inventory** — list of UI components with property variants (size, color, state, disabled)
|
|
66
|
+
4. **Interaction States** — hover, focus, active, disabled, loading for interactive elements
|
|
67
|
+
5. **Accessibility** — WCAG 2.1 AA compliance checklist, color contrast requirements, keyboard navigation rules
|
|
68
|
+
6. **Responsive Breakpoints** — mobile, tablet, desktop breakpoints and stacking rules
|
|
69
|
+
|
|
70
|
+
{existing_design_system_data_if_provided}
|
|
71
|
+
|
|
72
|
+
Write to: {ui_spec_path}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Step 3 — Store Reference in State
|
|
76
|
+
|
|
77
|
+
Update state with UI-SPEC.md location:
|
|
78
|
+
```bash
|
|
79
|
+
node .rihal/bin/rihal-tools.cjs state set --ui-spec-path ".rihal/UI-SPEC.md"
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Print:
|
|
83
|
+
```
|
|
84
|
+
✅ UI-SPEC.md generated: {ui_spec_path}
|
|
85
|
+
|
|
86
|
+
Contains:
|
|
87
|
+
• Color Tokens
|
|
88
|
+
• Typography System
|
|
89
|
+
• Component Inventory
|
|
90
|
+
• Interaction States
|
|
91
|
+
• Accessibility Checklist
|
|
92
|
+
• Responsive Breakpoints
|
|
93
|
+
|
|
94
|
+
This spec will guide component development and design consistency.
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Step 4 — Modify plan.md Detection (referenced in plan workflow)
|
|
98
|
+
|
|
99
|
+
In plan.md workflow, add Step 0.6 — **Detect frontend keywords and suggest UI safety gate**
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
FRONTEND_KEYWORDS=$(node .rihal/bin/rihal-tools.cjs classify-tech --keywords "react,next.js,vue,tailwind,css,ui,component,design,frontend" "$ARGUMENTS")
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**If `FRONTEND_KEYWORDS.has_frontend == true` AND UI-SPEC.md missing:**
|
|
106
|
+
|
|
107
|
+
Check `config.yaml` for `workflow.ui_safety_gate`:
|
|
108
|
+
```yaml
|
|
109
|
+
workflow:
|
|
110
|
+
ui_safety_gate: true # default true
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
If enabled, print:
|
|
114
|
+
```
|
|
115
|
+
⚠ Frontend project detected. Before planning, create a design contract:
|
|
116
|
+
|
|
117
|
+
/rihal:ui-phase
|
|
118
|
+
|
|
119
|
+
This ensures consistent UI patterns, accessibility, and design tokens across all components.
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Offer via AskUserQuestion:
|
|
123
|
+
```
|
|
124
|
+
header: "UI Safety Gate"
|
|
125
|
+
question: "Should we define UI-SPEC.md before planning component development?"
|
|
126
|
+
options:
|
|
127
|
+
- "Yes, run /rihal:ui-phase first"
|
|
128
|
+
- "Skip for now, continue planning"
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
If "Yes, run /rihal:ui-phase first":
|
|
132
|
+
```
|
|
133
|
+
Run /rihal:ui-phase, then return to /rihal:plan
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Success Criteria
|
|
137
|
+
|
|
138
|
+
- UI-SPEC.md created with all 6 sections
|
|
139
|
+
- Color tokens documented with contrast ratios
|
|
140
|
+
- Component inventory complete with variants
|
|
141
|
+
- Accessibility checklist included
|
|
142
|
+
- State updated with UI-SPEC.md path
|
|
143
|
+
|
|
144
|
+
## On Error
|
|
145
|
+
|
|
146
|
+
- If subagent fails: provide template UI-SPEC.md
|
|
147
|
+
- If frontend detection fails: skip suggestion
|
|
148
|
+
- If config.yaml missing ui_safety_gate: default to true (suggest)
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# Workflow: rihal:ui-review
|
|
2
|
+
|
|
3
|
+
<purpose>
|
|
4
|
+
Retroactively audit completed UI work against the UI-SPEC.md contract. Validates across 6 pillars: color consistency, typography compliance, component inventory coverage, accessibility requirements, responsive behavior, and design coherence. Produces audit report with pass/fail per pillar.
|
|
5
|
+
</purpose>
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Step 0 — Usage check
|
|
9
|
+
|
|
10
|
+
If `$ARGUMENTS` is empty or contains only `--help` or `-h`:
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
/rihal:ui-review <argument-here>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
**Examples:**
|
|
17
|
+
```
|
|
18
|
+
/rihal:ui-review example 1
|
|
19
|
+
/rihal:ui-review example 2
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
STOP — do not proceed.
|
|
23
|
+
|
|
24
|
+
<available_agent_types>
|
|
25
|
+
- `rihal-ui-auditor` — UI compliance auditor
|
|
26
|
+
</available_agent_types>
|
|
27
|
+
|
|
28
|
+
## Step 0 — Initialize
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
INIT=$(node .rihal/bin/rihal-tools.cjs init ui-review "$ARGUMENTS")
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Parse:
|
|
35
|
+
- `flags.phase` — audit specific phase (optional, default: all completed phases)
|
|
36
|
+
- `flags.detailed` — include detailed findings per component
|
|
37
|
+
- `spec_path` — load UI-SPEC.md if exists
|
|
38
|
+
- `phase_name` — phase to audit
|
|
39
|
+
|
|
40
|
+
## Step 1 — Validate UI-SPEC.md Exists
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
test -f ".rihal/UI-SPEC.md"
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**If missing:**
|
|
47
|
+
```
|
|
48
|
+
⚠ UI-SPEC.md not found. Run /rihal:ui-phase first to create design contract.
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Exit.
|
|
52
|
+
|
|
53
|
+
## Step 2 — Load UI-SPEC.md and Codebase
|
|
54
|
+
|
|
55
|
+
Read UI-SPEC.md for:
|
|
56
|
+
- Expected color tokens and contrast ratios
|
|
57
|
+
- Typography scales (sizes, weights, line heights)
|
|
58
|
+
- Component inventory with variants
|
|
59
|
+
- Accessibility requirements
|
|
60
|
+
- Responsive breakpoints
|
|
61
|
+
|
|
62
|
+
Scan phase/codebase for:
|
|
63
|
+
- Component files (*.tsx, *.jsx, *.vue)
|
|
64
|
+
- CSS/styling files (*.css, *.module.css, tailwind.config.js, etc.)
|
|
65
|
+
- Accessibility attributes (aria-label, role, aria-describedby, etc.)
|
|
66
|
+
- Media queries and responsive rules
|
|
67
|
+
|
|
68
|
+
## Step 3 — Spawn UI Auditor
|
|
69
|
+
|
|
70
|
+
Spawn `rihal-ui-auditor` subagent:
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
Task tool call:
|
|
74
|
+
subagent_type: "rihal-ui-auditor"
|
|
75
|
+
description: "Audit UI against UI-SPEC.md"
|
|
76
|
+
prompt: |
|
|
77
|
+
Audit the completed UI implementation against UI-SPEC.md contract.
|
|
78
|
+
|
|
79
|
+
**UI-SPEC.md Reference:**
|
|
80
|
+
{contents_of_ui_spec_md}
|
|
81
|
+
|
|
82
|
+
**Codebase to Audit:**
|
|
83
|
+
{component_files_list}
|
|
84
|
+
{styling_rules}
|
|
85
|
+
{accessibility_attributes}
|
|
86
|
+
|
|
87
|
+
**Audit 6 pillars (pass/fail + findings):**
|
|
88
|
+
|
|
89
|
+
1. Color Consistency — All text/backgrounds match color tokens, contrast ratios >= WCAG AA
|
|
90
|
+
2. Typography Compliance — Font sizes, weights, line heights match typography scales
|
|
91
|
+
3. Component Inventory — All specified components present, all variants implemented
|
|
92
|
+
4. Accessibility — aria-labels, roles, keyboard navigation, focus rings per WCAG 2.1 AA
|
|
93
|
+
5. Responsive Behavior — Breakpoints match, layouts stack correctly, touch targets >= 44px mobile
|
|
94
|
+
6. Design Coherence — Visual consistency, spacing system, interaction patterns uniform
|
|
95
|
+
|
|
96
|
+
{detailed_findings_if_flag_set}
|
|
97
|
+
|
|
98
|
+
Output format: UI-REVIEW.md with per-pillar assessment + remediation tasks
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## Step 4 — Generate Audit Report
|
|
102
|
+
|
|
103
|
+
Store audit report at:
|
|
104
|
+
- `.rihal/UI-REVIEW-{phase-name}.md` (if phase specified)
|
|
105
|
+
- `.rihal/UI-REVIEW.md` (if all phases)
|
|
106
|
+
|
|
107
|
+
Print:
|
|
108
|
+
```
|
|
109
|
+
📋 UI Audit Complete
|
|
110
|
+
|
|
111
|
+
Pillars:
|
|
112
|
+
{pillar_name}: {PASS|FAIL} {summary}
|
|
113
|
+
|
|
114
|
+
Detailed findings: {audit_report_path}
|
|
115
|
+
|
|
116
|
+
{failed_pillar_remediation_recommendations}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Success Criteria
|
|
120
|
+
|
|
121
|
+
- UI-SPEC.md loaded and parsed
|
|
122
|
+
- All 6 pillars audited
|
|
123
|
+
- Audit report generated with pass/fail per pillar
|
|
124
|
+
- Remediation tasks filed (if issues found)
|
|
125
|
+
|
|
126
|
+
## On Error
|
|
127
|
+
|
|
128
|
+
- If UI-SPEC.md invalid: print error and suggest recreating
|
|
129
|
+
- If codebase has no components: report as INCOMPLETE
|
|
130
|
+
- If audit agent fails: provide template audit report structure
|