extract
Skill9 starsChanged 7 months agoApache-2.0View on GitHub
Extract a reusable pattern from the current session into HEGEMON Pattern Library. Atomic operation (write + git add + commit + Notion sync).
- Commits and pushes
37 other projects use a version of this.
Adopted by
Most recently taken up by
- kanap-hq/KANAPtheir own version, first seen Nov 8, 2026
- crocotaste/crocotaste-plugintheir own version, first seen Nov 1, 2026
- nexmoe/DayBeetheir own version, first seen Nov 1, 2026
- actionbook/actionbooktheir own version, first seen Oct 25, 2026
- ryneivy/SKILLStheir own version, first seen Oct 20, 2026
- davidanthonyn/claude-skillstheir own version, first seen Oct 20, 2026
Used with
Projects with it also use ai-act-readiness, c-level-agents 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.
Hussain-ElfalahSkillai-act-readiness
Also in 3 projects that use this
Hussain-ElfalahSkillc-level-agents
Also in 3 projects that use this
MicrosoftSkillinbox-setup
Set up the Inbox agent with recommended VS Code settings and gh CLI configuration
Also in 3 projects that use this
- +9 more from Hussain-Elfalah
Other versions37 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 37
- actionbook/actionbook★ 1.6ksame name
- talesofai/cohub★ 585same name
- educlopez/ui-craft★ 441same name
- nexmoe/DayBee★ 424same name
- nexmoe/eve★ 424same name
- Southclaws/storyden★ 348same name
- AkaraChen/aghub★ 271same name
- zacharyfmarion/openscad-studio★ 238same name
- jagrat7/linux-wallpaper-engine★ 227same name
- runxhq/runx★ 97same name
27 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 repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- cli/CLAUDE.mdCLAUDE.md
- control-plane-api/CLAUDE.mdCLAUDE.md
- control-plane-ui/CLAUDE.mdCLAUDE.md
- e2e/CLAUDE.mdCLAUDE.md
- portal/CLAUDE.mdCLAUDE.md
- stoa-gateway/CLAUDE.mdCLAUDE.md
- analyticsSkill
- cartoSkill
- ci-debugSkill
- ci-fixSkill
- competitive-watchSkill
- councilSkill
- decomposeSkill
- fill-cycleSkill
- generate-backlogSkill
- impactSkill
- memory-consolidateSkill
- monitor-cdSkill
- parallel-reviewSkill
- pr-guardianSkill
- rewriteSkill
- roadmapSkill
- spec-drivenSkill
- sync-planSkill
- verify-megaSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 35 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Does a similar pattern already exist?: Check hegemon/patterns/ directory
- Distinctive: line 19
If the answer to #1 or #2 is "no", this is NOT a pattern — it's a project-specific solution.
- Distinctive: line 21
If a similar pattern exists, update it (add to Reuse Log) instead of creating a new one.
- Distinctive: line 37
Read existing patterns to find the next available ID:
- Distinctive: line 47
Create the pattern file using the HEGEMON template.
- Very specific: line 75
Write the file to: hegemon/patterns/<category>/HEG-PAT-XXX-<kebab-case-name>.md
- Distinctive: line 90
Create an entry in the HEGEMON Pattern Library Notion database:
- Very specific: line 107
If Notion MCP is unavailable, log a TODO in hegemon/memory.md for manual sync.
“Common” is measured: kept by at least 6 in 10 of the 35 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
HEGEMON Pattern Extraction — $ARGUMENTS
IP Guard: Patterns describe methodology and approach, never verbatim proprietary code, client names, pricing, or sensitive business data. Anonymize all examples. See
hegemon/CLAUDE.mdanonymization rules.
Step 1: Identify the Pattern
From the current session's work, identify what is reusable:
- What recurring problem was solved? (not a one-off fix)
- Is this transferable to other projects (PRAXIS, ATHLOS, OIKOS)?
- Does a similar pattern already exist? Check
hegemon/patterns/directory
If the answer to #1 or #2 is "no", this is NOT a pattern — it's a project-specific solution. Skip extraction.
If a similar pattern exists, update it (add to Reuse Log) instead of creating a new one.
Step 2: Categorize
Determine the pattern category:
| Category | Examples | Directory |
architecture | System design, infrastructure patterns, integration patterns | patterns/architecture/ |
workflow | Development process, CI/CD, session management, estimation | patterns/workflow/ |
validation | Review processes, quality gates, Council patterns | patterns/validation/ |
prompt | Effective prompt structures, agent delegation patterns | patterns/prompt/ |
communication | Stakeholder management, reporting, documentation patterns | patterns/communication/ |
Step 3: Assign Pattern ID
Read existing patterns to find the next available ID:
ls hegemon/patterns/*/HEG-PAT-*.md | sort -t- -k3 -n | tail -1Next ID = highest existing + 1. Format: HEG-PAT-XXX (zero-padded to 3 digits).
Step 4: Write the Pattern File
Create the pattern file using the HEGEMON template. The file MUST include ALL sections:
# HEG-PAT-XXX: [Pattern Name]
## Metadata
- **Origin**: [Project] / [Ticket or context]
- **Category**: [architecture | workflow | prompt | validation | communication]
- **Supervision Tier**: [AUTOPILOT | CO-PILOT | COMMAND]
- **Created**: [YYYY-MM-DD]
- **Last Updated**: [YYYY-MM-DD]
## Problem
[What recurring problem does this pattern solve? 2-3 sentences.]
## Solution
[The reusable approach — methodology, decision trees, workflow structures.
NOT verbatim code. Describe the pattern abstractly enough to apply across projects.]
## Constraints
[When NOT to use this pattern. Preconditions. Limitations.]
## Reuse Log
| Date | Project | Outcome | Adaptations |
|------|---------|---------|-------------|
| [today] | [origin project] | Extracted | Initial extraction |Write the file to: hegemon/patterns/<category>/HEG-PAT-XXX-<kebab-case-name>.md
Step 5: Atomic Git Commit
This MUST be a single atomic operation — never leave an uncommitted pattern file.
cd <hegemon-repo-path>
git add patterns/<category>/HEG-PAT-XXX-<name>.md
git commit -m "extract(patterns): HEG-PAT-XXX <pattern-name> from <project>"
git push origin mainStep 6: Notion Sync
Create an entry in the HEGEMON Pattern Library Notion database:
notion-create-pages({
title: "HEG-PAT-XXX: <Pattern Name>",
properties: {
"Pattern ID": "HEG-PAT-XXX",
"Category": "<category>",
"Origin Project": "<project>",
"Supervision Tier": "<tier>",
"Reuse Count": 1,
"Status": "validated",
"Git Path": "patterns/<category>/HEG-PAT-XXX-<name>.md"
}
})If Notion MCP is unavailable, log a TODO in hegemon/memory.md for manual sync.
Step 7: Update Project Extract Log
Append to hegemon/projects/<project>/extracts.md:
### HEG-PAT-XXX: <Pattern Name> (YYYY-MM-DD)
- **Ticket**: <ticket-id or context>
- **Category**: <category>
- **Transfer potential**: HIGH | MEDIUM | LOW
- **Learning**: <1-2 sentence insight from this extraction>Step 8: Report
Pattern extracted: HEG-PAT-XXX — <Pattern Name>
Category: <category>
Supervision Tier: <tier>
Git: hegemon/patterns/<category>/HEG-PAT-XXX-<name>.md
Notion: synced | TODO (manual sync needed)
Project log: updatedRules
- One pattern per extraction — don't bundle multiple patterns
- Methodology, not code — describe the approach, not implementation details
- Anonymize everything — no client names, no pricing, no internal metrics values
- Update > Create — if a similar pattern exists, update its Reuse Log instead
- Atomic commits — pattern file must be committed immediately, never left unstaged
- Notion is secondary — if sync fails, the git file is still the source of truth
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.

