@plainconceptsplatform/agent-harness 3.1.1 → 3.3.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/LICENSE +21 -21
- package/README.md +24 -4
- package/cli/commands/join.js +259 -259
- package/cli/commands/migrate.js +310 -310
- package/cli/commands/shared.js +27 -27
- package/cli/commands/single.js +79 -79
- package/cli/commands/wizard.js +134 -134
- package/cli/fragments/ops-backlog/az.md +28 -28
- package/cli/fragments/ops-backlog/gh.md +28 -28
- package/cli/fragments/ops-backlog/jira.md +28 -28
- package/cli/fragments/ops-review/az.md +62 -62
- package/cli/fragments/ops-review/gh.md +51 -51
- package/cli/fragments/ops-review/gl.md +55 -55
- package/cli/fragments/ops-ship/gh.md +67 -67
- package/cli/fragments/ops-ship/gl.md +84 -84
- package/cli/index.js +116 -116
- package/cli/presets/clean.json +21 -21
- package/cli/presets/models.json +68 -68
- package/cli/presets/optimization.json +32 -32
- package/cli/presets/platforms.json +76 -76
- package/cli/presets/source.json +23 -23
- package/cli/steps/clean/index.js +120 -120
- package/cli/steps/copy/agents.js +120 -120
- package/cli/steps/copy/fullstack-engineer.js +89 -89
- package/cli/steps/copy/opencode-json.js +324 -324
- package/cli/steps/models/format.js +88 -88
- package/cli/steps/models/index.js +64 -64
- package/cli/steps/openspec/index.js +136 -136
- package/cli/steps/optimization/codegraph.js +141 -127
- package/cli/steps/optimization/detect.js +66 -66
- package/cli/steps/optimization/humanizer.js +17 -17
- package/cli/steps/optimization/index.js +158 -158
- package/cli/steps/optimization/memory.js +91 -88
- package/cli/steps/optimization/patch-guardrails.js +111 -111
- package/cli/steps/optimization/simple-english.js +17 -17
- package/cli/steps/optimization/skills-lock.js +30 -30
- package/cli/steps/platform/index.js +109 -109
- package/cli/steps/source/index.js +123 -123
- package/cli/utils/agent-color.js +111 -111
- package/cli/utils/copy.js +134 -131
- package/cli/utils/exec-spinner.js +47 -47
- package/cli/utils/exec.js +134 -134
- package/cli/utils/legacy-check.js +30 -30
- package/cli/utils/models-cache.js +58 -58
- package/cli/utils/models-pricing.js +42 -42
- package/cli/utils/process.js +3 -3
- package/cli/utils/terminal.js +6 -6
- package/cli/utils/update-manifest.js +75 -75
- package/harness/.opencode/commands/ops-backlog.md +10 -10
- package/harness/.opencode/commands/ops-review.md +8 -8
- package/harness/.opencode/commands/ops-ship.md +9 -9
- package/harness/.opencode/commands/plan-archive.md +5 -5
- package/harness/.opencode/commands/plan-explore.md +9 -9
- package/harness/.opencode/commands/plan-propose.md +9 -9
- package/harness/.opencode/commands/repo-help.md +5 -5
- package/harness/.opencode/package.json +5 -5
- package/harness/.opencode/plugins/pc-subagent-monitor.js +184 -184
- package/harness/.opencode/plugins/pc-subagent-tiers.js +354 -354
- package/harness/.opencode/plugins/pc-system-reminders.js +386 -386
- package/harness/.opencode/scripts/check-diff.mjs +244 -0
- package/harness/.opencode/scripts/code-rules.mjs +288 -0
- package/harness/ARCHITECTURE.md +13 -13
- package/harness/DESIGN.md +13 -13
- package/harness/opencode.jsonc +36 -36
- package/harness/openspec/config.yaml +20 -20
- package/harness/skills-lock.json +17 -17
- package/package.json +14 -12
- package/skills/agent-harness-cli/SKILL.md +86 -86
- package/skills/pc-guardrails-generic/SKILL.md +2 -1
- package/skills/pc-guardrails-project/SKILL.md +8 -8
- package/skills/pc-make-architecture/structure-template.md +64 -64
- package/skills/pc-make-engineer/SKILL.md +59 -59
- package/skills/pc-make-engineer/template.md +36 -36
- package/skills/pc-make-guardrails/category-reference.md +112 -112
- package/skills/pc-make-merge-risk-assess/SKILL.md +70 -70
- package/skills/pc-make-merge-risk-assess/category-reference.md +114 -114
- package/skills/pc-ops-ship/SKILL.md +22 -18
- package/skills/pc-plan-apply/SKILL.md +86 -86
- package/skills/pc-plan-apply/simple-mode.md +1 -1
- package/skills/pc-plan-explore/SKILL.md +21 -21
- package/skills/pc-plan-goal/SKILL.md +91 -91
- package/skills/pc-plan-goal/failure-policy.md +30 -30
- package/skills/pc-plan-goal/output-mode.md +10 -10
- package/skills/pc-plan-propose/SKILL.md +125 -125
- package/skills/pc-plan-propose/task-annotation.md +39 -39
- package/skills/pc-plan-quick/SKILL.md +1 -1
- package/skills/pc-repo-audit/SKILL.md +44 -44
|
@@ -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.
|