@plainconceptsplatform/agent-harness 3.3.1 → 3.4.1

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.
Files changed (95) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +454 -454
  3. package/cli/commands/join.js +259 -259
  4. package/cli/commands/migrate.js +310 -310
  5. package/cli/commands/shared.js +27 -27
  6. package/cli/commands/single.js +79 -79
  7. package/cli/commands/wizard.js +134 -134
  8. package/cli/fragments/ops-backlog/az.md +28 -28
  9. package/cli/fragments/ops-backlog/gh.md +28 -28
  10. package/cli/fragments/ops-backlog/jira.md +28 -28
  11. package/cli/fragments/ops-review/az.md +62 -62
  12. package/cli/fragments/ops-review/gh.md +51 -51
  13. package/cli/fragments/ops-review/gl.md +55 -55
  14. package/cli/fragments/ops-ship/gh.md +67 -67
  15. package/cli/fragments/ops-ship/gl.md +84 -84
  16. package/cli/index.js +116 -116
  17. package/cli/presets/clean.json +21 -21
  18. package/cli/presets/models.json +68 -68
  19. package/cli/presets/optimization.json +32 -32
  20. package/cli/presets/platforms.json +76 -76
  21. package/cli/presets/source.json +23 -23
  22. package/cli/steps/clean/index.js +120 -120
  23. package/cli/steps/copy/agents.js +120 -120
  24. package/cli/steps/copy/fullstack-engineer.js +89 -89
  25. package/cli/steps/copy/opencode-json.js +324 -324
  26. package/cli/steps/copy/skills.js +316 -316
  27. package/cli/steps/models/format.js +88 -88
  28. package/cli/steps/models/index.js +64 -64
  29. package/cli/steps/openspec/index.js +136 -136
  30. package/cli/steps/optimization/codegraph.js +141 -141
  31. package/cli/steps/optimization/detect.js +66 -66
  32. package/cli/steps/optimization/humanizer.js +17 -17
  33. package/cli/steps/optimization/index.js +158 -158
  34. package/cli/steps/optimization/memory.js +91 -91
  35. package/cli/steps/optimization/patch-guardrails.js +111 -111
  36. package/cli/steps/optimization/simple-english.js +17 -17
  37. package/cli/steps/optimization/skills-lock.js +30 -30
  38. package/cli/steps/platform/index.js +109 -109
  39. package/cli/steps/source/index.js +123 -123
  40. package/cli/utils/agent-color.js +111 -111
  41. package/cli/utils/copy.js +134 -134
  42. package/cli/utils/exec-spinner.js +47 -47
  43. package/cli/utils/exec.js +134 -134
  44. package/cli/utils/legacy-check.js +30 -30
  45. package/cli/utils/models-cache.js +58 -58
  46. package/cli/utils/models-pricing.js +42 -42
  47. package/cli/utils/paths.js +81 -80
  48. package/cli/utils/process.js +3 -3
  49. package/cli/utils/terminal.js +6 -6
  50. package/cli/utils/update-manifest.js +75 -75
  51. package/harness/.opencode/_gitignore +10 -9
  52. package/harness/.opencode/commands/ops-backlog.md +10 -10
  53. package/harness/.opencode/commands/ops-review.md +10 -8
  54. package/harness/.opencode/commands/ops-ship.md +9 -9
  55. package/harness/.opencode/commands/plan-archive.md +7 -5
  56. package/harness/.opencode/commands/plan-explore.md +11 -9
  57. package/harness/.opencode/commands/plan-propose.md +11 -9
  58. package/harness/.opencode/commands/plan-quick.md +7 -5
  59. package/harness/.opencode/commands/plan-story.md +11 -9
  60. package/harness/.opencode/commands/repo-audit.md +7 -5
  61. package/harness/.opencode/commands/repo-help.md +5 -5
  62. package/harness/.opencode/package.json +5 -5
  63. package/harness/.opencode/plugins/pc-subagent-monitor.js +184 -184
  64. package/harness/.opencode/plugins/pc-subagent-tiers.js +367 -354
  65. package/harness/.opencode/plugins/pc-system-reminders.js +386 -386
  66. package/harness/.opencode/scripts/check-diff.mjs +244 -244
  67. package/harness/.opencode/scripts/code-rules.mjs +288 -288
  68. package/harness/ARCHITECTURE.md +13 -13
  69. package/harness/DESIGN.md +13 -13
  70. package/harness/opencode.jsonc +36 -36
  71. package/harness/openspec/config.yaml +20 -20
  72. package/harness/skills-lock.json +17 -17
  73. package/package.json +12 -14
  74. package/skills/agent-harness-cli/SKILL.md +86 -86
  75. package/skills/pc-guardrails-generic/SKILL.md +53 -53
  76. package/skills/pc-guardrails-project/SKILL.md +8 -8
  77. package/skills/pc-make-architecture/structure-template.md +64 -64
  78. package/skills/pc-make-engineer/SKILL.md +59 -59
  79. package/skills/pc-make-engineer/template.md +36 -36
  80. package/skills/pc-make-guardrails/category-reference.md +112 -112
  81. package/skills/pc-make-merge-risk-assess/SKILL.md +70 -70
  82. package/skills/pc-make-merge-risk-assess/category-reference.md +114 -114
  83. package/skills/pc-ops-ship/SKILL.md +22 -22
  84. package/skills/pc-plan-apply/SKILL.md +86 -86
  85. package/skills/pc-plan-apply/simple-mode.md +21 -21
  86. package/skills/pc-plan-explore/SKILL.md +21 -21
  87. package/skills/pc-plan-goal/SKILL.md +91 -91
  88. package/skills/pc-plan-goal/failure-policy.md +30 -30
  89. package/skills/pc-plan-goal/output-mode.md +10 -10
  90. package/skills/pc-plan-propose/SKILL.md +125 -125
  91. package/skills/pc-plan-propose/task-annotation.md +39 -39
  92. package/skills/pc-plan-quick/SKILL.md +46 -46
  93. package/skills/pc-repo-audit/SKILL.md +44 -44
  94. package/skills/pc-repo-help/SKILL.md +87 -87
  95. package/skills/pc-repo-verify/SKILL.md +150 -150
