@srobroek/pi-code-quality 0.15.1 → 0.16.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/CHANGELOG.md +15 -0
- package/README.md +9 -6
- package/package.json +1 -1
- package/skills/quality-code-policy/SKILL.md +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## quality [0.16.0](https://github.com/srobroek/harness-plugins/compare/quality--v0.15.3...quality--v0.16.0) (2026-11-24)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **agent-reviewer:** code-reviewer and security-auditor run the project's tests ([#172](https://github.com/srobroek/harness-plugins/issues/172)) ([0d2693e](https://github.com/srobroek/harness-plugins/commit/0d2693eba31b4a1b48f4a2f6726a1170a948e503))
|
|
6
|
+
|
|
7
|
+
## quality [0.15.3](https://github.com/srobroek/harness-plugins/compare/quality--v0.15.2...quality--v0.15.3) (2026-11-24)
|
|
8
|
+
|
|
9
|
+
## quality [0.15.2](https://github.com/srobroek/harness-plugins/compare/quality--v0.15.1...quality--v0.15.2) (2026-11-24)
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **design:** make MCP servers opt-in ([1ecb493](https://github.com/srobroek/harness-plugins/commit/1ecb493f35ebfe9112f9e4661fa1b2e5ec457fc4))
|
|
14
|
+
* **tools:** restore portable MCP defaults ([f4c4930](https://github.com/srobroek/harness-plugins/commit/f4c4930b68477b6c050cc3e0a6ed62b6b8f8d402))
|
|
15
|
+
|
|
1
16
|
## quality [0.15.1](https://github.com/srobroek/harness-plugins/compare/quality--v0.15.0...quality--v0.15.1) (2026-11-23)
|
|
2
17
|
|
|
3
18
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ test audit with two helper tools, performance profiling, throwaway logic prototy
|
|
|
6
6
|
|
|
7
7
|
| Skill | When |
|
|
8
8
|
| --- | --- |
|
|
9
|
-
| `quality-code-policy` | The short policy: SOLID and invariants over YAGNI, DRY for knowledge that changes together, research first and compare with the library standards before building, middleware for cross-cutting concerns, Powertools on Lambda, OpenTelemetry by default, tests kept in step with the code, planning scaled by risk, a type check after multi-file or signature edits, refactors scoped to the change. It requires `quality-code-design` only for new behavior, refactors, hard bugs and reviews |
|
|
9
|
+
| `quality-code-policy` | The short policy: SOLID and invariants over YAGNI, DRY for knowledge that changes together, research first and compare with the library standards before building, middleware for cross-cutting concerns, Powertools on AWS Lambda projects, OpenTelemetry by default, tests kept in step with the code, planning scaled by risk, a type check after multi-file or signature edits, refactors scoped to the change. It requires `quality-code-design` only for new behavior, refactors, hard bugs and reviews |
|
|
10
10
|
| `quality-code-design` | Code design, investigation, implementation, refactoring, review, debugging or test-first work in any language. Picks IMPLEMENT, INVESTIGATE or REVIEW and loads only the references the task needs from `references/`, including `middleware.md` (handlers versus middleware, stack order, one error mapper), `telemetry.md` (OpenTelemetry setup and rules) and `feature-flags.md` (typed decisions, safe defaults, storage and removal) |
|
|
11
11
|
| `quality-profiling` | Slow or memory-heavy code, endpoints, builds or CLIs: set a target, reproduce with a fixed workload, baseline with variance, pick the profiler, change one thing, re-measure, report before/after. hyperfine, Linux perf and macOS Instruments live in `references/`; language tooling is the `lang-<language>-profiling` skills in the `lang-<language>` plugins |
|
|
12
12
|
| `quality-testing` | What to test and how many tests to keep. A workflow and five rules, with references for good and bad tests (`good-tests.md`, `bad-tests.md`), test levels (`what-to-test.md`), the test budget against sprawl (`test-budget.md`), maintenance and deletion with the code (`maintenance.md`), doubles (`doubles.md`), coverage and mutation signals (`signals.md`) and reviewing test changes (`review-tests.md`). Tool choices for coverage, mutation, property tests, fuzzing and flaky order come from the per-language concerns tables; the `lang-<language>-testing` skills and their `references/practice.md` give idioms |
|
|
@@ -24,9 +24,8 @@ prompt, from the shared coding core (`plugins/lib/src/coding-core.md`):
|
|
|
24
24
|
|
|
25
25
|
- `# Engineering standards`, the `standards` part. It tells the agent to research current
|
|
26
26
|
best practice and compare its plan with the `lang-<language>-libraries`, `toolchain-api`,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
handlers thin on Powertools for AWS Lambda, and to use OpenTelemetry.
|
|
27
|
+
best practice and compare its plan with the `lang-<language>-libraries` and `toolchain-api`
|
|
28
|
+
standards before it writes its own code; for AWS work it also uses `aws-guidance`. It reports each departure, puts cross-cutting concerns in middleware, keeps Lambda handlers thin and uses Powertools in AWS projects where the package fits, and uses OpenTelemetry.
|
|
30
29
|
- `# Repository engineering doc`, the `repo-doc` part. It tells the agent to read
|
|
31
30
|
`docs/engineering.md` (or the path `AGENTS.md` names) first, to update it in the same
|
|
32
31
|
change as any stack change, and to report a missing or stale doc.
|
|
@@ -99,7 +98,7 @@ The `adversarial-challenger` fallback copy (agent-reviewer's copy takes over whe
|
|
|
99
98
|
|
|
100
99
|
| Option | Default | Effect |
|
|
101
100
|
| --- | --- | --- |
|
|
102
|
-
| `tools` | `["context7_*"
|
|
101
|
+
| `tools` | `["context7_*"]` | Context7 is allowed by default. Set `tools` to add MCP patterns such as `aws-mcp_*` for AWS projects; an array replaces the default. `false` or `[]` adds no rules; the agent keeps its fixed allowlist. |
|
|
103
102
|
|
|
104
103
|
```jsonc
|
|
105
104
|
"options": { "tools": ["context7_*", "<server>_<tool>"] }
|
|
@@ -122,7 +121,6 @@ References to other skills name the skill (`toolchain-languages`, `sniff`,
|
|
|
122
121
|
`tune-model-prompt`, `design-prototype`); reference links inside a skill are
|
|
123
122
|
relative paths; "Scouts" became read-only explore subagents; the review mode
|
|
124
123
|
reports in the format the role or brief defines instead of an omp output schema.
|
|
125
|
-
These are the authoritative copies; earlier ones under `~/.claude/skills` are gone.
|
|
126
124
|
|
|
127
125
|
## Attribution
|
|
128
126
|
|
|
@@ -133,6 +131,11 @@ in `skills/quality-code-design/NOTICE`, with the licence text in
|
|
|
133
131
|
`skills/quality-code-design/LICENSE-mattpocock-skills`.
|
|
134
132
|
|
|
135
133
|
## Install
|
|
134
|
+
Install the Pi package from npm:
|
|
135
|
+
|
|
136
|
+
```sh
|
|
137
|
+
pi install npm:@srobroek/pi-code-quality
|
|
138
|
+
```
|
|
136
139
|
|
|
137
140
|
```sh
|
|
138
141
|
opencode plugin add 'github:srobroek/harness-plugins::path:plugins/quality/opencode'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@srobroek/pi-code-quality",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Code design and review guidance, a code-quality policy, testing standards and a test audit, performance profiling, and throwaway logic prototypes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -13,11 +13,11 @@ MUST Apply DRY to knowledge that must change together, not to code that merely l
|
|
|
13
13
|
|
|
14
14
|
MUST Use OpenFeature through one flag module with one provider over flags.yaml, SSM or AppConfig, chosen by need; ask before writing a missing provider. Decide once at the request or job edge and default to existing behavior. Libraries take caller decisions; plugins keep harness-specific options. See `quality-code-design`'s `feature-flags.md`.
|
|
15
15
|
|
|
16
|
-
MUST Before designing or writing code for a concern, research current best practice (official docs,
|
|
16
|
+
MUST Before designing or writing code for a concern, research current best practice (official docs, Context7 when configured for the project, or the web) and compare the plan with the preferred-library standards: `lang-<language>-libraries`, `toolchain-api` for API styles, `aws-guidance` for AWS projects' Lambda and service-client work, else `toolchain-languages`. Prefer the repository's code, the standard library, the framework's features, then a listed library; write your own only for a named gap, and report each departure from a standard. A dependency the request did not name needs the user's approval.
|
|
17
17
|
|
|
18
18
|
MUST Keep one agent-readable engineering doc current in every repository: `docs/engineering.md` (see `architecture-docs-files`), linked from `AGENTS.md`. It records the stack (languages, toolchain versions, frameworks, key libraries and why), layout and dependency direction, standards with approved departures and their reasons, and how to build, test and lint. Read it before you work in the repo. A change that alters the stack (a new or removed dependency, a toolchain bump, a new crate or module, a new tool or a departure) updates it in the same PR; a reviewer treats a stale or missing doc as a finding. Report each departure from a listed library or practice, with its reason, in the report and the PR body.
|
|
19
19
|
|
|
20
|
-
MUST Put cross-cutting concerns (auth, validation, request ids, logging, tracing, metrics, error mapping, timeouts, retries, rate limits) in the framework's middleware, interceptors or decorators. Use one middleware model per surface: in TypeScript, Hono for HTTP APIs (Lambda included) and Connect for RPC; elsewhere ASGI/FastAPI, `net/http` wrappers or tower. `toolchain-api` compares Connect, gRPC and OpenAPI. Keep AWS Lambda handlers thin. Use Powertools for AWS Lambda in Python, TypeScript, Java and .NET; Go and Rust use their runtime library, a structured logger and manual OTel. Instrument with OpenTelemetry over OTLP by default. `quality-code-design` has the rules in its `middleware.md` and `telemetry.md` references; each `lang-<language>-libraries` skill has the framework and SDK specifics.
|
|
20
|
+
MUST Put cross-cutting concerns (auth, validation, request ids, logging, tracing, metrics, error mapping, timeouts, retries, rate limits) in the framework's middleware, interceptors or decorators. Use one middleware model per surface: in TypeScript, Hono for HTTP APIs (Lambda included) and Connect for RPC; elsewhere ASGI/FastAPI, `net/http` wrappers or tower. `toolchain-api` compares Connect, gRPC and OpenAPI. Keep AWS Lambda handlers thin. Use Powertools for AWS Lambda in Python, TypeScript, Java and .NET when it fits an AWS project; Go and Rust use their runtime library, a structured logger and manual OTel. Instrument with OpenTelemetry over OTLP by default. `quality-code-design` has the rules in its `middleware.md` and `telemetry.md` references; each `lang-<language>-libraries` skill has the framework and SDK specifics.
|
|
21
21
|
|
|
22
22
|
MUST Use REUSE (`reuse annotate`, `LICENSES/`, `REUSE.toml`, `reuse lint` in CI) for per-file licence data instead of a custom licence guard. Keep a per-file licence exception at the file's boundary (its header or a narrow `REUSE.toml` path) and record third-party provenance in `NOTICE`. The `license-picker` skill's `references/reuse.md` has the setup.
|
|
23
23
|
|