Skip to content

feat: add harness-engineering skill - #531

Closed
gh-xj wants to merge 15 commits into
obra:mainfrom
gh-xj:feat/harness-e2e-validation-skill
Closed

gh-xj wants to merge 15 commits into
obra:mainfrom
gh-xj:feat/harness-e2e-validation-skill

Conversation

@gh-xj

@gh-xj gh-xj commented Feb 22, 2026 •

Copy link
Copy Markdown

Summary

Hi maintainers, first-time contributor here. This PR adds a small first slice of harness-engineering guidance.

Changes

  • Add skills/harness-engineering/SKILL.md focused on a harness-readiness-check preflight mindset
  • Add smoke check tests/skills/test-harness-engineering-skill.sh
  • Update references in README.md and docs/testing.md

Motivation

Inspired by OpenAI's harness engineering article:
https://openai.com/index/harness-engineering/

Scope

This PR is intentionally small. It does not include broader CI architecture or cross-repo changes.

Verification

  • bash tests/skills/test-harness-engineering-skill.sh

If this direction looks right, I can follow up with small, separate PRs for longer-term items.

Copilot AI review requested due to automatic review settings February 22, 2026 22:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new end-to-end-validation skill to encourage deterministic, user-path validation before declaring a feature “done”, along with lightweight documentation and a shell-based smoke check to ensure the skill remains present/structured.

Changes:

  • Add skills/end-to-end-validation/SKILL.md describing the deterministic command/evidence contract and failure taxonomy.
  • Add a minimal smoke test script under tests/skills/ and document how to run it.
  • Update skill discoverability/docs via README.md and planning documents under docs/plans/.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
skills/end-to-end-validation/SKILL.md New skill definition for end-to-end validation with contract + taxonomy.
tests/skills/test-end-to-end-validation-skill.sh Minimal smoke check asserting the skill file exists and contains key markers.
docs/testing.md Documents how to run the new smoke check.
README.md Adds the new skill to the Skills Library list.
docs/plans/2026-02-22-pr-body-end-to-end-validation.md Captures PR body text for the change set.
docs/plans/2026-02-22-issue-455-harness-proposal.md Proposal/acceptance criteria doc for issue #455.
docs/plans/2026-02-22-harness-contribution-strategy-design.md Broader strategy/design notes for harness contribution.
docs/plans/2026-02-22-harness-contribution-execution-plan.md Step-by-step execution plan; currently contains a couple of runnable-instructions mismatches.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread skills/end-to-end-validation/SKILL.md Outdated
@@ -0,0 +1,22 @@
---
name: end-to-end-validation
description: Validate user-visible behavior with deterministic commands and evidence artifacts before final completion.

Copilot AI Feb 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skill frontmatter description should describe when to use the skill and start with "Use when..." (per skills/writing-skills/SKILL.md). The current description summarizes what the skill does instead, which makes triggering less consistent across the skill library.

Suggested change
description: Validate user-visible behavior with deterministic commands and evidence artifacts before final completion.
description: Use when you need to validate user-visible behavior for real user flows with deterministic commands and evidence artifacts before final completion.

Copilot uses AI. Check for mistakes.
Comment thread skills/end-to-end-validation/SKILL.md Outdated

# End-to-End Validation

## Trigger

Copilot AI Feb 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency with the rest of the skills library (and the documented template in skills/writing-skills/SKILL.md), consider renaming the "## Trigger" section to "## When to Use". This helps downstream tooling/users quickly find the standard section header across skills.

Suggested change
## Trigger
## When to Use

Copilot uses AI. Check for mistakes.
#!/usr/bin/env bash
set -euo pipefail

SKILL_FILE="skills/end-to-end-validation/SKILL.md"

Copilot AI Feb 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This smoke test relies on being executed from the repository root because SKILL_FILE is a relative path. Most other test scripts cd to SCRIPT_DIR (or derive the repo root from it) so they can be run from any working directory; updating this script similarly would make it more robust and consistent.

Suggested change
SKILL_FILE="skills/end-to-end-validation/SKILL.md"
SCRIPT_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
REPO_ROOT="$SCRIPT_DIR/../.."
SKILL_FILE="$REPO_ROOT/skills/end-to-end-validation/SKILL.md"

