learn
Skill98 starsChanged 10 months agoMITView on GitHub
Distill learnings from completed features and propose amendments to constitution.md or prompt.md. Use after feature completion. Triggers on: capture learnings, learn from feature, distill learnings, relentless learn.
133 other projects use a version of this.
Adopted by
Most recently taken up by
- garrytan/gstacktheir own version, first seen Oct 7, 2026
- wardawgmalvicious/agent-configtheir own version, first seen Oct 7, 2026
- prathish-ks/isthmustheir own version, first seen Oct 6, 2026
- Boxline-dev/examplestheir own version, first seen Oct 5, 2026
- morodomi/dev-crewtheir own version, first seen Oct 5, 2026
- ContextLab/claude-skill-compoundertheir own version, first seen Oct 4, 2026
Used with
Projects with it also use open-gstack-browser, design-html and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
seek888Skillopen-gstack-browser
Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".
Also in 6 projects that use this
seek888Skilldesign-html
Design finalization: generates production-quality Pretext-native HTML/CSS. Works with approved mockups from /design-shotgun, CEO plans from /plan-ceo-review, design review context from /plan-design-review, or from scratch with a user description. Text actually reflows, heights are computed, layouts are dynamic. 30KB overhead, zero deps. Smart API routing: picks the right Pretext patterns for each design type. Use when: "finalize this design", "turn this into HTML", "build me a page", "implement this design", or after any planning skill. Proactively suggest when user has approved a design or has a plan ready. (gstack) Voice triggers (speech-to-text aliases): "build the design", "code the mockup", "make it real".
Also in 7 projects that use this
chloropineSkillsetup-gbrain
Set up gbrain for this coding agent: install the CLI, initialize a local PGLite or Supabase brain, register MCP, capture per-remote trust policy. One command from zero to "gbrain is running, and this agent can call it." Use when: "setup gbrain", "connect gbrain", "start gbrain", "install gbrain", "configure gbrain for this machine". (cgstack)
Also in 4 projects that use this
TomGranotSkilladd-anydoc
Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when agents need to read attached Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, or text-based PDF files without uploading them to a hosted parser.
Also in 3 projects that use this
TomGranotSkilladd-clidash
Add clidash — a zero-dependency, read-only web dashboard that derives its tabs and tables at runtime from any CLI that lists resources as JSON. Ships pre-wired for NanoClaw's ncl CLI (agent groups, sessions, channels, users, roles), plus message-activity charts, a log tail, and a read-only file viewer for group skills/CLAUDE.md/profiles.
Also in 3 projects that use this
chloropineSkillplan-tune
Self-tuning question sensitivity + developer psychographic for cgstack (v1: observational). Review which AskUserQuestion prompts fire across cgstack skills, set per-question preferences (never-ask / always-ask / ask-only-for-one-way), inspect the dual-track profile (what you declared vs what your behavior suggests), and enable/disable question tuning. Conversational interface — no CLI syntax required.
Also in 4 projects that use this
- +1 more from seek888
- +5 more from TomGranot
Other versions133 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 133
- garrytan/gstack★ 143ksame name
- rohitg00/ai-engineering-from-scratch★ 64ksame name
- nanocoai/nanoclaw★ 31ksame name
- tigerless-labs/autoharness★ 7.8ksame name
- tw93/Waza★ 7.1ksame name
- HughYau/AcademicForge★ 2.6ksame name
- pedrohcgs/claude-code-my-workflow★ 1.6ksame name
- nagisanzenin/engram★ 1.4ksame name
- fancyboi999/ai-engineering-from-scratch-zh★ 1.2ksame name
- nykooi1/vibe-wise★ 1.1ksame name
123 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- analyzeSkill
- checklistSkill
- clarifySkill
- constitutionSkill
- convertSkill
- implementSkill
- planSkill
- prdSkill
- relentlessSkill
- specifySkill
- tasksSkill
- taskstoissuesSkill
- validatorsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 11 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 114 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 41
IMPORTANT: Use CLI scripts for extraction - do NOT read entire files into context.
- Very specific: line 43
Run the extraction scripts from .claude/skills/learn/scripts/:
- Distinctive: line 107
Not already covered in constitution
- Very specific: line 174
Use the proposal template from templates/learning-proposal.md to format the output.
- Distinctive: line 181
Approval Request: Ask user to approve, modify, or reject each proposal
- Distinctive: line 201
Read current version from constitution.md frontmatter
- Distinctive: line 203
Add the new rule under MUST or SHOULD
- Very specific: line 207
Update LAST_AMENDED_DATE to today
- Distinctive: line 208
Add amendment note at top of file
- Distinctive: line 218
Add the new pattern or tip
- Distinctive: line 219
Update "Generated" date at bottom
- Distinctive: line 220
If no appropriate section exists, create a new "## Learned Patterns" section
- Distinctive: line 226
Create a learning log file in the feature directory:
- Very specific: line 259
Run the stats generator to update relentless/stats.md:
- Very specific: line 285
Never bump MAJOR: - only /relentless.constitution can do that (for breaking governance changes).
- Distinctive: line 358
Use extraction scripts to minimize context usage
“Common” is measured: kept by at least 6 in 10 of the 114 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Relentless Learning System
Capture learnings from completed features and propose amendments to improve future runs.
Philosophy: "Loop Ralph" - Create a feedback loop where each feature execution improves the system for future features.
SpecKit Workflow
This skill is optional and runs after feature completion:
specify → plan → tasks → convert → analyze → implement → (optional) learn
Prerequisites:
- Feature must be complete (all stories
passes: trueorskipped: true) progress.txtmust exist with iteration learningsprd.jsonmust exist with execution dataconstitution.mdand/orprompt.mdmust exist inrelentless/
The Job
- Extract learnings from completed feature (using CLI scripts)
- Classify each learning (Constitutional / Tactical / Discard)
- Generate proposals for human approval
- Apply approved amendments to constitution.md or prompt.md
- Save learning log to feature directory
- Update aggregate stats
Step 0: Run Extraction Scripts
IMPORTANT: Use CLI scripts for extraction - do NOT read entire files into context.
Run the extraction scripts from .claude/skills/learn/scripts/:
# Main extraction - runs all extractors
bash .claude/skills/learn/scripts/extract-learnings.sh relentless/features/<feature-name>
# Individual extractors (run by main script):
# - extract-patterns.sh - Patterns from progress.txt
# - extract-costs.sh - Cost accuracy from prd.json
# - extract-failures.sh - Failed checks from checklist.md
# - extract-errors.sh - Error patterns from progress.txtThe output is compact JSON (~500 tokens max):
{
"patterns": ["Pattern 1: description", "Pattern 2: description"],
"costs": {"feature": "name", "estimated": 0.45, "actual": 0.52},
"failures": ["Unchecked item 1", "Unchecked item 2"],
"errors": ["Error context 1", "Error context 2"]
}If more context is needed for a specific story:
# Extract session context for deeper investigation
bash .claude/skills/learn/scripts/extract-session-context.sh relentless/features/<feature-name> US-XXXStep 1: Parse Extracted Data
Parse the JSON output from the extraction scripts:
- Patterns: Reusable learnings discovered during implementation
- Costs: Cost accuracy metrics (estimated vs actual)
- Failures: Unchecked checklist items (potential gaps)
- Errors: Error patterns that were fixed (potential rules)
Count and categorize:
- How many patterns were discovered?
- Was cost estimation accurate (>80%)?
- Are there unchecked checklist items (quality gaps)?
- What error patterns emerged?
Step 2: Classify Learnings
For each learning, classify as:
| Type | Target | Criteria | Example |
| Constitutional | constitution.md | Applies to ALL features, governance/quality/process, prevents significant issues | "Always export new types with implementation" |
| Tactical | prompt.md | Specific to task types or tech stack, workflow tips, common pitfalls | "Mock CLI calls in adapter tests" |
| Discard | None | One-time edge case, already covered, too specific | "Fixed typo in variable name" |
Constitutional criteria (becomes a MUST or SHOULD rule):
- Applies universally to all features
- Related to governance, quality, or process
- Prevents significant issues if violated
- Not already covered in constitution
Tactical criteria (becomes a prompt.md pattern):
- Specific to certain task types or tech stack
- Workflow tip or common pitfall
- Helps agents avoid repeated mistakes
- Not governance-level
Discard criteria (do not propose):
- One-time edge case
- Already covered by existing rules
- Too specific to be reusable
- Subjective preference
Step 3: Generate Proposals
Generate maximum 5 constitutional + 5 tactical proposals per feature.
Constitutional Proposal Format:
### PROP-C01: [Short Title]
**Target:** constitution.md > Principle [N] > [MUST|SHOULD]
**Amendment:**
> [1-2 sentence rule in imperative form]
**Evidence:**
> [Quote from progress.txt showing the issue]
**Classification:** Constitutional - [Rationale why this applies to all features]Tactical Proposal Format:
### PROP-T01: [Short Title]
**Target:** prompt.md > [Section Name]
**Amendment:**
> [1-2 sentence tip or pattern]
**Evidence:**
> [Quote from progress.txt showing the context]
**Classification:** Tactical - [Rationale why this is task-specific]Discarded Learnings (include for transparency):
### Discarded Learnings
| Learning | Reason |
|----------|--------|
| Fixed typo in variable name | One-time edge case |
| Used specific API endpoint | Already covered in docs |Step 4: Present for Human Approval
Use the proposal template from templates/learning-proposal.md to format the output.
The proposal should include:
- Feature Summary: Name, stories, escalations, cost accuracy
- Constitutional Proposals: PROP-C01, PROP-C02, etc.
- Tactical Proposals: PROP-T01, PROP-T02, etc.
- Discarded Learnings: With reasons
- Approval Request: Ask user to approve, modify, or reject each proposal
Ask the user:
Please review the proposals above. For each one:
- APPROVE: Apply as written
- MODIFY: Suggest changes
- REJECT: Do not apply
Which proposals do you approve?Step 5: Apply Approved Amendments
For each approved proposal:
Constitutional Amendments (constitution.md):
- Read current version from constitution.md frontmatter
- Find the appropriate Principle section
- Add the new rule under MUST or SHOULD
- Update version number:
- MUST rules: Bump MINOR version (e.g., 2.0.0 → 2.1.0)
- SHOULD rules: Bump PATCH version (e.g., 2.0.0 → 2.0.1)
- Update
LAST_AMENDED_DATEto today - Add amendment note at top of file
Amendment note format:
<!-- Amendment: v2.1.0 - Added [rule title] from feature [feature-name] -->Tactical Amendments (prompt.md):
- Find the appropriate section in prompt.md
- Add the new pattern or tip
- Update "Generated" date at bottom
- If no appropriate section exists, create a new "## Learned Patterns" section
Step 6: Save Learning Log
Create a learning log file in the feature directory:
Path: relentless/features/<feature-name>/learnings.md
# Learnings: [Feature Name]
**Extracted:** [date]
**Proposals Generated:** [count]
**Approved:** [count]
**Applied:** [count]
## Constitutional Amendments Applied
- PROP-C01: [Title] → constitution.md v[version]
## Tactical Amendments Applied
- PROP-T01: [Title] → prompt.md
## Discarded Learnings
- [Learning] - [Reason]
---
*Generated by /relentless.learn*Step 7: Update Aggregate Stats
Run the stats generator to update relentless/stats.md:
bash .claude/skills/learn/scripts/generate-stats.sh relentlessThis generates a human-readable report with:
- Total features, stories, completion rate
- Cost summary (estimated vs actual)
- Token usage
- Complexity distribution
- Escalation rate
- Model usage breakdown
The stats file is for human review, NOT loaded into agent context.
Version Bumping Rules
| Amendment Type | Version Bump | Example |
| MUST rule | MINOR | 2.0.0 → 2.1.0 |
| SHOULD rule | PATCH | 2.0.0 → 2.0.1 |
| Multiple rules | Highest bump applies | 2.0.0 → 2.1.0 if any MUST |
Never bump MAJOR - only /relentless.constitution can do that (for breaking governance changes).
Common Patterns to Look For
Constitutional-Level Patterns:
- Type safety rules (export types with implementation)
- Testing patterns (TDD workflow, test structure)
- Error handling patterns (graceful degradation)
- Documentation requirements (JSDoc, README updates)
- Code quality patterns (zero-lint, typecheck)
Tactical-Level Patterns:
- Schema naming conventions (XxxSchema for Zod)
- Mock patterns for testing (mock CLI, mock adapters)
- File organization patterns (where to put new files)
- Common pitfalls for specific tech stack
- Performance optimizations
Patterns to Discard:
- Typo fixes
- One-time debugging steps
- Temporary workarounds (already removed)
- Personal preferences (formatting choices)
- Already documented patterns
Example Session
Input:
/relentless.learn 001-queued-promptsExtraction Output:
{
"patterns": [
"Atomic writes: Use temp file + rename for safety",
"Zod naming: Use XxxSchema to avoid no-redeclare"
],
"costs": {"estimated": 0.45, "actual": 0.52, "accuracy": "87%"},
"failures": [],
"errors": ["ESLint no-redeclare on UserStory type - fixed with XxxSchema pattern"]
}Generated Proposals:
### PROP-C01: Atomic Write Pattern
**Target:** constitution.md > Principle 11 (Data Safety) > SHOULD
**Amendment:**
> Use atomic writes (temp file + rename) when modifying files to prevent corruption.
**Evidence:**
> "Uses atomic writes (temp file + rename) to prevent corruption" - progress.txt
**Classification:** Constitutional - Applies to all file-modifying operations across featuresUser Response: "APPROVE PROP-C01"
Applied: constitution.md v2.0.1 updated with new SHOULD rule
Notes
- This skill is opt-in - only run after user decides to capture learnings
- Maximum 10 proposals per feature to avoid overwhelming the user
- Use extraction scripts to minimize context usage
- Human approval required for all amendments
- Stats file is for transparency, not agent context
- Session context extraction is available for deeper investigation when needed
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.

