Skip to content
Back to skills

Surface Modeling

ASecurity

Turn raw extracted surfaces into named, typed, module-attributed surfaces with entry and exit marks — the non-inferable layer the engine cannot derive from the code alone.

  • 8 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 2, 2026
ai-agentsapi

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add Eliyce/paqad-ai --skill surface-modeling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Surface Modeling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Surface Modeling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/eliyce-surface-modeling/badge)](https://www.skillsdirectory.com/skills/eliyce-surface-modeling)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: surface-modeling
description: Turn raw extracted surfaces into named, typed, module-attributed surfaces with entry and exit marks — the non-inferable layer the engine cannot derive from the code alone.
model_tier: reasoning
triggers:
  - workflow:
      - site-map
cacheable: false
cache_key_inputs: []
output_format: json
input_schema:
  extraction:
    type: path
    required: true
    description: The extraction.json produced by surface-extraction, the raw surfaces to model.
---

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

Use this 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`

Files in this skill

  • SKILL.md2.5 KB
  • agents/openai.yaml169 B
  • references/modeling-judgment.md1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.