Copilot uses AI. Check for mistakes.

**Files:**
- Create: `tests/skills/test-end-to-end-validation-skill.sh`
- Modify: `tests/README.md`

Copilot AI Feb 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This plan references tests/README.md, but the repository doesn't appear to have that file (test docs live elsewhere, e.g. docs/testing.md and tests/claude-code/README.md). Please update the referenced file path so the plan is runnable as written.

Suggested change
- Modify: `tests/README.md`
- Modify: `docs/testing.md`

Copilot uses AI. Check for mistakes.
Comment on lines +106 to +109
**Step 4: Verify skill discovery text is present**

Run: `rg -n "end-to-end-validation" skills/end-to-end-validation/SKILL.md README.md`
Expected: matches in both files

Copilot AI Feb 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The plan's verification commands use rg, but the repo's test/scripts generally use grep and there's no clear guarantee ripgrep is available. Consider switching these snippets to grep (or explicitly listing rg as a requirement) so the plan is runnable in a minimal environment.

Copilot uses AI. Check for mistakes.
@coderabbitai

coderabbitai Bot commented Feb 22, 2026 •

Copy link
Copy Markdown

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This pull request introduces a new harness engineering skill framework with documentation, guidance, and validation testing. The changes include updates to the main README and testing documentation, creation of comprehensive skill documentation outlining harness engineering principles and workflows, and a smoke test script to validate the skill file structure.

Changes

Cohort / File(s) Summary
Documentation Updates
README.md, docs/testing.md
Added references to the new harness-engineering skill and a bash command for running smoke checks.
Harness Engineering Skill
skills/harness-engineering/SKILL.md
New skill documentation defining harness engineering concepts, determinism requirements, readiness workflows, failure taxonomy, and integration boundaries.
Skill Validation Test
tests/skills/test-harness-engineering-skill.sh
New bash test script that validates SKILL.md presence, verifies key sections exist, and confirms skill name declaration.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 A harness is born, deterministic and true,
Verification gates now know what to do,
With smoke checks and workflows, the tests align,
Engineering skill refined, line by line! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'feat: add harness-engineering skill' clearly and directly summarizes the main change—adding a new skill for harness engineering with supporting documentation and tests.
Description check ✅ Passed The description is well-structured and directly related to the changeset, providing a clear summary of changes, motivation, scope, and verification instructions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🧹 Nitpick comments (4)
tests/skills/test-end-to-end-validation-skill.sh (1)

6-8: Silent failures make debugging difficult; add minimal pass/fail output.

When any assertion fails, the script exits without indicating which check failed. The execution plan justifies this as "no output on success" but the same silence on failure makes diagnosing broken-SKILL.md scenarios ambiguous — especially in CI logs. Even brief one-liners per check would help.

