AGENT SKILL

surface-modeling

Turns raw extracted surfaces into named, typed, module-attributed surfaces with entry and exit marks, the layer the engine cannot infer from code. Use when extraction is done and flow tracing has not started.

License 许可
MIT
所属仓库
Eliyce/paqad-ai
最近更新
2026-11-13
Stars
★ 8
Forks
0

01 前言 Front Matter

name
surface-modeling
metadata
{ "cacheable": "false", "model_tier": "reasoning", "paqad-meta": "skill.meta.yaml", "output_format": "json" }
description
Turns raw extracted surfaces into named, typed, module-attributed surfaces with entry and exit marks, the layer the engine cannot infer from code. Use when extraction is done and flow tracing has not started.

02 资源文件 3

03 SKILL.md 正文

What It Does

Adds the layer the code cannot carry on its own: a semantic slug, a human title, the surface kind, entry and exit marks, and the owning module for each extracted surface. This is the one stage where the map gains meaning beyond what a scanner sees, so it is the one stage where judgment is load-bearing and must stay honest.

Use This When

After extraction and before flow tracing. Every surface the map publishes passes through here to get its name and type.

Inputs

  • The extraction.json from surface-extraction (raw surfaces with evidence).
  • The module map, to attribute each surface to the module that owns it.
  • Read references/modeling-judgment.md before naming or typing a surface.

Procedure

The mechanical checks (slug rules, evidence resolution, accounting) belong to the engine's lint; your job is the naming and typing judgment.

  1. For each extracted surface, assign a semantic slug, a title, and a kind (page | screen | modal | action | api | cli-command | job | router | terminal | …).
  2. Mark entry points and exits, and attribute the surface to its owning module via the module map.
  3. Account for every extracted entry: mapped, or excluded with a stated reason. Re-run paqad-ai sitemap run so the engine lints slugs, evidence, and accounting.

Output Contract

  • A JSON object { surfaces: [{ id, slug, title, kind, area, module, entry, evidence }], excluded: [{ id, reason }] }.
  • Every modeled surface carries a resolving file:line evidence pointer.
  • Every extracted entry appears in surfaces or excluded: none is dropped silently.

Escalate / Stop Conditions

  • Do not name a surface the extractor never produced, and do not drop an extracted surface without an explicit excluded reason.
  • Stop and ask when a surface's kind is genuinely ambiguous rather than guessing a type that changes how the graph reads.
  • Keep the slug derived from evidence, not invented; a slug with no basis in the code is a defect.

Resources

  • references/modeling-judgment.md
  • agents/openai.yaml

04 同仓库更多 Skills

Eliyce
Eliyce/paqad-ai

sample-skill

Sample bundled skill fixture

★ 8
Eliyce
Eliyce/paqad-ai

processing-invoices

Turns a supplier invoice into one ledger line. Use when a supplier invoice arrives and needs booking.

★ 8
Eliyce
Eliyce/paqad-ai

processing-invoices

Turns a supplier invoice into one ledger line. Use when a supplier invoice arrives and needs booking.

★ 8
Eliyce
Eliyce/paqad-ai

understand-idea

Chat and Claude Code: Step 1 of the discover journey: clarifies the goal, who benefits, success and constraints into the idea block. Use when the journey directs it to step 1, not directly.

★ 8
Eliyce
Eliyce/paqad-ai

size-work

Chat and Claude Code: Suggest a size for a ticket from comparable finished work, as a labelled suggestion the team still owns. Use it when someone asks "how big is this?", "roughly how much work is ABC-12?", or wants a backlog item sized. It finds the team's sizing scale at first use, picks two to five of the closest finished tickets with links, and gives a size or range with the drivers behind it and a confidence of low, medium or high, lowered and explained when the area's documents are template text. Every result is labelled a suggested size, never a date or a commitment. It writes nothing into the size field unless the user says "set it", and it refuses to overwrite an existing size unless the user asks to replace it. Produces the sizing block of the record.

★ 8
Eliyce
Eliyce/paqad-ai

refine-ticket

Chat and Claude Code: Improve one or more existing tracker tickets without losing the author's intent. Use it when someone wants a ticket read, diagnosed and tidied up ("this ticket is vague", "fix up ABC-12", "split this, it's too big"). It reads each ticket in full and snapshots it with its last-updated time, says what is wrong with evidence, and proposes a field-by-field before and after change set limited to summary, description, labels, parent, links and new child tickets on a split. It writes nothing until an explicit "apply it" bound to that exact change set, re-checks the ticket for conflicting edits just before writing, never replaces rich descriptions with plain text, never deletes or closes a ticket, and reads each ticket back after applying. Produces the existing and changes blocks of the record.

★ 8