extract-profile

extract-profile is a skill for Claude Code, Codex from luca-mastrostefano/agent-native-setup. It costs 73 tokens per session (2,786 once invoked), scanned B, original, MIT.

A procedure for extracting a complete, reusable agent-setup profile from an existing repository. It covers agent rules, tooling, external tool connections, documentation conventions, and Git checks.

In plain words
What is it for?
Use it to create a standalone profile in a sibling directory, parameterise values tied to one installation, compare the result with the source, and prepare it for release.
Why use it?
It separates reusable workflow structure from product-specific content and verifies that the new profile faithfully reproduces the source setup.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

Good fit Use it to create a standalone profile in a sibling directory, parameterise values tied to one installation, compare the result with the source, and prepare it for release.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luca-mastrostefano/agent-native-setup/extract-profile
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add luca-mastrostefano/agent-native-setup --skill extract-profile
Clone the repo
git clone --depth 1 https://github.com/luca-mastrostefano/agent-native-setup

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/luca-mastrostefano/agent-native-setup/extract-profile/github.svg)](https://agentmods.dev/skills/luca-mastrostefano/agent-native-setup/extract-profile)
Your own site
<a href="https://agentmods.dev/skills/luca-mastrostefano/agent-native-setup/extract-profile"><img src="https://agentmods.dev/badge/skills/luca-mastrostefano/agent-native-setup/extract-profile/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-profile

Your own site · 80×15
<a href="https://agentmods.dev/skills/luca-mastrostefano/agent-native-setup/extract-profile"><img src="https://agentmods.dev/badge/skills/luca-mastrostefano/agent-native-setup/extract-profile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,786 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00073 $0.02786
Opus 5.5 $0.00029 $0.01114
Sonnet 5.5 $0.00015 $0.00557
Haiku 4.5 $0.00007 $0.00279

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

Security

Grade B, and why

extract-profile scanned grade B with 1 finding 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 3mo 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.

Reads MCP configurationmediumAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

`.mcp.json` registration (env-var token expansion, never a secret) and pre-approve it in
.agents/skills/extract-profile/SKILL.md · 156 lines

How it starts

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

Extract the agent-native setup surface of the repo at the source repo path given in the task into a complete, standalone agent-native-setup profile (working name: as given, default <repo>-setup), following the proven procedure below. The profile must reproduce the source's agent workflow faithfully — parameterized, verified, and ready to publish. Work in a sibling directory, never inside the source repo.

1. Inventory (fan out, classify everything)

Sweep the source repo for its agent-native surface — not its product code:

  • Contracts: AGENTS.md / CLAUDE.md / GEMINI.md (symlinks or shim files?), CONTRIBUTING, SECURITY, code-of-conduct.
  • Agent tooling: .claude/ (agents, commands, skills, settings), .cursor/, .gemini/, .github/prompts/, MCP config (.mcp.json — and check whether tools the contract references (e.g. mcp__x__* allowlists) are actually registered anywhere; a permission allowlist is not a registration).
  • Docs conventions: ADR/RFC systems (index, template, lifecycle rules), architecture docs, onboarding/getting-started docs — separate the conventions and structure (reusable) from the product content (not).
  • Gates: git hooks (and how they're armed — husky prepare script? pre-commit install? core.hooksPath?), linter/scanner configs, quality-ratchet files, CI workflows that enforce the contract (vs product build/release pipelines).
  • Env surface: .env.example, secret names in workflows.
  • Distribution vehicles: some repos are the setup, packaged for a marketplace (.claude-plugin/ manifests, root-level skills/ dirs). The packaging is SKIP; the payload ships relocated to project-native paths (skills/x → .claude/skills/x). Docs about the setup (README, examples, per-tool install guides) are SKIP too — the profile writes its own README.

Classify every file: VERBATIM (ships as-is), PARAMETERIZE (project name/slug, instance-bound IDs, org URLs), SKIP (product code, fixtures, lockfiles, generated artifacts, product-specific doc content). Red-flag pass: embedded secrets/tokens, absolute paths, personal instance IDs (ticket-system section IDs, dashboards), non-English docs, and per-machine/local state (.claude/settings.local.json, any *.local.json, .env / .env.local) — always SKIP and .gitignore these; shipping one commits the adopter's own approvals and tokens.

Read the full file on GitHub · 156 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. 3mo ago First seen · 156 lines · 73 tokens per session scan B 4cf7637c6fdc

Subscribe to this mod's changes

extract-profile is a skill published in the GitHub repository luca-mastrostefano/agent-native-setup (7 stars, last pushed yesterday), licensed MIT. It adds 73 tokens to every session and 2,786 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads mcp configuration). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

extract-profile compared with skills from other repositories

extract-profile next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
extract-profileluca-mastrostefano/agent-native-setupSkill7yesterdayMITB73Claude Code, Codex
prereviewsinghharsh1708/kitbashSkill1023d agoApache-2.0A0Claude Code, Codex
code-agnosticdhvcc/code-agnosticSkill33mo agoGPL-3.0A87Claude Code, Codex
publish-siteAtomicBot-ai/atomic-agentSkill3.6kyesterdayMITA31Claude Code, Codex
landing-cro-reviewAtomicBot-ai/atomic-agentSkill3.6kyesterdayMITA28Claude Code, Codex
azd-extension-spec-authoringAzure/azure-devSkill573todayMITA70Claude Code, Codex
Agent Browser AutomationPramodDutta/qaskillsSkill25227d agoMITA37Claude Code, Codex