♻️ Proposed refactor with diagnostic output
-[[ -f "$SKILL_FILE" ]]
-grep -q '^name: end-to-end-validation$' "$SKILL_FILE"
-grep -q 'Failure taxonomy' "$SKILL_FILE"
+[[ -f "$SKILL_FILE" ]]          || { echo "[FAIL] SKILL.md not found: $SKILL_FILE"; exit 1; }
+grep -q '^name: end-to-end-validation$' "$SKILL_FILE" || { echo "[FAIL] 'name: end-to-end-validation' not found"; exit 1; }
+grep -q 'Failure taxonomy' "$SKILL_FILE"              || { echo "[FAIL] 'Failure taxonomy' section not found"; exit 1; }
+echo "[PASS] end-to-end-validation skill smoke check"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/skills/test-end-to-end-validation-skill.sh` around lines 6 - 8, The
tests currently run bare assertions against SKILL_FILE (commands using
SKILL_FILE and grep) and produce no diagnostic output on success or failure;
wrap each check (the file existence test [[ -f "$SKILL_FILE" ]] and the two grep
checks for '^name: end-to-end-validation$' and 'Failure taxonomy') in
conditional blocks that print a concise PASS message on success and a concise
FAIL message to stderr plus exit 1 on failure so CI logs show which specific
check failed; reference the existing SKILL_FILE variable and the three checks in
the script (the file test and the two grep assertions) when implementing these
if/then/else handlers.
skills/end-to-end-validation/SKILL.md (1)

11-15: Required command contract leaves two key details unspecified.

Step 2 refers to "deterministic env vars" without defining which variables to set or what makes them deterministic. Step 3 says "Save output artifact JSON" without specifying a schema or naming convention. Without these, agents and contributors following this skill have no shared contract for what the artifact actually contains or where the failure taxonomy error codes surface.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@skills/end-to-end-validation/SKILL.md` around lines 11 - 15, Update the
"Required command contract" section to explicitly enumerate which environment
variables must be set and what makes them deterministic (e.g., CI_COMMIT_SHA,
RUN_ID, TIMEZONE, LOCALE) in the "Step 2" text, and in "Step 3" define a precise
JSON artifact schema (fields like command, args, env, exitCode, stdout, stderr,
duration, timestamp, evidence[], failureTaxonomyCode) plus a naming convention
for files (e.g., e2e-{command}-{RUN_ID}.json) and the canonical location to save
them; also specify where and how failure taxonomy error codes are surfaced
(field failureTaxonomyCode and example values/format) so implementers of the
skill can produce and validate the artifact consistently.
docs/plans/2026-02-22-harness-contribution-execution-plan.md (1)

206-370: Tasks 5–8 describe an entirely external repository and shouldn't live here.

These four tasks (bootstrap standalone plugin, implement CLI validator, publish and cross-link, set up metrics) all operate on ~/github/harness-engineering-plugin/ — a separate personal repository unrelated to obra/superpowers. Committing their full implementation details (Go source, JSON schemas, config files, Git workflows) into docs/plans/ of this repo creates out-of-scope material that belongs in the external plugin repo's own documentation.

