stoa: Skill for Claude Code

.claude/skills/extract/SKILL.md

extract is a skill for Claude Code from stoa-platform/stoa. It costs 31 tokens per session (1,228 once invoked), scanned A, original, Apache-2.0.

A command for extracting a reusable method from the current coding session into a shared pattern library.

In plain words
What is it for?
Checking whether a solution is reusable, finding similar existing patterns, categorising the method, and recording it for later use across projects.
Why use it?
It prevents useful problem-solving approaches from being lost while avoiding copying private code, client names, prices, or sensitive data.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md.

This is stoa-platform/stoa's own configuration. It tells Claude Code how to work on stoa itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything stoa configures →

Reuse

Borrowing it

Nothing to install: this file belongs to stoa-platform/stoa. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/stoa-platform/stoa/main/.claude/skills/extract/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/stoa-platform/stoa

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for extract

README.md
[![agentmods](https://agentmods.dev/badge/skills/stoa-platform/stoa/extract/github.svg)](https://agentmods.dev/skills/stoa-platform/stoa/extract)
Your own site
<a href="https://agentmods.dev/skills/stoa-platform/stoa/extract"><img src="https://agentmods.dev/badge/skills/stoa-platform/stoa/extract/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for extract

Your own site · 80×15
<a href="https://agentmods.dev/skills/stoa-platform/stoa/extract"><img src="https://agentmods.dev/badge/skills/stoa-platform/stoa/extract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,228 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.01228
Opus 5.5 $0.00012 $0.00491
Sonnet 5.5 $0.00006 $0.00246
Haiku 4.5 $0.00003 $0.00123

Measured 2mo ago against content hash 6cbe5f2a3027, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

extract scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/extract/SKILL.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.md anonymization rules.

Step 1: Identify the Pattern

From the current session's work, identify what is reusable:

  1. What recurring problem was solved? (not a one-off fix)
  2. Is this transferable to other projects (PRAXIS, ATHLOS, OIKOS)?
  3. 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 -1

Next 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 |

Read the full file on GitHub · 140 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 140 lines · 31 tokens per session scan A 6cbe5f2a3027

Subscribe to this mod's changes

extract is a skill published in the GitHub repository stoa-platform/stoa (9 stars, last pushed yesterday), licensed Apache-2.0. It adds 31 tokens to every session and 1,228 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

extract compared with skills from other repositories

extract next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
extractstoa-platform/stoaSkill9yesterdayApache-2.0A31Claude Code
lyrikgebruder/wirkenSkill1942d agoMITA15Claude Code
librariangebruder/wirkenSkill1942d agoMITA34Claude Code
notesgebruder/wirkenSkill1942d agoMITA10Claude Code
tdx-assetsgebruder/wirkenSkill1942d agoMITA58Claude Code
aggregatorgebruder/wirkenSkill1942d agoMITA30Claude Code
githubgebruder/wirkenSkill1942d agoMITA9Claude Code