harness-reflector
Skill1 starsChanged 20 days agoApache-2.0View on GitHub
Use when the user asks to "learn from this task", "save this workflow as a skill", "update AGENTS.md with lessons", or reflect on a completed debugging or implementation session. Produces verified, scoped rules and reusable skills instead of speculative advice.
- Installs packages
In this repository7 other files it gives its agents.
- rules/AGENTS.mdAGENTS.md
- harness-controlSkill
- harness-handoffSkill
- harness-recallSkill
- harness-skill-authorSkill
- systematic-debuggingSkill
- verification-before-completionSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Run this protocol after a substantial task when the user asks for deliberate reflection, or when the automatic Stop cycle did not capture …
- Very specific: line 62
If the transcript is not available, create a skill with skills install from a local folder, or add a concise directive to AGENTS.md …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Harness² Deep Reflector
Run this protocol after a substantial task when the user asks for deliberate reflection, or when the automatic Stop cycle did not capture something valuable.
1. Gather evidence
- What was the user's actual goal?
- Which commands, edits, or tool calls changed the outcome?
- What failed? Include the exact error, not a paraphrase.
- What fixed it? Only count a fix that was followed by a successful command, passing test, or otherwise observable verification.
- Was the failure transient (timeout, rate limit, flaky network)? If so, do not turn it into a permanent rule.
2. Write bounded lessons
Good rule shape:
pytestfailed withModuleNotFoundError: No module named 'pytest'. Verified fix: runpython -m pip install pytestin the active environment.
Bad rule shape:
Command failed. Try again or adjust parameters.
Reject rules containing timestamps, UUIDs, exit codes alone, truncated output, or no actionable recovery.
3. Decide scope
- Workspace: project commands, paths, package manager, migrations, tests,
local conventions. Write to the workspace
AGENTS.md. - Global: cross-project environment quirks such as PowerShell quoting, Python UTF-8 behavior, or hook cwd. Never copy project paths or commands into the global file.
- Skill: a repeatable multi-step procedure, not a single command and not a one-off incident. Require at least three meaningful steps, or two steps plus a verification step.
4. Register through Harness
# Re-analyse the current session and update workspace rules/skills
bin\harness.cmd reflect --workspace . --force
# Inspect what was learned
bin\harness.cmd status
bin\harness.cmd skills
bin\harness.cmd rules show --target workspaceIf the transcript is not available, create a skill with skills install from a
local folder, or add a concise directive to AGENTS.md manually. Never invent
a verified recovery.
5. Verify
bin\harness.cmd skills validatebin\harness.cmd rules sanitize --dry-run- Confirm the rule/skill contains no credentials or project-irrelevant noise.
- Confirm the managed block stays under the 20 KB budget and the file stays under Antigravity's 24 KB cap.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