Additionally, line 219 hardcodes a personal GitHub username (gh-xj) in a publicly committed file.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/plans/2026-02-22-harness-contribution-execution-plan.md` around lines
206 - 370, Tasks 5–8 embed an unrelated external repository
(harness-engineering-plugin) and a hardcoded personal GitHub username (gh-xj);
remove or move all content under "Task 5: Bootstrap Standalone Plugin
Repository" through "Task 8: 90-Day Metrics Checkpoint Setup" out of this repo's
docs and into the external plugin repo, and replace the hardcoded clone
URL/username (the "gh-xj" string in the clone command and any occurrences in
README.md/.harness-engineering.json examples) with a neutral placeholder or org
variable (e.g., <plugin-repo-url> or <github-user>) so the plan only contains
in-repo tasks and no personal credentials.
docs/plans/2026-02-22-pr-body-end-to-end-validation.md (1)

1-16: Consider whether ephemeral process artifacts belong in docs/plans/.

This file is the draft PR body used to open this pull request — its lifecycle effectively ends once the PR is created. Storing it in docs/plans/ alongside design documents means the directory will accumulate one-time process artifacts on every future PR, making it harder to navigate for long-term documentation purposes.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/plans/2026-02-22-pr-body-end-to-end-validation.md` around lines 1 - 16,
The draft PR body in 2026-02-22-pr-body-end-to-end-validation.md is an ephemeral
artifact and should not live in docs/plans; remove this file from docs/plans and
instead place the content into the PR description or a dedicated ephemeral
directory for PR drafts (or a CI-generated artifact), and update any references
(the "end-to-end-validation" heading, README skills list note, and the
verification command `bash tests/skills/test-end-to-end-validation-skill.sh`) to
point to the new location so docs/plans retains only long-lived design docs.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/plans/2026-02-22-harness-contribution-execution-plan.md`:
- Line 3: The line starting with "> **For Claude:** REQUIRED SUB-SKILL: Use
superpowers:executing-plans" is an embedded AI-agent directive; remove or
neutralize it so it cannot be interpreted by assistants (e.g., replace it with a
plain explanatory sentence or convert it into a non-executable comment/ HTML
comment or fenced code block) while preserving the human-readable intent of the
note; locate the exact header string in the document and update it to a neutral
form that does not invoke "superpowers:executing-plans" or any other sub-skill.
- Around line 186-204: Replace the unresolved placeholders in the instructions:
update the git push and gh pr create command where the placeholder "<branch>"
appears to the actual branch name used for the PR, and replace "<pr-number>" in
the gh pr checks and gh pr view commands with the actual PR number (or change
the text to clarify these commands are for post-creation/monitoring and remove
the placeholders if you intend to show an example). Ensure you edit the Step 2
block (the git push / gh pr create lines) and the Step 3 lines (gh pr checks and
gh pr view) so no literal "<branch>" or "<pr-number>" remain.

In `@docs/testing.md`:
- Around line 22-26: Update the "Skill Smoke Checks" section to explicitly note
that the smoke test script tests/skills/test-end-to-end-validation-skill.sh must
be run from the repository root because it uses a relative path to
skills/end-to-end-validation/SKILL.md; add a one-line working-directory note
immediately above or below the existing bash invocation in the "Skill Smoke
Checks" block so users know to run the command from the repo root.

In `@tests/skills/test-end-to-end-validation-skill.sh`:
- Around line 4-8: The script uses a bare relative SKILL_FILE path which breaks
when not run from repo root and causes a silent exit under set -e; fix by
resolving the script directory via BASH_SOURCE[0] and anchor SKILL_FILE to that
directory (e.g., compute SCRIPT_DIR from BASH_SOURCE[0] then set
SKILL_FILE="$SCRIPT_DIR/../skills/end-to-end-validation/SKILL.md") so the [[ -f
"$SKILL_FILE" ]] check and subsequent grep commands work regardless of current
working directory; update references to SKILL_FILE accordingly.

---

Nitpick comments:
In `@docs/plans/2026-02-22-harness-contribution-execution-plan.md`:
- Around line 206-370: Tasks 5–8 embed an unrelated external repository
(harness-engineering-plugin) and a hardcoded personal GitHub username (gh-xj);
remove or move all content under "Task 5: Bootstrap Standalone Plugin
Repository" through "Task 8: 90-Day Metrics Checkpoint Setup" out of this repo's
docs and into the external plugin repo, and replace the hardcoded clone
URL/username (the "gh-xj" string in the clone command and any occurrences in
README.md/.harness-engineering.json examples) with a neutral placeholder or org
variable (e.g., <plugin-repo-url> or <github-user>) so the plan only contains
in-repo tasks and no personal credentials.

In `@docs/plans/2026-02-22-pr-body-end-to-end-validation.md`:
- Around line 1-16: The draft PR body in
2026-02-22-pr-body-end-to-end-validation.md is an ephemeral artifact and should
not live in docs/plans; remove this file from docs/plans and instead place the
content into the PR description or a dedicated ephemeral directory for PR drafts
(or a CI-generated artifact), and update any references (the
"end-to-end-validation" heading, README skills list note, and the verification
command `bash tests/skills/test-end-to-end-validation-skill.sh`) to point to the
new location so docs/plans retains only long-lived design docs.

In `@skills/end-to-end-validation/SKILL.md`:
- Around line 11-15: Update the "Required command contract" section to
explicitly enumerate which environment variables must be set and what makes them
deterministic (e.g., CI_COMMIT_SHA, RUN_ID, TIMEZONE, LOCALE) in the "Step 2"
text, and in "Step 3" define a precise JSON artifact schema (fields like
command, args, env, exitCode, stdout, stderr, duration, timestamp, evidence[],
failureTaxonomyCode) plus a naming convention for files (e.g.,
e2e-{command}-{RUN_ID}.json) and the canonical location to save them; also
specify where and how failure taxonomy error codes are surfaced (field
failureTaxonomyCode and example values/format) so implementers of the skill can
produce and validate the artifact consistently.

In `@tests/skills/test-end-to-end-validation-skill.sh`:
- Around line 6-8: The tests currently run bare assertions against SKILL_FILE
(commands using SKILL_FILE and grep) and produce no diagnostic output on success
or failure; wrap each check (the file existence test [[ -f "$SKILL_FILE" ]] and
the two grep checks for '^name: end-to-end-validation$' and 'Failure taxonomy')
in conditional blocks that print a concise PASS message on success and a concise
FAIL message to stderr plus exit 1 on failure so CI logs show which specific
check failed; reference the existing SKILL_FILE variable and the three checks in
the script (the file test and the two grep assertions) when implementing these
if/then/else handlers.

Comment on lines +186 to +204
**Step 2: Push branch and create PR**

Run:
```bash
git push -u origin <branch>
gh pr create -R obra/superpowers \
--title "feat: add end-to-end-validation skill" \
--body-file docs/plans/2026-02-22-pr-body-end-to-end-validation.md
```
Expected: PR URL printed

**Step 3: Track checks and feedback loop**

Run:
```bash
gh pr checks <pr-number> -R obra/superpowers
gh pr view <pr-number> -R obra/superpowers --comments
```
Expected: checks/status summary + reviewer comments

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Unfilled placeholders leave the document in a mid-execution state.

Lines 190 (<branch>) and 202-203 (<pr-number>) are placeholders that were never resolved before committing. Given that the PR is open and the branch name is known, these should be filled in or the step notes updated to indicate the commands were already executed.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/plans/2026-02-22-harness-contribution-execution-plan.md` around lines
186 - 204, Replace the unresolved placeholders in the instructions: update the
git push and gh pr create command where the placeholder "<branch>" appears to
the actual branch name used for the PR, and replace "<pr-number>" in the gh pr
checks and gh pr view commands with the actual PR number (or change the text to
clarify these commands are for post-creation/monitoring and remove the
placeholders if you intend to show an example). Ensure you edit the Step 2 block
(the git push / gh pr create lines) and the Step 3 lines (gh pr checks and gh pr
view) so no literal "<branch>" or "<pr-number>" remain.