@@ -1,46 +1,46 @@
1
- ---
2
- name: pc-plan-quick
3
- description: "Quick plan: analyze the codebase and create a task checklist using the Todo pane. No files, no OpenSpec. Invoked by the /plan-quick command."
4
- license: MIT
5
- ---
6
-
7
- Lightweight planning for a change that is already clear: read the codebase, write the task list to the Todo pane, stop. Use `/plan-explore` then `/plan-propose` instead when the idea is half-formed, the alternatives need thinking through, or the result should outlive the session.
8
-
9
- ## Rules
10
-
11
- - Never write, edit, or create a file. The only artefacts are Todo items and one question, so there is nothing to review afterwards and nothing to undo.
12
- - Never start the work, and never invoke `/plan-apply` or `/plan-propose` on the user's behalf. The question at the end is where they choose.
13
-
14
- ## Contracts
15
-
16
- One Todo item per task, in dependency order, each one action naming the files it touches:
17
-
18
- ```json
19
- {
20
- "todos": [
21
- { "content": "Add Project model to src/types.ts", "status": "pending", "priority": "high" },
22
- { "content": "Add projectId field to LoopOptions in src/types.ts", "status": "pending", "priority": "high" },
23
- { "content": "Create Project RPC endpoints in src/rpc/project/", "status": "pending", "priority": "medium" },
24
- { "content": "Build Accept page UI in src/board/components/CreateForm.tsx", "status": "pending", "priority": "medium" },
25
- { "content": "Run pnpm verify and check-diff, re-verify after fixes", "status": "pending", "priority": "low" }
26
- ]
27
- }
28
- ```
29
-
30
- Then ask:
31
-
32
- ```json
33
- {
34
- "questions": [
35
- {
36
- "header": "What next",
37
- "question": "What next?",
38
- "options": [
39
- { "label": "/plan-apply", "description": "Implement these tasks now (creates a feature branch and works through them)." },
40
- { "label": "/plan-propose", "description": "Turn this into a full OpenSpec proposal with agent assignments." },
41
- { "label": "Start on specific tasks", "description": "Tell me which tasks to start on." }
42
- ]
43
- }
44
- ]
45
- }
46
- ```
1
+ ---
2
+ name: pc-plan-quick
3
+ description: "Quick plan: analyze the codebase and create a task checklist using the Todo pane. No files, no OpenSpec. Invoked by the /plan-quick command."
4
+ license: MIT
5
+ ---
6
+
7
+ Lightweight planning for a change that is already clear: read the codebase, write the task list to the Todo pane, stop. Use `/plan-explore` then `/plan-propose` instead when the idea is half-formed, the alternatives need thinking through, or the result should outlive the session.
8
+
9
+ ## Rules
10
+
11
+ - Never write, edit, or create a file. The only artefacts are Todo items and one question, so there is nothing to review afterwards and nothing to undo.
12
+ - Never start the work, and never invoke `/plan-apply` or `/plan-propose` on the user's behalf. The question at the end is where they choose.
13
+
14
+ ## Contracts
15
+
16
+ One Todo item per task, in dependency order, each one action naming the files it touches:
17
+
18
+ ```json
19
+ {
20
+ "todos": [
21
+ { "content": "Add Project model to src/types.ts", "status": "pending", "priority": "high" },
22
+ { "content": "Add projectId field to LoopOptions in src/types.ts", "status": "pending", "priority": "high" },
23
+ { "content": "Create Project RPC endpoints in src/rpc/project/", "status": "pending", "priority": "medium" },
24
+ { "content": "Build Accept page UI in src/board/components/CreateForm.tsx", "status": "pending", "priority": "medium" },
25
+ { "content": "Run pnpm verify and check-diff, re-verify after fixes", "status": "pending", "priority": "low" }
26
+ ]
27
+ }
28
+ ```
29
+
30
+ Then ask:
31
+
32
+ ```json
33
+ {
34
+ "questions": [
35
+ {
36
+ "header": "What next",
37
+ "question": "What next?",
38
+ "options": [
39
+ { "label": "/plan-apply", "description": "Implement these tasks now (creates a feature branch and works through them)." },
40
+ { "label": "/plan-propose", "description": "Turn this into a full OpenSpec proposal with agent assignments." },
41
+ { "label": "Start on specific tasks", "description": "Tell me which tasks to start on." }
42
+ ]
43
+ }
44
+ ]
45
+ }
46
+ ```
@@ -1,44 +1,44 @@
1
- ---
2
- name: pc-repo-audit
3
- description: Audit every configured repository source root against the fullstack engineer's abilities and guardrails. Read-only. Invoked by the /repo-audit command.
4
- license: MIT
5
- ---
6
-
7
- # Repo Audit
8
-
9
- Audit the repository without modifying files, installing dependencies, creating backlog items, pushing, or contacting external platforms.
10
-
11
- ## Step 1: Load the audit rules
12
-
13
- 1. Read `.opencode/agents/fullstack-engineer.md`.
14
- 2. Parse every `@skill-name` in its `## Abilities` section.
15
- 3. Load every listed skill, guardrails first. If a referenced skill is missing, record it as a finding and continue with the installed abilities.
16
-
17
- ## Step 2: Establish scope
18
-
19
- 1. Read `.opencode/source-roots.json` when it exists. Use its non-empty `roots` array; otherwise use the repository root.
20
- 2. Inventory every root before judging it. Identify applications, services, libraries, tests, frontend or website projects, infrastructure, CI, package manifests, lockfiles, and generated-output rules.
21
- 3. Keep every read and command inside a configured source root or the repository root.
22
-
23
- ## Step 3: Audit every project
24
-
25
- Apply the loaded abilities and guardrails to each discovered project. Assess:
26
-
27
- - Architecture, module boundaries, naming, and duplicated responsibilities.
28
- - Tests, linting, type checks, builds, CI, and whether their configured commands match the project.
29
- - Dependency manifests, lockfiles, package-manager declarations, runtime versions, and workspace configuration.
30
- - Security and repository hygiene, including generated files, ignored artifacts, and likely secrets in tracked files.
31
- - Documentation and configuration drift across `AGENTS.md`, architecture/design documents, project scripts, and CI.
32
-
33
- For dependency findings, identify the exact manifest and lockfile involved. State the repository-defined remediation and immutable dependency validation command; never run a mutation-capable install during this audit.
34
-
35
- ## Step 4: Report
36
-
37
- Deduplicate findings across roots and report them grouped by project. Every finding must include:
38
-
39
- - Severity: critical, high, medium, or low.
40
- - Affected root and path.
41
- - Evidence and the applicable guardrail or ability, when one exists.
42
- - Impact and a concrete remediation or verification command.
43
-
44
- End with the projects audited, checks that could not run and why, and a short prioritized remediation list. If no findings exist, state that explicitly and list residual verification gaps.
1
+ ---
2
+ name: pc-repo-audit
3
+ description: Audit every configured repository source root against the fullstack engineer's abilities and guardrails. Read-only. Invoked by the /repo-audit command.
4
+ license: MIT
5
+ ---
6
+
7
+ # Repo Audit
8
+
9
+ Audit the repository without modifying files, installing dependencies, creating backlog items, pushing, or contacting external platforms.
10
+
11
+ ## Step 1: Load the audit rules
12
+
13
+ 1. Read `.opencode/agents/fullstack-engineer.md`.
14
+ 2. Parse every `@skill-name` in its `## Abilities` section.
15
+ 3. Load every listed skill, guardrails first. If a referenced skill is missing, record it as a finding and continue with the installed abilities.
16
+
17
+ ## Step 2: Establish scope
18
+
19
+ 1. Read `.opencode/source-roots.json` when it exists. Use its non-empty `roots` array; otherwise use the repository root.
20
+ 2. Inventory every root before judging it. Identify applications, services, libraries, tests, frontend or website projects, infrastructure, CI, package manifests, lockfiles, and generated-output rules.
21
+ 3. Keep every read and command inside a configured source root or the repository root.
22
+
23
+ ## Step 3: Audit every project
24
+
25
+ Apply the loaded abilities and guardrails to each discovered project. Assess:
26
+
27
+ - Architecture, module boundaries, naming, and duplicated responsibilities.
28
+ - Tests, linting, type checks, builds, CI, and whether their configured commands match the project.
29
+ - Dependency manifests, lockfiles, package-manager declarations, runtime versions, and workspace configuration.
30
+ - Security and repository hygiene, including generated files, ignored artifacts, and likely secrets in tracked files.
31
+ - Documentation and configuration drift across `AGENTS.md`, architecture/design documents, project scripts, and CI.
32
+
33
+ For dependency findings, identify the exact manifest and lockfile involved. State the repository-defined remediation and immutable dependency validation command; never run a mutation-capable install during this audit.
34
+
35
+ ## Step 4: Report
36
+
37
+ Deduplicate findings across roots and report them grouped by project. Every finding must include:
38
+
39
+ - Severity: critical, high, medium, or low.
40
+ - Affected root and path.
41
+ - Evidence and the applicable guardrail or ability, when one exists.
42
+ - Impact and a concrete remediation or verification command.
43
+
44
+ End with the projects audited, checks that could not run and why, and a short prioritized remediation list. If no findings exist, state that explicitly and list residual verification gaps.
@@ -1,87 +1,87 @@
1
- ---
2
- name: pc-repo-help
3
- description: The full command reference for this project - every /command with when to use it and the typical workflows. Load when the user asks for help, the command list, or at the end of repo initialization. Invoked by the /repo-help command and the repo-initialize flow.
4
- license: MIT
5
- ---
6
-
7
- # Repo Help
8
-
9
- Display the following reference to the user exactly as written. Do not summarize.
10
-
11
- ## Commands
12
-
13
- ### Not sure where to start?
14
-
15
- **`/init`** (alias: `/repo-initialize`): Initialize the project. Presents a single form with all setup questions (project type, history, architecture, design, evidence), then executes the selected steps.
16
-
17
- **`/repo-onboard`**: Guided tour of the project and its agentic infrastructure. Explains agents, commands, skills, OpenSpec workflow, and configuration. Read-only: no files modified.
18
-
19
- **`/repo-audit`**: Read-only health audit of every configured source root. Loads the fullstack engineer's abilities, checks guardrails, architecture, tooling, dependencies, lockfiles, tests, and CI, then reports prioritized findings.
20
-
21
- **`/plan-explore`**: Your backlog is unclear, you have a half-formed idea, or you need to think through a problem before committing to a plan. This is a thinking partner, not an executor.
22
-
23
- **`/plan-story <feature or need>`**: Write a detailed, repo-aware user story from a feature idea. Loads the `@user-story` skill (Mike Cohn format + Gherkin acceptance criteria), analyzes your codebase for concrete context, and produces a development-ready story with specific personas, real outcomes, and testable criteria grounded in your actual file paths, component names, and data models. No files written — just the story.
24
-
25
- **`/plan-propose <url or idea>`**: You have a work item URL, or a clear idea and you want to turn it into a structured plan (proposal, specs, tasks). Enriches each task with the best matching agent and model before showing you the plan. Nothing is implemented until you confirm.
26
-
27
- ---
28
-
29
- ### Ready to implement?
30
-
31
- **`/plan-quick <task>`**: Quick plan for focused changes. Reads the codebase, creates a task checklist in the Todo pane. No files, no OpenSpec. Then you decide: `/plan-apply` to implement, or `/plan-propose` for a full OpenSpec plan.
32
-
33
- **`/plan-apply`**: Implement a plan. Detects the source automatically: OpenSpec-annotated tasks (from `/plan-propose`) run as parallel subagent waves; Todo pane tasks (from `/plan-quick`) run sequentially in-session.
34
-
35
- **`/plan-goal <feature or URL>`**: Fully autonomous, no confirmations. Branches off `main`, then runs propose → apply → archive on that branch (each phase its own commit). Default: merges to `main` and deletes the branch. Add `push` keyword to push the branch only. Add `pr` keyword to push + create a PR. Built for loop-engineering / unattended runs. Stops only on a hard failure, leaving the branch unmerged.
36
-
37
- ---
38
-
39
- ### Done implementing?
40
-
41
- **`/ops-ship`**: Create a PR for the current feature branch with screenshots if UI changed.
42
-
43
- **`/ops-review`**: Read and triage PR review feedback. If you share a PR URL or say "I've added comments to the PR", it reads and classifies the review comments so you know what to fix. Fixing is done via `/plan-apply`.
44
-
45
- **`/ops-backlog`**: Create an issue in the backlog platform (GitHub, Azure DevOps, Jira) from a description.
46
-
47
- **`/plan-archive`**: Mark a completed change as archived in OpenSpec. Run this after the PR is merged.
48
-
49
- ---
50
-
51
- ### Maintaining the project?
52
-
53
- **`/make-engineer`**: Add a custom specialist engineer to the team. Interactive persona-driven form: pick a persona, then confirm an inspected-and-recommended set of skills (architecture/patterns like FSD or design patterns, framework, testing, infra) before anything installs. Future `/plan-apply` runs will prefer it when its domain matches.
54
-
55
- **`/make-architecture`**: Regenerate `ARCHITECTURE.md` from the current codebase. Safe to rerun any time the architecture evolves.
56
-
57
- **`/make-design`**: Regenerate `DESIGN.md` from the design system (Tailwind, CSS vars, tokens, etc.).
58
-
59
- **`/make-guardrails`**: Generate a `pc-guardrails-project` skill from `ARCHITECTURE.md` and project config files. Extracts concrete rules (architecture boundaries, naming, code style, testing, git workflow) that all agents must follow. Updates every `*-engineer.md` to load the skill.
60
-
61
- **`/repo-verify`**: Write the verification plan for the current branch's change: a journey through the new functionality as a fenced YAML block in `verification-plan.md`, stored with the change. The evidence workflow from `@plainconceptsplatform/workflows` replays it in headless Chromium when the pull request merges and archives one screenshot per waypoint in an `evidence/` folder beside the plan. Backend-only changes are traced through to the frontend when their contract is consumed there; a `not-applicable` stub is written when no UI surface is reachable. Does not run checks or take screenshots. Runs automatically in `/plan-goal`.
62
-
63
- **`/make-user-model <tier> <model>`**: Set the model for a tier (`plan`, `build`, or `fast`). Writes to `.opencode/harness.json` (`models`). Use `user` prefix for a personal override: `/make-user-model user fast opencode/big-pickle`. Use a model id or `current` for the active session model. Restart opencode for the `pc-subagent-tiers` plugin to rebuild tier agents.
64
-
65
- ---
66
-
67
- ### Typical workflows
68
-
69
- **Complex change:**
70
- ```
71
- /plan-explore ← optional: think it through first
72
- /plan-propose ← create the plan
73
- /plan-apply ← implement with the team
74
- /ops-ship ← ship
75
- /plan-archive ← close out
76
- ```
77
-
78
- **Quick change:**
79
- ```
80
- /plan-quick ← create a focused task list
81
- /plan-apply ← implement
82
- ```
83
-
84
- **Unattended / loop-engineering:**
85
- ```
86
- /plan-goal <description> ← full pipeline, no interaction
87
- ```
1
+ ---
2
+ name: pc-repo-help
3
+ description: The full command reference for this project - every /command with when to use it and the typical workflows. Load when the user asks for help, the command list, or at the end of repo initialization. Invoked by the /repo-help command and the repo-initialize flow.
4
+ license: MIT
5
+ ---
6
+
7
+ # Repo Help
8
+
9
+ Display the following reference to the user exactly as written. Do not summarize.
10
+
11
+ ## Commands
12
+
13
+ ### Not sure where to start?
14
+
15
+ **`/init`** (alias: `/repo-initialize`): Initialize the project. Presents a single form with all setup questions (project type, history, architecture, design, evidence), then executes the selected steps.
16
+
17
+ **`/repo-onboard`**: Guided tour of the project and its agentic infrastructure. Explains agents, commands, skills, OpenSpec workflow, and configuration. Read-only: no files modified.
18
+
19
+ **`/repo-audit`**: Read-only health audit of every configured source root. Loads the fullstack engineer's abilities, checks guardrails, architecture, tooling, dependencies, lockfiles, tests, and CI, then reports prioritized findings.
20
+
21
+ **`/plan-explore`**: Your backlog is unclear, you have a half-formed idea, or you need to think through a problem before committing to a plan. This is a thinking partner, not an executor.
22
+
23
+ **`/plan-story <feature or need>`**: Write a detailed, repo-aware user story from a feature idea. Loads the `@user-story` skill (Mike Cohn format + Gherkin acceptance criteria), analyzes your codebase for concrete context, and produces a development-ready story with specific personas, real outcomes, and testable criteria grounded in your actual file paths, component names, and data models. No files written — just the story.
24
+
25
+ **`/plan-propose <url or idea>`**: You have a work item URL, or a clear idea and you want to turn it into a structured plan (proposal, specs, tasks). Enriches each task with the best matching agent and model before showing you the plan. Nothing is implemented until you confirm.
26
+
27
+ ---
28
+
29
+ ### Ready to implement?
30
+
31
+ **`/plan-quick <task>`**: Quick plan for focused changes. Reads the codebase, creates a task checklist in the Todo pane. No files, no OpenSpec. Then you decide: `/plan-apply` to implement, or `/plan-propose` for a full OpenSpec plan.
32
+
33
+ **`/plan-apply`**: Implement a plan. Detects the source automatically: OpenSpec-annotated tasks (from `/plan-propose`) run as parallel subagent waves; Todo pane tasks (from `/plan-quick`) run sequentially in-session.
34
+
35
+ **`/plan-goal <feature or URL>`**: Fully autonomous, no confirmations. Branches off `main`, then runs propose → apply → archive on that branch (each phase its own commit). Default: merges to `main` and deletes the branch. Add `push` keyword to push the branch only. Add `pr` keyword to push + create a PR. Built for loop-engineering / unattended runs. Stops only on a hard failure, leaving the branch unmerged.
36
+
37
+ ---
38
+
39
+ ### Done implementing?
40
+
41
+ **`/ops-ship`**: Create a PR for the current feature branch with screenshots if UI changed.
42
+
43
+ **`/ops-review`**: Read and triage PR review feedback. If you share a PR URL or say "I've added comments to the PR", it reads and classifies the review comments so you know what to fix. Fixing is done via `/plan-apply`.
44
+
45
+ **`/ops-backlog`**: Create an issue in the backlog platform (GitHub, Azure DevOps, Jira) from a description.
46
+
47
+ **`/plan-archive`**: Mark a completed change as archived in OpenSpec. Run this after the PR is merged.
48
+
49
+ ---
50
+
51
+ ### Maintaining the project?
52
+
53
+ **`/make-engineer`**: Add a custom specialist engineer to the team. Interactive persona-driven form: pick a persona, then confirm an inspected-and-recommended set of skills (architecture/patterns like FSD or design patterns, framework, testing, infra) before anything installs. Future `/plan-apply` runs will prefer it when its domain matches.
54
+
55
+ **`/make-architecture`**: Regenerate `ARCHITECTURE.md` from the current codebase. Safe to rerun any time the architecture evolves.
56
+
57
+ **`/make-design`**: Regenerate `DESIGN.md` from the design system (Tailwind, CSS vars, tokens, etc.).
58
+
59
+ **`/make-guardrails`**: Generate a `pc-guardrails-project` skill from `ARCHITECTURE.md` and project config files. Extracts concrete rules (architecture boundaries, naming, code style, testing, git workflow) that all agents must follow. Updates every `*-engineer.md` to load the skill.
60
+
61
+ **`/repo-verify`**: Write the verification plan for the current branch's change: a journey through the new functionality as a fenced YAML block in `verification-plan.md`, stored with the change. The evidence workflow from `@plainconceptsplatform/workflows` replays it in headless Chromium when the pull request merges and archives one screenshot per waypoint in an `evidence/` folder beside the plan. Backend-only changes are traced through to the frontend when their contract is consumed there; a `not-applicable` stub is written when no UI surface is reachable. Does not run checks or take screenshots. Runs automatically in `/plan-goal`.
62
+
63
+ **`/make-user-model <tier> <model>`**: Set the model for a tier (`plan`, `build`, or `fast`). Writes to `.opencode/harness.json` (`models`). Use `user` prefix for a personal override: `/make-user-model user fast opencode/big-pickle`. Use a model id or `current` for the active session model. Restart opencode for the `pc-subagent-tiers` plugin to rebuild tier agents.
64
+
65
+ ---
66
+
67
+ ### Typical workflows
68
+
69
+ **Complex change:**
70
+ ```
71
+ /plan-explore ← optional: think it through first
72
+ /plan-propose ← create the plan
73
+ /plan-apply ← implement with the team
74
+ /ops-ship ← ship
75
+ /plan-archive ← close out
76
+ ```
77
+
78
+ **Quick change:**
79
+ ```
80
+ /plan-quick ← create a focused task list
81
+ /plan-apply ← implement
82
+ ```
83
+
84
+ **Unattended / loop-engineering:**
85
+ ```
86
+ /plan-goal <description> ← full pipeline, no interaction
87
+ ```