paqad-ai 0.0.4 → 0.0.9
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/README.md +270 -11
- package/dist/cli/index.js +4596 -638
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +471 -66
- package/dist/index.js +5423 -1274
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/runtime/domains/_shared/agents/adversarial-reviewer.md +1 -1
- package/runtime/domains/_shared/agents/doc-maintainer.md +5 -0
- package/runtime/domains/_shared/agents/gap-detector.md +1 -1
- package/runtime/domains/_shared/agents/market-researcher.md +1 -1
- package/runtime/domains/_shared/agents/requirement-analyst.md +2 -2
- package/runtime/domains/_shared/agents/router.md +35 -4
- package/runtime/domains/_shared/agents/story-designer.md +1 -1
- package/runtime/domains/_shared/agents/test-planner.md +1 -1
- package/runtime/domains/_shared/rules/constitution.md +4 -0
- package/runtime/domains/_shared/rules/documentation.md +5 -0
- package/runtime/domains/_shared/skills/acceptance-criteria-gen/SKILL.md +49 -9
- package/runtime/domains/_shared/skills/acceptance-criteria-gen/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/acceptance-criteria-gen/references/criteria-template.md +10 -0
- package/runtime/domains/_shared/skills/adversarial-review/SKILL.md +53 -9
- package/runtime/domains/_shared/skills/adversarial-review/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/adversarial-review/references/review-dimensions.md +11 -0
- package/runtime/domains/_shared/skills/api-doc-maintainer/SKILL.md +46 -21
- package/runtime/domains/_shared/skills/api-doc-maintainer/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/api-doc-maintainer/references/api-entry-requirements.md +10 -0
- package/runtime/domains/_shared/skills/canonical-doc-sync/SKILL.md +52 -10
- package/runtime/domains/_shared/skills/canonical-doc-sync/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/canonical-doc-sync/references/drift-triage.md +9 -0
- package/runtime/domains/_shared/skills/diff-doc-sync/SKILL.md +66 -0
- package/runtime/domains/_shared/skills/diff-doc-sync/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/diff-doc-sync/references/diff-sync-rules.md +5 -0
- package/runtime/domains/_shared/skills/documentation-workflow/SKILL.md +64 -0
- package/runtime/domains/_shared/skills/documentation-workflow/agents/openai.yaml +4 -0
- package/runtime/domains/_shared/skills/documentation-workflow/references/workflow-stages.md +9 -0
- package/runtime/domains/_shared/skills/edge-case-detection/SKILL.md +49 -9
- package/runtime/domains/_shared/skills/edge-case-detection/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/edge-case-detection/references/edge-case-categories.md +10 -0
- package/runtime/domains/_shared/skills/error-catalog-maintainer/SKILL.md +45 -22
- package/runtime/domains/_shared/skills/error-catalog-maintainer/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/error-catalog-maintainer/references/error-entry-fields.md +11 -0
- package/runtime/domains/_shared/skills/existing-doc-checker/SKILL.md +53 -10
- package/runtime/domains/_shared/skills/existing-doc-checker/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/existing-doc-checker/references/doc-scan-order.md +8 -0
- package/runtime/domains/_shared/skills/glossary-maintainer/SKILL.md +50 -10
- package/runtime/domains/_shared/skills/glossary-maintainer/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/glossary-maintainer/references/term-guidelines.md +10 -0
- package/runtime/domains/_shared/skills/integration-doc-maintainer/SKILL.md +45 -21
- package/runtime/domains/_shared/skills/integration-doc-maintainer/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/integration-doc-maintainer/references/integration-contract-fields.md +10 -0
- package/runtime/domains/_shared/skills/request-classifier/SKILL.md +60 -10
- package/runtime/domains/_shared/skills/request-classifier/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/request-classifier/references/decision-rules.md +9 -0
- package/runtime/domains/_shared/skills/requirement-enrichment/SKILL.md +49 -9
- package/runtime/domains/_shared/skills/requirement-enrichment/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/requirement-enrichment/references/enrichment-checklist.md +9 -0
- package/runtime/domains/_shared/skills/scope-check/SKILL.md +63 -0
- package/runtime/domains/_shared/skills/scope-check/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/scope-check/references/scope-rules.md +5 -0
- package/runtime/domains/_shared/skills/sequence-planner/SKILL.md +54 -9
- package/runtime/domains/_shared/skills/sequence-planner/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/sequence-planner/references/sequencing-rules.md +11 -0
- package/runtime/domains/_shared/skills/session-resume/SKILL.md +69 -0
- package/runtime/domains/_shared/skills/session-resume/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/session-resume/references/resume-template.md +5 -0
- package/runtime/domains/_shared/skills/spec-diff/SKILL.md +63 -0
- package/runtime/domains/_shared/skills/spec-diff/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/spec-diff/references/spec-diff-rules.md +5 -0
- package/runtime/domains/_shared/skills/story-and-solution-writer/SKILL.md +53 -9
- package/runtime/domains/_shared/skills/story-and-solution-writer/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/story-and-solution-writer/references/story-template.md +10 -0
- package/runtime/domains/_shared/skills/test-per-ac-planner/SKILL.md +49 -9
- package/runtime/domains/_shared/skills/test-per-ac-planner/agents/openai.yaml +3 -0
- package/runtime/domains/_shared/skills/test-per-ac-planner/references/verification-mapping.md +8 -0
- package/runtime/domains/coding/agents/database-expert.md +1 -1
- package/runtime/domains/coding/agents/solution-architect.md +1 -1
- package/runtime/domains/coding/skills/business-logic-abuse-review/SKILL.md +61 -0
- package/runtime/domains/coding/skills/business-logic-abuse-review/agents/openai.yaml +3 -0
- package/runtime/domains/coding/skills/business-logic-abuse-review/references/abuse-cases.md +7 -0
- package/runtime/domains/coding/skills/database-design-review/SKILL.md +52 -12
- package/runtime/domains/coding/skills/database-design-review/agents/openai.yaml +3 -0
- package/runtime/domains/coding/skills/database-design-review/references/database-review-rubric.md +7 -0
- package/runtime/domains/coding/skills/dependency-advisory-triage/SKILL.md +63 -0
- package/runtime/domains/coding/skills/dependency-advisory-triage/agents/openai.yaml +3 -0
- package/runtime/domains/coding/skills/dependency-advisory-triage/references/advisory-normalization.md +5 -0
- package/runtime/domains/coding/skills/finding-normalizer/SKILL.md +56 -0
- package/runtime/domains/coding/skills/finding-normalizer/agents/openai.yaml +3 -0
- package/runtime/domains/coding/skills/finding-normalizer/references/finding-fields.md +5 -0
- package/runtime/domains/coding/skills/index-optimization/SKILL.md +52 -12
- package/runtime/domains/coding/skills/index-optimization/agents/openai.yaml +3 -0
- package/runtime/domains/coding/skills/index-optimization/references/index-review-guide.md +10 -0
- package/runtime/domains/coding/skills/permission-boundary-review/SKILL.md +62 -0
- package/runtime/domains/coding/skills/permission-boundary-review/agents/openai.yaml +3 -0
- package/runtime/domains/coding/skills/permission-boundary-review/references/boundary-checklist.md +5 -0
- package/runtime/domains/coding/skills/query-pattern-analysis/SKILL.md +51 -11
- package/runtime/domains/coding/skills/query-pattern-analysis/agents/openai.yaml +3 -0
- package/runtime/domains/coding/skills/query-pattern-analysis/references/query-risk-guide.md +8 -0
- package/runtime/domains/coding/skills/retest-verification/SKILL.md +60 -0
- package/runtime/domains/coding/skills/retest-verification/agents/openai.yaml +3 -0
- package/runtime/domains/coding/skills/retest-verification/references/retest-status-rules.md +5 -0
- package/runtime/domains/coding/skills/root-cause-analysis/SKILL.md +59 -0
- package/runtime/domains/coding/skills/root-cause-analysis/agents/openai.yaml +3 -0
- package/runtime/domains/coding/skills/root-cause-analysis/references/rca-sections.md +15 -0
- package/runtime/domains/coding/skills/runtime-surface-probing/SKILL.md +59 -0
- package/runtime/domains/coding/skills/runtime-surface-probing/agents/openai.yaml +3 -0
- package/runtime/domains/coding/skills/runtime-surface-probing/references/runtime-surface-checks.md +5 -0
- package/runtime/domains/coding/skills/ui-doc-maintainer/SKILL.md +51 -10
- package/runtime/domains/coding/skills/ui-doc-maintainer/agents/openai.yaml +3 -0
- package/runtime/domains/coding/skills/ui-doc-maintainer/references/ui-doc-fields.md +9 -0
- package/runtime/domains/coding/skills/user-flow-generation/SKILL.md +51 -10
- package/runtime/domains/coding/skills/user-flow-generation/agents/openai.yaml +3 -0
- package/runtime/domains/coding/skills/user-flow-generation/references/user-flow-sections.md +9 -0
- package/runtime/domains/coding/skills/ux-design-research/SKILL.md +52 -10
- package/runtime/domains/coding/skills/ux-design-research/agents/openai.yaml +3 -0
- package/runtime/domains/coding/skills/ux-design-research/references/research-capture-format.md +9 -0
- package/runtime/domains/coding/skills/ux-heuristic-evaluation/SKILL.md +51 -10
- package/runtime/domains/coding/skills/ux-heuristic-evaluation/agents/openai.yaml +3 -0
- package/runtime/domains/coding/skills/ux-heuristic-evaluation/references/heuristic-rubric.md +10 -0
- package/runtime/domains/coding/skills/ux-state-machine/SKILL.md +51 -10
- package/runtime/domains/coding/skills/ux-state-machine/agents/openai.yaml +3 -0
- package/runtime/domains/coding/skills/ux-state-machine/references/state-inventory-template.md +9 -0
- package/runtime/domains/coding/stacks/_shared/skills/regression-test-gen/SKILL.md +51 -10
- package/runtime/domains/coding/stacks/_shared/skills/regression-test-gen/agents/openai.yaml +3 -0
- package/runtime/domains/coding/stacks/_shared/skills/regression-test-gen/references/regression-layer-map.md +8 -0
- package/runtime/domains/coding/stacks/flutter/references/tools/flutter-quality-gate.md +4 -0
- package/runtime/domains/coding/stacks/laravel/capabilities/boost/mcp/boost-mcp.md +3 -0
- package/runtime/domains/coding/stacks/laravel/capabilities/boost/rules/boost.md +10 -0
- package/runtime/domains/coding/stacks/laravel/capabilities/inertia/rules/inertia.md +12 -0
- package/runtime/domains/coding/stacks/laravel/capabilities/react/rules/react.md +12 -0
- package/runtime/domains/coding/stacks/laravel/capabilities/tailwind/rules/tailwind.md +11 -0
- package/runtime/domains/coding/stacks/laravel/capabilities/vue/rules/vue.md +15 -0
- package/runtime/domains/coding/stacks/laravel/references/tools/artisan.md +2 -0
- package/runtime/domains/coding/stacks/laravel/references/tools/sail.md +1 -0
- package/runtime/domains/coding/stacks/laravel/references/tools/security-review-checklist.md +6 -0
- package/runtime/domains/coding/stacks/laravel/references/tools/testing.md +2 -0
- package/runtime/domains/coding/stacks/laravel/references/tools-catalog.md +1 -0
- package/runtime/domains/coding/stacks/react/capabilities/gatsby/rules/gatsby.md +7 -0
- package/runtime/domains/coding/stacks/react/capabilities/next/rules/next.md +7 -0
- package/runtime/domains/coding/stacks/react/capabilities/remix/rules/remix.md +7 -0
- package/runtime/domains/coding/stacks/react/capabilities/vite-spa/rules/vite-spa.md +7 -0
- package/runtime/domains/coding/stacks/react/references/tools/code-quality.md +10 -0
- package/runtime/domains/coding/stacks/react/references/tools/package-manager.md +10 -0
- package/runtime/domains/coding/stacks/react/references/tools/playwright.md +10 -0
- package/runtime/domains/coding/stacks/react/references/tools/security-review-checklist.md +6 -0
- package/runtime/domains/coding/stacks/react/references/tools/testing.md +16 -0
- package/runtime/domains/coding/stacks/react/references/tools-catalog.md +7 -0
- package/runtime/domains/coding/stacks/react/rules/architecture.md +7 -0
- package/runtime/domains/coding/stacks/react/rules/conventions/guide.md +4 -0
- package/runtime/domains/coding/stacks/react/rules/documentation/guide.md +4 -0
- package/runtime/domains/coding/stacks/react/rules/environment.md +7 -0
- package/runtime/domains/coding/stacks/react/rules/foundation/guide.md +4 -0
- package/runtime/domains/coding/stacks/react/rules/localization.md +7 -0
- package/runtime/domains/coding/stacks/react/rules/modules.md +7 -0
- package/runtime/domains/coding/stacks/react/rules/performance/guide.md +4 -0
- package/runtime/domains/coding/stacks/react/rules/security/guide.md +4 -0
- package/runtime/domains/coding/stacks/react/rules/testing/guide.md +4 -0
- package/runtime/domains/coding/stacks/react/rules/ui-safety.md +7 -0
- package/runtime/domains/coding/stacks/vue/capabilities/nuxt/rules/nuxt.md +7 -0
- package/runtime/domains/coding/stacks/vue/capabilities/quasar/rules/quasar.md +7 -0
- package/runtime/domains/coding/stacks/vue/capabilities/vite-spa/rules/vite-spa.md +7 -0
- package/runtime/domains/coding/stacks/vue/references/tools/code-quality.md +10 -0
- package/runtime/domains/coding/stacks/vue/references/tools/package-manager.md +10 -0
- package/runtime/domains/coding/stacks/vue/references/tools/playwright.md +10 -0
- package/runtime/domains/coding/stacks/vue/references/tools/security-review-checklist.md +6 -0
- package/runtime/domains/coding/stacks/vue/references/tools/testing.md +16 -0
- package/runtime/domains/coding/stacks/vue/references/tools-catalog.md +7 -0
- package/runtime/domains/coding/stacks/vue/rules/architecture.md +7 -0
- package/runtime/domains/coding/stacks/vue/rules/conventions/guide.md +4 -0
- package/runtime/domains/coding/stacks/vue/rules/documentation/guide.md +4 -0
- package/runtime/domains/coding/stacks/vue/rules/environment.md +7 -0
- package/runtime/domains/coding/stacks/vue/rules/foundation/guide.md +4 -0
- package/runtime/domains/coding/stacks/vue/rules/localization.md +7 -0
- package/runtime/domains/coding/stacks/vue/rules/modules.md +7 -0
- package/runtime/domains/coding/stacks/vue/rules/performance/guide.md +4 -0
- package/runtime/domains/coding/stacks/vue/rules/security/guide.md +4 -0
- package/runtime/domains/coding/stacks/vue/rules/testing/guide.md +4 -0
- package/runtime/domains/coding/stacks/vue/rules/ui-safety.md +7 -0
- package/runtime/hooks/context-budget-check.sh +29 -0
- package/runtime/hooks/post-destructive-approved.sh +31 -0
- package/runtime/hooks/pre-compact-preserve.mjs +21 -0
- package/runtime/hooks/pre-compact-preserve.sh +1 -12
- package/runtime/hooks/reset-doc-progress.sh +51 -0
- package/runtime/hooks/skill-index-gen.mjs +51 -0
- package/runtime/hooks/stale-doc-detector.sh +44 -0
- package/runtime/templates/agent-configs/agents.md.hbs +3 -1
- package/runtime/templates/agent-configs/claude.md.hbs +3 -1
- package/runtime/templates/agent-configs/gemini.md.hbs +3 -1
- package/runtime/templates/agent-configs/junie.md.hbs +17 -0
- package/runtime/templates/runner-scripts/pentest-audit-dependencies.sh.hbs +33 -0
- package/runtime/templates/runner-scripts/pentest-db-readonly.sh.hbs +35 -0
- package/runtime/templates/runner-scripts/pentest-enumerate-surface.sh.hbs +45 -0
- package/runtime/templates/runner-scripts/pentest-retest.sh.hbs +32 -0
- package/runtime/templates/runner-scripts/pentest-runtime-checks.sh.hbs +53 -0
- package/runtime/templates/runner-scripts/pentest-scan-secrets.sh.hbs +38 -0
- package/runtime/templates/runner-scripts/document-project.sh.hbs +0 -3
package/README.md
CHANGED
|
@@ -1,27 +1,286 @@
|
|
|
1
1
|
# paqad-ai
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`paqad-ai` is a documentation-first AI agency framework for Laravel, Flutter, React, and Vue workflows. It scaffolds project rules, documentation, registries, health checks, and agent-facing entry files so teams can run a consistent workflow across Claude Code, Codex CLI, Gemini CLI, and Junie.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## About paqad-ai
|
|
6
|
+
|
|
7
|
+
Modern AI-assisted delivery breaks down when every repository invents its own prompts, rules, and folder conventions. `paqad-ai` standardizes that layer by generating framework-owned project artifacts that keep implementation, documentation, and verification aligned.
|
|
8
|
+
|
|
9
|
+
The framework is designed to help teams:
|
|
10
|
+
|
|
11
|
+
- onboard projects into a repeatable AI workflow
|
|
12
|
+
- keep project rules and architecture guidance visible to coding agents
|
|
13
|
+
- generate structured documentation scaffolds instead of ad hoc notes
|
|
14
|
+
- wire in stack-aware MCP defaults for supported environments
|
|
15
|
+
- run health checks and refresh framework-managed artifacts safely
|
|
16
|
+
|
|
17
|
+
## Supported Adapters
|
|
18
|
+
|
|
19
|
+
`paqad-ai` currently supports:
|
|
20
|
+
|
|
21
|
+
- Claude Code
|
|
22
|
+
- Codex CLI
|
|
23
|
+
- Gemini CLI
|
|
24
|
+
- Junie for JetBrains IDEs and Junie CLI
|
|
25
|
+
|
|
26
|
+
Junie support is intentionally limited to the documented repo-managed surface:
|
|
27
|
+
|
|
28
|
+
- `.junie/AGENTS.md`
|
|
29
|
+
- `.junie/mcp/mcp.json`
|
|
30
|
+
|
|
31
|
+
## Installation
|
|
32
|
+
|
|
33
|
+
Prerequisites:
|
|
34
|
+
|
|
35
|
+
- Node.js 25 or newer
|
|
36
|
+
- pnpm 10 or newer for local development
|
|
37
|
+
|
|
38
|
+
Install globally:
|
|
6
39
|
|
|
7
40
|
```bash
|
|
8
|
-
npx paqad-ai install
|
|
9
|
-
# or
|
|
10
41
|
npm install -g paqad-ai
|
|
11
42
|
```
|
|
12
43
|
|
|
13
|
-
|
|
44
|
+
Or run it directly with `npx`:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npx paqad-ai install
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Quick Start
|
|
51
|
+
|
|
52
|
+
Bootstrap the framework into an existing project:
|
|
14
53
|
|
|
15
54
|
```bash
|
|
16
55
|
paqad-ai onboard --project-root .
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Run framework health checks:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
paqad-ai doctor --project-root .
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Refresh framework-managed artifacts:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
paqad-ai update --project-root .
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Quality Gates
|
|
71
|
+
|
|
72
|
+
Local and CI verification use the same `pnpm run ci` pipeline:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
pnpm run ci
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
This runs typecheck, lint, formatting checks, test coverage, and build validation. Coverage thresholds are enforced at 90% for statements, branches, functions, and lines.
|
|
79
|
+
|
|
80
|
+
## What paqad-ai Generates
|
|
81
|
+
|
|
82
|
+
Depending on the detected stack profile and selected providers, `paqad-ai` can generate:
|
|
83
|
+
|
|
84
|
+
- adapter entry files such as `CLAUDE.md`, `AGENTS.md`, `GEMINI.md`, and `.junie/AGENTS.md`
|
|
85
|
+
- project profile and onboarding metadata under `.agency/`
|
|
86
|
+
- project rules under `docs/rules/`
|
|
87
|
+
- module scaffolds and registries under `docs/`
|
|
88
|
+
- stack docs under `docs/framework/stack/`
|
|
89
|
+
- design-system and architecture guidance
|
|
90
|
+
- stack-aware MCP configuration for supported adapters
|
|
91
|
+
- runnable project health-check scripts
|
|
92
|
+
|
|
93
|
+
## Documentation Workflow
|
|
94
|
+
|
|
95
|
+
`paqad-ai` no longer exposes a standalone `document` command.
|
|
96
|
+
|
|
97
|
+
Documentation creation is handled through the framework workflow after onboarding. The active agent can receive a request such as "create documentation" and the workflow will:
|
|
98
|
+
|
|
99
|
+
- start from the onboarded project state in `.agency/`
|
|
100
|
+
- re-check the real application from `composer.json`, `package.json`, and stack manifests
|
|
101
|
+
- update the effective stack context if the live application disagrees with stored onboarding metadata
|
|
102
|
+
- create canonical docs step by step
|
|
103
|
+
- keep `.agency/doc-progress.json` as the canonical progress ledger
|
|
104
|
+
|
|
105
|
+
## Command Reference
|
|
106
|
+
|
|
107
|
+
### `install`
|
|
108
|
+
|
|
109
|
+
Bootstraps the framework into a project and writes framework metadata.
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
paqad-ai install --project-root .
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Options:
|
|
116
|
+
|
|
117
|
+
- `--project-root <path>`: target project directory. Defaults to the current working directory.
|
|
118
|
+
|
|
119
|
+
Behavior:
|
|
120
|
+
|
|
121
|
+
- creates the framework home directory if needed
|
|
122
|
+
- writes framework version metadata for the target project
|
|
123
|
+
- prints a JSON result with `framework_home`, `project_root`, and `version`
|
|
124
|
+
|
|
125
|
+
### `onboard`
|
|
126
|
+
|
|
127
|
+
Runs full project onboarding and generates the framework-managed scaffold.
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
paqad-ai onboard --project-root .
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
When run without flags in an interactive terminal, `onboard` prompts for:
|
|
134
|
+
|
|
135
|
+
1. **Providers** — multi-select: Codex, Claude Code, Gemini, Junie (one or more required).
|
|
136
|
+
2. **Domain** — currently `coding` is the primary shipped workflow.
|
|
137
|
+
3. **Manifest-driven stack scan** — `composer.json`, `package.json`, lockfiles, and supported config files are scanned first.
|
|
138
|
+
4. **Fallback stack details** — only shown when detection is missing or ambiguous. Laravel asks for Inertia, Frontend (None / React.js / Vue.js), Tailwind, Boost. React asks for app type and Tailwind. Vue asks for app type and Tailwind.
|
|
139
|
+
|
|
140
|
+
Examples (non-interactive / CI):
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
# Laravel with React and Tailwind, Claude Code only
|
|
144
|
+
paqad-ai onboard --project-root . --stack laravel --capability react tailwind --providers claude-code
|
|
145
|
+
|
|
146
|
+
# Flutter with all providers
|
|
147
|
+
paqad-ai onboard --project-root . --stack flutter
|
|
148
|
+
|
|
149
|
+
# Next.js with Tailwind
|
|
150
|
+
paqad-ai onboard --project-root . --stack react --capability next tailwind
|
|
151
|
+
|
|
152
|
+
# Plain Laravel
|
|
153
|
+
paqad-ai onboard --project-root . --stack laravel
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Options:
|
|
157
|
+
|
|
158
|
+
- `--project-root <path>`: target project directory. Defaults to the current working directory.
|
|
159
|
+
- `--domain <domain>`: force the target domain. Current values are `coding` and `content`.
|
|
160
|
+
- `--stack <stack>`: fallback/manual override for the target stack. Values: `laravel`, `flutter`, `react`, `vue`, `short-video`.
|
|
161
|
+
- `--capability <capability...>`: fallback/manual trait override — `inertia`, `react`, `vue`, `tailwind`, `boost`, `next`, `remix`, `vite-spa`, `gatsby`, `nuxt`, `quasar`.
|
|
162
|
+
- `--providers <provider...>`: one or more providers — `codex-cli`, `claude-code`, `gemini-cli`, `junie`.
|
|
163
|
+
|
|
164
|
+
Supported capabilities per stack:
|
|
165
|
+
|
|
166
|
+
| Stack | Capabilities |
|
|
167
|
+
| ------- | ------------------------------------------------- |
|
|
168
|
+
| Laravel | `inertia`, `react`, `vue`, `tailwind`, `boost` |
|
|
169
|
+
| Flutter | _(none)_ |
|
|
170
|
+
| React | `next`, `remix`, `vite-spa`, `gatsby`, `tailwind` |
|
|
171
|
+
| Vue | `nuxt`, `vite-spa`, `quasar`, `tailwind` |
|
|
172
|
+
|
|
173
|
+
Notes:
|
|
174
|
+
|
|
175
|
+
- `react` and `vue` are mutually exclusive. Select only one frontend framework.
|
|
176
|
+
- Standalone React and Vue projects are supported directly; Laravel continues to use `react` and `vue` as capabilities when paired with backend-driven frontend code.
|
|
177
|
+
- Standalone React/Vue onboarding copies the selected sub-stack rule bundle, so `next`, `remix`, `vite-spa`, `gatsby`, `nuxt`, and `quasar` each bring their own project rules when selected.
|
|
178
|
+
- Laravel testing commands now detect Pest and PHPUnit from Composer dependencies and write the matching defaults into the generated project profile.
|
|
179
|
+
- Docker, Docker Compose, and Laravel Sail are detected as environment traits and mirrored into `.agency/stack-snapshot.json` and `docs/framework/stack/`.
|
|
180
|
+
- Stack truth is stored canonically in `.agency/stack-snapshot.json` and mirrored for humans under `docs/framework/stack/`.
|
|
181
|
+
- If no `--providers` flag is passed in a non-interactive context, files for all four providers are generated.
|
|
182
|
+
- Onboarding is idempotent: running it twice with the same selections produces the same output.
|
|
183
|
+
|
|
184
|
+
Behavior:
|
|
185
|
+
|
|
186
|
+
- runs project detection
|
|
187
|
+
- resolves rules, agents, skills, MCP configs, templates, and scripts from the detected stack profile plus any fallback/manual overrides
|
|
188
|
+
- generates provider-specific entry files only for the selected providers
|
|
189
|
+
- writes `.agency/project-profile.yaml`, `.agency/onboarding-manifest.json`, `.agency/stack-snapshot.json`, `.agency/stack-drift.json`, and related framework artifacts
|
|
190
|
+
|
|
191
|
+
### `doctor`
|
|
192
|
+
|
|
193
|
+
Runs framework health checks and prints a machine-readable report.
|
|
194
|
+
|
|
195
|
+
```bash
|
|
17
196
|
paqad-ai doctor --project-root .
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
Options:
|
|
200
|
+
|
|
201
|
+
- `--project-root <path>`: target project directory. Defaults to the current working directory.
|
|
202
|
+
|
|
203
|
+
Behavior:
|
|
204
|
+
|
|
205
|
+
- validates framework artifacts, profile schema, docs scaffold, indexes, scripts, hooks, adapter config, MCP config, and other generated assets
|
|
206
|
+
- prints a JSON health report
|
|
207
|
+
- exits with code `1` when overall status is `fail`, otherwise `0`
|
|
208
|
+
|
|
209
|
+
### `refresh`
|
|
210
|
+
|
|
211
|
+
Refreshes derived framework artifacts without running full onboarding.
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
paqad-ai refresh --project-root .
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
Examples:
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
paqad-ai refresh --project-root . --design-system
|
|
221
|
+
paqad-ai refresh --project-root . --stack
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
Options:
|
|
225
|
+
|
|
226
|
+
- `--project-root <path>`: target project directory. Defaults to the current working directory.
|
|
227
|
+
- `--design-system`: refresh design-system markdown from design tokens.
|
|
228
|
+
- `--stack`: refresh the cached stack snapshot.
|
|
229
|
+
|
|
230
|
+
Behavior:
|
|
231
|
+
|
|
232
|
+
- refreshes design-system docs when enabled
|
|
233
|
+
- refreshes stack introspection snapshots and `docs/framework/stack/**` when enabled
|
|
234
|
+
- when no specific refresh flags are passed, both refresh paths run
|
|
235
|
+
|
|
236
|
+
### `update`
|
|
237
|
+
|
|
238
|
+
Regenerates framework-managed artifacts for an already onboarded project.
|
|
239
|
+
|
|
240
|
+
```bash
|
|
18
241
|
paqad-ai update --project-root .
|
|
19
242
|
```
|
|
20
243
|
|
|
21
|
-
|
|
244
|
+
Options:
|
|
245
|
+
|
|
246
|
+
- `--project-root <path>`: target project directory. Defaults to the current working directory.
|
|
247
|
+
|
|
248
|
+
Behavior:
|
|
249
|
+
|
|
250
|
+
- reads the existing project profile and onboarding manifest
|
|
251
|
+
- regenerates framework-owned artifacts in a temporary workspace
|
|
252
|
+
- updates auto-managed files in the target project
|
|
253
|
+
- prints a JSON report with regenerated files, skipped files, and new scripts
|
|
254
|
+
|
|
255
|
+
Use `update` when the package version changes or when framework-managed scaffolding needs to be refreshed without re-running project setup decisions.
|
|
256
|
+
|
|
257
|
+
## Development
|
|
258
|
+
|
|
259
|
+
Install dependencies:
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
pnpm install
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
Run the full project checks:
|
|
266
|
+
|
|
267
|
+
```bash
|
|
268
|
+
pnpm run ci
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
Useful local commands:
|
|
272
|
+
|
|
273
|
+
```bash
|
|
274
|
+
pnpm run test
|
|
275
|
+
pnpm run typecheck
|
|
276
|
+
pnpm run lint
|
|
277
|
+
pnpm run build
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
## Contributing
|
|
281
|
+
|
|
282
|
+
Contributions that improve framework reliability, adapter support, documentation quality, or stack coverage are welcome. Keep changes aligned with the framework’s documentation-first approach and ensure generated artifacts, validation logic, and tests remain consistent.
|
|
283
|
+
|
|
284
|
+
## License
|
|
22
285
|
|
|
23
|
-
-
|
|
24
|
-
- `onboard`: generate framework-owned project scaffolding
|
|
25
|
-
- `doctor`: run health checks
|
|
26
|
-
- `refresh`: refresh framework indexes and registries
|
|
27
|
-
- `update`: regenerate framework-managed artifacts
|
|
286
|
+
`paqad-ai` is open-sourced software licensed under the [MIT license](LICENSE).
|