Comment thread docs/testing.md Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (3)
tests/skills/test-end-to-end-validation-skill.sh (1)

7-9: Error handling is solid; one optional readability nit on Line 8.

The || { ...; exit 1; } idiom correctly cooperates with set -e on all three checks. The one minor thing: Line 8's message "[FAIL] name not found" is the only one that omits the expected value — slightly harder to diagnose if the front matter ever uses a quoted form or trailing whitespace.

✏️ Optional improvement
-grep -q '^name: end-to-end-validation$' "$SKILL_FILE" || { echo "[FAIL] name not found" >&2; exit 1; }
+grep -q '^name: end-to-end-validation$' "$SKILL_FILE" || { echo "[FAIL] expected 'name: end-to-end-validation' in $SKILL_FILE" >&2; exit 1; }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/skills/test-end-to-end-validation-skill.sh` around lines 7 - 9, Update
the failing-message for the name check to include the expected front-matter
string so failures are easier to diagnose: modify the grep that uses '^name:
end-to-end-validation$' against SKILL_FILE (the line with grep -q '^name:
end-to-end-validation$' "$SKILL_FILE") to echo a message containing the expected
value (for example include "expected: 'name: end-to-end-validation'") when it
fails instead of the generic "[FAIL] name not found".
skills/end-to-end-validation/SKILL.md (2)

17-22: Failure taxonomy entries have no descriptions.

The five error codes are listed without any guidance on when each applies. Implementers have no way to distinguish ENV_ERROR from CONFIG_ERROR, or CHECK_FAIL from INTERNAL_ERROR, without prose descriptions.

✏️ Suggested addition
 ## Failure taxonomy
-- CONFIG_ERROR
-- ENV_ERROR
-- CHECK_FAIL
-- NON_DETERMINISM
-- INTERNAL_ERROR
+- `CONFIG_ERROR` – missing or invalid configuration required to run the e2e command.
+- `ENV_ERROR` – runtime environment is unsuitable (missing tool, bad credentials, etc.).
+- `CHECK_FAIL` – command ran to completion but an assertion on the output failed.
+- `NON_DETERMINISM` – repeated runs produced inconsistent results for the same inputs.
+- `INTERNAL_ERROR` – unexpected failure unrelated to the above categories.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@skills/end-to-end-validation/SKILL.md` around lines 17 - 22, Add concise
one-line descriptions for each failure taxonomy entry in SKILL.md (CONFIG_ERROR,
ENV_ERROR, CHECK_FAIL, NON_DETERMINISM, INTERNAL_ERROR) under the "Failure
taxonomy" section so implementers know when to use each code; for each code
provide a short definition and a usage example or condition distinguishing it
from similar codes (e.g., CONFIG_ERROR = misconfigured skill inputs or settings,
ENV_ERROR = missing/invalid runtime environment or external dependency,
CHECK_FAIL = deterministic assertion failures in skill logic, NON_DETERMINISM =
flaky or non-deterministic outputs across runs, INTERNAL_ERROR = unexpected
exceptions/bugs in the skill implementation) and ensure wording is one sentence
per code to keep the list readable.

