capturing-golden-rules

Capture recurring mistakes and drift into durable golden rules.

14|Updated May 28, 2026
One-click install
npx skills add https://github.com/Redtropig/harness-anchor --skill capturing-golden-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: capturing-golden-rules
Source: https://github.com/Redtropig/harness-anchor/tree/main/skills/capturing-golden-rules
Command: npx skills add https://github.com/Redtropig/harness-anchor --skill capturing-golden-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Capture recurring mistakes and drift into durable golden rules. This guardrail framework preserves lessons as durable rules to guide future work, reducing repeated errors across teams and projects.

Core Features & Use Cases

  • Encodes recurring failures into codified guardrails in golden-rules.md.
  • Aligns with drift-analyst (/gc) workflows to surface and prune rules as needed.
  • Guides teams to consistently enforce conventions and reduce drift in future work.

Quick Start

Append a rule to golden-rules.md with a unique ID, an origin description, and a check to enforce it in future changes.

Frequently Asked Questions about capturing-golden-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I turn recurring code review mistakes into enforceable conventions?

To turn recurring code review mistakes into enforceable conventions, append the failure to a root golden-rules.md file with a unique ID, an origin description, and a check to enforce it in future changes.

What is the best way to codify guardrails when drift is detected across reviews?

Codifying guardrails when drift is detected involves capturing the recurring failure into a durable golden rule within golden-rules.md, establishing a check to guide future work and prevent repeated errors.

How do I create a golden rule to prevent the same code review failures from happening again?

You create a golden rule by appending an entry to golden-rules.md that includes a unique ID, a description of the failure's origin, and a specific check to enforce the convention during future code reviews.

Does capturing golden rules require a specific file structure or frontmatter?

Capturing golden rules requires a root golden-rules.md file to store the rules and a SKILL.md frontmatter with a unique name and description to integrate with drift-analyst and /gc workflows.

Can I use drift-analyst workflows to prune outdated coding conventions?

Yes, you can use drift-analyst /gc workflows to surface and prune outdated rules, ensuring your codified guardrails in golden-rules.md remain relevant and consistently enforced across teams.