Agent skill

Skill Extract

by flonat in flonat/flonat-research

Extract reusable knowledge from the current session into a persistent skill.

MITAuto-check passed

Install Skill Extract

skills CLI
$ npx skills add flonat/flonat-research --skill skill-extract -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install flonat/flonat-research skill-extract --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/flonat/flonat-research.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/skill-extract .claude/skills/skill-extract && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
skill-extract
GitHub stars
145
Token cost
~2.4k tokens
SKILL.md length
977 words
Files
2 (incl. scripts)
Skills in repo
83
Repo updated
First seen
Licence
MIT

At a glance

Extract reusable knowledge from the current session into a persistent skill.

  • Works in 6 steps: Evaluate → Creation Guard + Read Patterns → Design the Skill → …
  • You discover something non-obvious
  • SKILL.md covers When to Use, Phase 1: Evaluate, Phase 2: Creation Guard + Read… and Phase 3: Design the Skill, plus 4 more sections
  • Runs Python scripts from its folder; calls uv

What it does

Skill Extract is an agent skill from flonat/flonat-research. Extract reusable knowledge from the current session into a persistent skill. Use when you discover something non-obvious, create a workaround, or develop a multi-step workflow that future sessions would benefit from.

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/validate_skill.py`).

The repository describes itself as: Shareable Claude Code + Codex infrastructure for PhD researchers — skills, agents, hooks, and rules for academic workflows. The licence is MIT.

When your agent uses it

  • You discover something non-obvious
  • Create a workaround
  • Develop a multi-step workflow that future sessions would benefit from

Example prompts

  • “/skill-extract”

Requirements

  • Python 3
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Glob, Grep, Bash(uv run python*), AskUserQuestion

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Evaluate
  2. Creation Guard + Read Patterns
  3. Design the Skill
  4. Build the Skill
  5. Validate
  6. Deploy and Confirm

What it can do on your machine

Read from SKILL.md and the folder at commit da27600. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Glob
    • Grep
    • Bash(uv run python*)
    • AskUserQuestion

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Skill Extract loads about 2.4k tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 977 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from flonat/flonat-research at commit da27600, republished under its MIT licence (© flonat). 977 words, ~2,369 tokens.

Download SKILL.mdSave it as .claude/skills/skill-extract/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
skill-extract
description
Extract reusable knowledge from the current session into a persistent skill. Use when you discover something non-obvious, create a workaround, or develop a multi-step workflow that future sessions would benefit from.
allowed-tools
Read, Write, Edit, Glob, Grep, Bash(uv run python*), AskUserQuestion
skill-dependencies
proofread

Learn: Session Knowledge Extraction

Extract reusable workflows, workarounds, and multi-step procedures discovered during a session into persistent skills. Complementary to the learn-tags rule — while [LEARN] tags record one-liner corrections in MEMORY.md, skill-extract creates full skill definitions in skills/.

When to Use

  • You discovered a non-obvious multi-step procedure
  • You built a workaround for a recurring problem
  • You developed a workflow that future sessions would benefit from
  • the user says "save this as a skill", "learn this", or "remember how to do this"

Phase 1: Evaluate

Before creating anything, answer these 4 self-assessment questions:

  1. Non-obvious? Would a future session figure this out without help, or would it waste time rediscovering it?
  2. Future benefit? Will this come up again across sessions or projects?
  3. Repeatable? Is this a procedure that can be followed step-by-step, or was it a one-off?
  4. Multi-step? Does it involve 2+ non-trivial steps that benefit from being documented together?

Decision rule: If at least 3 of 4 answers are "yes", proceed to Phase 2. Otherwise, suggest recording as a [LEARN] tag in MEMORY.md instead (simpler, lower overhead).

If borderline, ask the user:

"This seems useful but may not warrant a full skill. Should I create a skill or just add a [LEARN] tag to MEMORY.md?"

Phase 2: Creation Guard + Read Patterns

Run the skill-preflight analysis (see skills/skill-preflight/SKILL.md):

  1. Identify the proposal (name, type, purpose, key functions, keywords)
  2. Search existing skills and agents for overlap (skill-index scan + keyword grep)
  3. Analyse overlap and generate a recommendation:
RecommendationCriteriaAction
PROCEED<20% overlap, genuinely newContinue to Phase 3
EXTEND50%+ overlap with one existingModify existing skill instead — stop here
COMPOSEMultiple artifacts cover 80%+Create wrapper or document workflow — stop here
ITERATE20-50% overlap, needs refinementAsk the user to clarify differentiation, then re-evaluate
BLOCKWould create duplicationDo not create — stop here
  1. Present the skill-preflight analysis to the user and get explicit approval before proceeding
  2. Read skills/shared/skill-design-patterns.md — choose the structural pattern that fits:
    • Workflow-based — multi-step with phases and review gates
    • Task-based — focused input/output with processing rules
    • Agent-delegation — multiple subagents, each handling one concern
    • Reference-based — augmenting with domain knowledge via references/

Phase 3: Design the Skill

Before writing, make three decisions:

1. Choose the structural pattern (from Phase 2). State it explicitly:

"This is a [workflow/task/agent-delegation/reference]-based skill."

2. Identify resources needed:

  • Does the skill need scripts/ for deterministic operations?
  • Does it need references/ for detailed specs, rubrics, or large examples?
  • Does it need to delegate to subagents?

3. Draft the architecture — for non-trivial skills, sketch the flow:

Input → [Step A] → REVIEW GATE → [Step B] → Output

Phase 4: Build the Skill

Write skills/{name}/SKILL.md:

Frontmatter
yaml
---
name: {kebab-case-name}
description: "{What it does. Concrete task types. Use when...}"
allowed-tools:
  - {minimum set of tools needed}
---
Body Structure

The body varies by pattern, but always includes these elements:

markdown
# {Skill Name}: {Short Description}

## When to Use
[Activation conditions — natural language triggers and /command]

## {Main Workflow / Processing Rules / Delegation Protocol}
[The core of the skill — structured per the chosen pattern]

## {Anti-Patterns / Never Do These}
[What NOT to do — agents default to generic without constraints]

## Output Format
[What the output looks like]

## Verification
[How to confirm it worked]

Optional sections (add when relevant):

  • ## Defaults — assumptions table to reduce friction
  • ## Examples — concrete before/after or good/bad snippets
  • ## Notes — edge cases, limitations
Solution Pattern (for debugging/workaround skills)

When the skill captures a fix, workaround, or debugging procedure, use this body structure:

markdown
# {Skill Name}: {Short Description}

## Problem
[Specific error message or symptom. Quote the exact text users would see.]

## Context / Triggers
[When this occurs — tool versions, file types, OS, configurations]

## Solution
[Step-by-step fix. Imperative form.]

## Verification
[How to confirm the fix worked]

## Example
[Concrete before/after or input/output]

## Notes
[Edge cases, alternative approaches, when this does NOT apply]
Description Optimization

The description: field in frontmatter is what triggers skill discovery. Write it to match how a user would describe their problem:

  • Include specific error messages or symptoms — "Fix Package biblatex Error: File 'references.bib' not found"
  • Include context markers — file types, tools, situations where this applies
  • Include negative cases — "Not for general proofreading (use proofread instead)"
  • Use natural trigger phrases — the exact words a user would type
Extraction Checklist

During skill creation, mentally verify each point before finalising:

  1. Trigger coverage — would a user find this skill from 3 different phrasings of the same problem?
  2. Self-contained — can the skill be followed without reading other files (except references/)?
  3. Anti-patterns present — at least 2 "don't do this" entries to prevent common mistakes?
  4. Verification step — does the skill tell you how to confirm it worked?
  5. Scope bounded — is it clear what this skill does NOT do?
Show full SKILL.md (377 more words)Show less
Writing Rules
  • Imperative form. "Parse the input" not "You should parse the input."
  • Be specific about what NOT to do. Anti-pattern lists are highly effective.
  • Include concrete examples. Show expected input/output pairs.
  • Keep SKILL.md under 300 lines. Move detail to references/.
  • Every instruction must be actionable. No throat-clearing.
  • Use tables for structured data. Faster to parse than prose.
Naming Conventions
  • Directory and name: kebab-case, descriptive, 2-4 words
  • Avoid generic names: fix-bug is bad; fix-overleaf-sync-conflict is good
  • Match the trigger: If the natural trigger is "compile my slides", the name should relate to slide compilation
Allowed Tools

Follow principle of least privilege:

Skill typeTools
Report-onlyRead, Glob, Grep
File-creating+ Write, Edit
Shell-needing+ specific Bash(command*) patterns
Interactive+ the available structured-question mechanism
Delegating+ Task

Phase 5: Validate

Run the validation script on the new skill:

bash
uv run python skills/skill-extract/scripts/validate_skill.py skills/{name}

Fix all errors. Address warnings to improve quality. Use --strict to promote warnings to errors.

The validator checks: frontmatter validity, name format and directory match, description quality, body length, broken links, referenced directories, and placeholder text.

Phase 6: Deploy and Confirm

  1. Add an explicit client/capability row to config/ai-skill-contracts.yaml; never rely on a silent both default.
  2. Add the new asset to config/public-ai-contracts.yaml as distribution: exclude. Public inclusion is a separate, user-owned whitelist decision: creating, approving, committing, syncing, or deploying the skill is not approval to publish it. Change it to include only after the user explicitly approves that named skill for the public distribution.
  3. Update docs/components/skills.md, including the overview, full catalogue, and category subtotal, then run the inventory checker.
  4. Render, validate, and deploy from the canonical control plane:
    bash
    uv run python scripts/ai_skill_contracts.py check
    uv run python scripts/public_framework.py check
    uv run python scripts/ai-infra-sync.py render
    uv run python scripts/ai-infra-sync.py deploy --target all --if-changed
    uv run python scripts/ai-infra-sync.py doctor --target all
  5. Check that each declared client target contains the deployed SKILL.md.
  6. Tell the user which clients received the skill and that public distribution remains excluded unless separately approved.

What This Skill Does NOT Do

  • Does not replace [LEARN] tags — one-liner corrections still go in MEMORY.md via the learn-tags rule; skill-extract is for multi-step procedures, not one-liners
  • Does not create agents — agents need separate context and persistent memory
  • Does not modify existing skills — if an existing skill needs updating, do that directly

© flonat, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in skills/skill-extract of flonat/flonat-research.

  • SKILL.md
  • scripts/validate_skill.py

Open the folder on GitHubat commit da27600

Compare with similar skills

Skill Extract next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Skill Extract compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Skill Extract this skillflonat/flonat-research145—~2.4kAutomated safety check: PassMIT
Extractalirezarezvani/claude-skills28k—~1.4kAutomated safety check: PassMIT
Brand Extractnexu-io/open-design100k—~3.1kAutomated safety check: PassApache-2.0
Design Extractnexu-io/open-design100k—~549Automated safety check: PassApache-2.0
Swift Actor Persistenceaffaan-m/ECC275k4 repos~1.2kAutomated safety check: PassMIT
Kg Extractruvnet/ruflo74k—~751Automated safety check: NotesMIT

Similar skills

  • Extract

    alirezarezvani/claude-skills

    Turn a proven pattern or debugging solution into a standalone reusable skill with SKILL.md, reference docs, and examples.

    28k GitHub stars~1.4k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Brand Extract

    nexu-io/open-design

    Extract a complete Brand Kit from a live website by driving the in-app browser.

    100k GitHub stars~3.1k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Design Extract

    nexu-io/open-design

    Extract design tokens (color / typography / spacing) from imported source code, screenshots, or Figma exports into the canonical token bag token-map consumes.

    100k GitHub stars~549 tokensUpdated today
    Frontend & DesignAuto-check passed
  • Thread-safe data persistence in Swift using actors — in-memory cache with file-backed storage, eliminating data races by design.

    275k GitHub starsUsed in 4 repos~1.2k tokens
    MobileAuto-check passed
  • Kg Extract

    ruvnet/ruflo

    Extract entities and relations from source files to build a knowledge graph

    74k GitHub stars~751 tokensUpdated today
    Knowledge ManagementAuto-check: notes
  • Session Persist

    ruvnet/ruflo

    Persist and restore agent sessions across conversations with state snapshots

    74k GitHub stars~415 tokensUpdated today
    Auto-check: notes

More from flonat/flonat-research

All 83 skills in this repo
  • Latex Posters

    flonat/flonat-research

    Create a large-format academic poster in LaTeX using beamerposter, tikzposter, or baposter.

    145 GitHub stars~1.5k tokensUpdated 9 days ago
    Auto-check: notes
  • Skill Creator

    flonat/flonat-research

    Create, revise, and evaluate reusable AI workflow skills, including trigger-quality tests.

    145 GitHub stars~4.4k tokensUpdated 9 days ago
    Auto-check passed
  • DOCX

    flonat/flonat-research

    Create, read, edit, or convert Microsoft Word documents while preserving professional document structure.

    145 GitHub stars~1.2k tokensUpdated 9 days ago
    Auto-check passed
  • PDF

    flonat/flonat-research

    Read, create, combine, split, rotate, OCR, watermark, secure, or extract content from PDF files.

    145 GitHub stars~488 tokensUpdated 9 days ago
    Auto-check passed
  • Init Project Orchestration

    flonat/flonat-research

    Create or migrate project-level agents, repeatable project workflows, and planning state from one client-neutral contract, then render repository-scoped adapters for both Claude Code and Codex.

    145 GitHub stars~1.6k tokensUpdated 9 days ago
    Auto-check passed
  • Pre Commit Audit

    flonat/flonat-research

    Deliver a fast pre-commit safety scan: file size, anonymity (author / affiliation strings in tex/bib), hardcoded secrets, and invisible-Unicode carriers.

    145 GitHub stars~2.8k tokensUpdated 9 days ago
    Auto-check: notes

Questions about Skill Extract

What does Skill Extract do?

Extract reusable knowledge from the current session into a persistent skill. Skill Extract is an agent skill from flonat/flonat-research. Extract reusable knowledge from the current session into a persistent skill.

When should I use Skill Extract?

Skill Extract fits situations like: you discover something non-obvious; create a workaround; develop a multi-step workflow that future sessions would benefit from.

How do I install Skill Extract in Claude Code?

Run `npx skills add flonat/flonat-research --skill skill-extract -a claude-code`. Or copy the skill folder (skills/skill-extract in flonat/flonat-research) into .claude/skills/skill-extract in your project. Claude Code loads it when a task matches its description.

How do I install Skill Extract in Codex?

Run `npx skills add flonat/flonat-research --skill skill-extract -a codex`. Or copy the skill folder (skills/skill-extract in flonat/flonat-research) into .agents/skills/skill-extract in your project. Codex loads it when a task matches its description.

Can I use Skill Extract in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add flonat/flonat-research --skill skill-extract -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/skill-extract, .gemini/skills/skill-extract, .github/skills/skill-extract and .opencode/skills/skill-extract in your project.

What does Skill Extract need to run?

Going by SKILL.md and its folder, Skill Extract needs Python for the scripts in its folder and the command-line tools its instructions call (uv). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Write, Edit, Glob, Grep, Bash(uv run python*), AskUserQuestion.

Does Skill Extract access the network?

SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Skill Extract safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Skill Extract use?

Skill Extract is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Skill Extract use?

About 2.4k tokens (SKILL.md is roughly 9.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Skill Extract?

Skills that share tags, products or a category with Skill Extract: Extract (alirezarezvani/claude-skills, 28k stars), Brand Extract (nexu-io/open-design, 100k stars), Design Extract (nexu-io/open-design, 100k stars) and Swift Actor Persistence (affaan-m/ECC, 275k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Skill Extract?

flonat (a GitHub user) maintains it in flonat/flonat-research, which has 145 GitHub stars. The repository holds 83 skills in this directory. The repository was last updated on September 29, 2026.

Source: flonat/flonat-research on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.