11-15: Consider specifying an artifact path and minimal JSON schema for Step 3.

"Save output artifact JSON" leaves the output location and structure completely open, making the contract ambiguous for implementers. Even a placeholder path convention (e.g., ./e2e-output.json) and a one-field minimum schema (e.g., {"status": "pass"|"fail", "evidence": "..."}) would make the contract actionable.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@skills/end-to-end-validation/SKILL.md` around lines 11 - 15, Update the
"Required command contract" section to make Step 3 ("Save output artifact JSON")
explicit: specify a default artifact location (for example a relative path such
as an e2e output file named e2e-output.json) and define a minimal JSON schema
that implementers must produce (for example a top-level object containing a
status field with values "pass" or "fail" and an evidence field with a string
describing test output). Edit the SKILL.md entry for Step 3 to include the
artifact path convention and the required fields (status and evidence) and note
that implementers may add extra fields but must include those required keys.
Ensure the wording references the exact step text "Save output artifact JSON" so
it’s clear where to apply the change.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@skills/end-to-end-validation/SKILL.md`:
- Around line 17-22: Add concise one-line descriptions for each failure taxonomy
entry in SKILL.md (CONFIG_ERROR, ENV_ERROR, CHECK_FAIL, NON_DETERMINISM,
INTERNAL_ERROR) under the "Failure taxonomy" section so implementers know when
to use each code; for each code provide a short definition and a usage example
or condition distinguishing it from similar codes (e.g., CONFIG_ERROR =
misconfigured skill inputs or settings, ENV_ERROR = missing/invalid runtime
environment or external dependency, CHECK_FAIL = deterministic assertion
failures in skill logic, NON_DETERMINISM = flaky or non-deterministic outputs
across runs, INTERNAL_ERROR = unexpected exceptions/bugs in the skill
implementation) and ensure wording is one sentence per code to keep the list
readable.
- Around line 11-15: Update the "Required command contract" section to make Step
3 ("Save output artifact JSON") explicit: specify a default artifact location
(for example a relative path such as an e2e output file named e2e-output.json)
and define a minimal JSON schema that implementers must produce (for example a
top-level object containing a status field with values "pass" or "fail" and an
evidence field with a string describing test output). Edit the SKILL.md entry
for Step 3 to include the artifact path convention and the required fields
(status and evidence) and note that implementers may add extra fields but must
include those required keys. Ensure the wording references the exact step text
"Save output artifact JSON" so it’s clear where to apply the change.

