surface-extraction

surface-extraction is a skill for Codex from Eliyce/paqad-ai. It costs 36 tokens per session (590 once invoked), scanned A, original, MIT.

A code-scanning workflow that inventories the pages, screens, endpoints, and commands an application exposes, with file-and-line proof for each item.

In plain words
What is it for?
Creating an evidence-backed site map from route files, command programs, and endpoint handlers.
Why use it?
It removes guesswork from documenting an application and produces a repeatable result that can be checked against later runs.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Creating an evidence-backed site map from route files, command programs, and endpoint handlers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eliyce/paqad-ai/surface-extraction
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 Eliyce/paqad-ai --skill surface-extraction
Clone the repo
git clone --depth 1 https://github.com/Eliyce/paqad-ai

Made for: 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 surface-extraction

README.md
[![agentmods](https://agentmods.dev/badge/skills/eliyce/paqad-ai/surface-extraction/github.svg)](https://agentmods.dev/skills/eliyce/paqad-ai/surface-extraction)
Your own site
<a href="https://agentmods.dev/skills/eliyce/paqad-ai/surface-extraction"><img src="https://agentmods.dev/badge/skills/eliyce/paqad-ai/surface-extraction/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 surface-extraction

Your own site · 80×15
<a href="https://agentmods.dev/skills/eliyce/paqad-ai/surface-extraction"><img src="https://agentmods.dev/badge/skills/eliyce/paqad-ai/surface-extraction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 590 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.00036 $0.00590
Opus 5 $0.00018 $0.00295
Sonnet 5 $0.00007 $0.00118
Haiku 4.5 $0.00004 $0.00059

Measured 8d ago against content hash 7f7c191e64cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

surface-extraction 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 8d 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.

runtime/capabilities/coding/skills/surface-extraction/SKILL.md · 66 lines

How it starts

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

What It Does

Produces the raw surface inventory the rest of the workflow builds on: every page, screen, endpoint, or command the extractor can prove from the code, each with resolving file:line evidence, deduped, and folded into a stable fingerprint. Mostly deterministic — the engine does the scanning; this skill orchestrates it and confirms the output is clean.

Use This When

Use this after readiness passes and before modeling. It is the bridge from "the app is mappable" to "here is what the app exposes, with proof".

Inputs

  • The readiness verdict and detected extractor from site-map-readiness.
  • The project source the extractor scans (route files, command programs, endpoint handlers).
  • Read references/extraction-evidence.md before accepting or excluding a surface.

Procedure

Extraction is deterministic — the engine owns it. Do not re-scan the code by hand.

  1. Run paqad-ai sitemap run; it runs the extractors, dedupes, unions evidence, and computes the extraction fingerprint.
  2. Read the extraction.json in the run bundle: each extracted surface carries its kind, a file:line, and a derivation (static | convention).
  3. Confirm every surface's evidence resolves and no surface is a duplicate under a different label; flag any the engine could not ground rather than passing it through.

Output Contract

  • A JSON object { surfaces: [{ id, kind, evidence, derivation }], fingerprint, blocked_checks: [...] }.
  • Every surfaces[] entry carries at least one resolving file:line evidence pointer.
  • fingerprint is present and stable across identical inputs.

Escalate / Stop Conditions

  • Stop and record a blocked_checks entry when the extractor cannot read the app shape; never invent a surface to fill the gap.
  • Warn when the extraction is empty on a non-trivial app — that is a coverage gap, not a clean map.
  • Do not promote a convention-derived surface to static confidence without resolving evidence.

Resources

  • references/extraction-evidence.md
  • agents/openai.yaml

Read the full file on GitHub · 66 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 66 lines · 36 tokens per session scan A 7f7c191e64cd

Subscribe to this mod's changes

surface-extraction is a skill published in the GitHub repository Eliyce/paqad-ai (8 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 590 once invoked, about $0.0002 per session on Opus 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-09-03.