In `@tests/skills/test-end-to-end-validation-skill.sh`:
- Around line 7-9: Update the failing-message for the name check to include the
expected front-matter string so failures are easier to diagnose: modify the grep
that uses '^name: end-to-end-validation$' against SKILL_FILE (the line with grep
-q '^name: end-to-end-validation$' "$SKILL_FILE") to echo a message containing
the expected value (for example include "expected: 'name:
end-to-end-validation'") when it fails instead of the generic "[FAIL] name not
found".

@gh-xj
gh-xj marked this pull request as draft February 22, 2026 23:04
@gh-xj gh-xj changed the title feat: add end-to-end-validation skill feat: add harness-engineering skill Feb 22, 2026
@gh-xj

gh-xj commented Feb 22, 2026 •

Copy link
Copy Markdown
Author

@obra first-time contributor note: I narrowed this PR to the first slice only (harness-readiness-check preflight mindset in the harness-engineering skill + smoke check).

Before I propose follow-up PRs for the long-term items (artifact standard, canonical CI contract, TDD determinism guardrails, drift audit), could you confirm this direction/scope matches what you'd want upstream?

If you'd prefer a different split, I can adapt before opening any next PR.

@gh-xj
gh-xj marked this pull request as ready for review February 23, 2026 00:16

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
tests/skills/test-harness-engineering-skill.sh (1)

8-9: Optional: tighten grep patterns and improve error message.

Two small improvements worth considering:

  1. Line 8's failure message omits the file path, making it less actionable than line 7's message when the test is run in CI.
  2. Line 9's unanchored 'Failure Taxonomy' would pass even if that string appeared in a code block or prose rather than as a section heading. Anchoring to '^## Failure Taxonomy' makes the intent explicit.
✏️ Proposed refinements
-grep -q '^name: harness-engineering$' "$SKILL_FILE" || { echo "[FAIL] name not found" >&2; exit 1; }
-grep -q 'Failure Taxonomy' "$SKILL_FILE" || { echo "[FAIL] Failure Taxonomy section not found" >&2; exit 1; }
+grep -q '^name: harness-engineering$' "$SKILL_FILE" || { echo "[FAIL] 'name: harness-engineering' not found in $SKILL_FILE" >&2; exit 1; }
+grep -q '^## Failure Taxonomy' "$SKILL_FILE" || { echo "[FAIL] Failure Taxonomy section not found in $SKILL_FILE" >&2; exit 1; }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/skills/test-harness-engineering-skill.sh` around lines 8 - 9, The test
uses loose grep patterns and an unhelpful error message: update the second check
that searches SKILL_FILE for 'Failure Taxonomy' to anchor to a section heading
(e.g., '^## Failure Taxonomy') so it only matches the intended heading, and
change the first failing echo (the one asserting '^name: harness-engineering$')
to include the SKILL_FILE variable in the error text so failures show which file
failed; locate the two grep invocations operating on SKILL_FILE in the
test-harness-engineering-skill.sh and replace the pattern and error string
accordingly.
skills/harness-engineering/SKILL.md (1)

148-148: Prose nit: prefer "accidentally" over "by accident".

✏️ Suggested wording
-- Test logic depending on current machine/user path by accident.
+- Test logic depending on current machine/user path accidentally.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@skills/harness-engineering/SKILL.md` at line 148, The prose uses "by
accident" in the sentence "Test logic depending on current machine/user path by
accident."; change that phrase to "accidentally" so the sentence reads "Test
logic depending on current machine/user path accidentally." Update the SKILL.md
content where that exact sentence appears.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@skills/harness-engineering/SKILL.md`:
- Line 148: The prose uses "by accident" in the sentence "Test logic depending
on current machine/user path by accident."; change that phrase to "accidentally"
so the sentence reads "Test logic depending on current machine/user path
accidentally." Update the SKILL.md content where that exact sentence appears.

In `@tests/skills/test-harness-engineering-skill.sh`:
- Around line 8-9: The test uses loose grep patterns and an unhelpful error
message: update the second check that searches SKILL_FILE for 'Failure Taxonomy'
to anchor to a section heading (e.g., '^## Failure Taxonomy') so it only matches
the intended heading, and change the first failing echo (the one asserting
'^name: harness-engineering$') to include the SKILL_FILE variable in the error
text so failures show which file failed; locate the two grep invocations
operating on SKILL_FILE in the test-harness-engineering-skill.sh and replace the
pattern and error string accordingly.

@obra obra added enhancement New feature or request claude-code Claude Code (Anthropic CLI) issues labels Mar 4, 2026
@obra obra added the skills Retired: use a skill:* label or skill-system label Mar 23, 2026
@obra

obra commented Apr 28, 2026

Copy link
Copy Markdown
Owner

Hi. So sorry for the slow reply. I think this is something you should publish as a standalone skill. It doesn't clearly fit into Superpowers as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude-code Claude Code (Anthropic CLI) issues enhancement New feature or request skills Retired: use a skill:* label or skill-system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants