Skip to content
Agentmart
Submit a tool

derive-kind

Classify a parcel as pure-fn / io / ui / config / infra to route the right verify gates.

Skill by youssefKadaouiAbbassi

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/youssefkadaouiabbassi-derive-kind

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Classify a parcel as pure-fn / io / ui / config / infra to route the right verify gates. Uses ast-grep + path heuristics + claim regex.

Use cases: design

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/derive-kind

Tools it pre-approves 4

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Bash,
  • Read,
  • Grep,
  • Glob

What's inside

Skill name
derive-kind
Description
Classify a parcel as pure-fn / io / ui / config / infra to route the right verify gates. Uses ast-grep + path heuristics + claim regex.
License
MIT
Allowed tools
Bash,, Read,, Grep,, Glob
Instructions
53 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves some shell commands

Files (1)

  • SKILL.md

SKILL.md (first lines)

# derive-kind runbook

## Input

Parcel id passed via $ARGUMENTS. Read `.forge/dag.json`, locate parcel by id, inspect `paths[]` + `claim`.

## Decision (first match wins)

```bash
PARCEL_ID="$1"
PATHS="$(jq -r '.parcels[] | select(.id=="'"$PARCEL_ID"'") | .paths[]' .forge/dag.json)"
CLAIM="$(jq -r '.parcels[] | select(.id=="'"$PARCEL_ID"'") | .claim' .forge/dag.json)"

ui_path='\.(tsx|jsx|vue|svelte)$|^pages/|^components/|^app/.*page\.'
ui_claim='button|form|render|onClick|screen|page|component'
infra_path='^Dockerfile|^docker-compose|\.tf$|\.github/.*\.ya?ml$|^kustomize/|^helm/|^terraform/'
infra_claim='deploy|CI|pipeline|infra|helm|terraform|k8s'
config_path='\.(json|toml|ini)$|^tsconfig|^bunfig|^package\.json$|^\.env|^settings'
config_claim='schema|config|env|manifest'
io_path='^routes/|^api/|^controllers/|\.sql$|^migrations/|^db/|^network/|^fs/'
io_claim='route|endpoint|fetch|query|S3|request|response|network'

# ast-grep refines UI detection: any tsx/jsx file with a default export returning JSX is ui
ast_ui() {
  for f in $(echo "$PATHS" | grep -E '\.(tsx|jsx)$'); do
    [ -f "$f" ] && ast-grep --pattern 'export default function $_($$$) { return <$_/> }' "$f" 2>/dev/null | grep -q . && return 0
  done
  return 1
}

if echo "$PATHS" | grep -qE "$ui_path" || echo "$CLAIM" | grep -qiE "$ui_claim" || ast_ui; then echo ui
elif echo "$PATHS" | grep -qE "$infra_path" || echo "$CLAIM" | grep -qiE "$infra_claim"; then echo infra
elif echo "$PATHS" | grep -qE "$config_path" || echo "$CLAIM" | grep -qiE "$config_claim"; then echo config
elif echo "$PATHS" | grep -qE "$io_path" || echo "$CLAIM" | grep -qiE "$io_claim"; then echo io
else echo pure-fn
fi
```

## Output

Single token to stdout: `pure-fn` | `io` | `ui` | `config` | `infra`.

## Routing table consumed by forge-lead

| Kind | pbt-verify | mutation-gate | browser-verify |
|---|---|---|---|
| pure-fn | required | required | skipped |
| io | required if pure-fn boundary derivable | required | skipped |
| ui | optional | required | required |
| config | skipped | skipped | skipped |
| infra | skipped | skipped | skipped |

From youssefKadaouiAbbassi/yka-code, MIT.

More from youssefKadaouiAbbassi/yka-code

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
May 13, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from youssefKadaouiAbbassi

Cite this page

derive-kind skill. Agent Mart. https://agentmart.dev/skills/youssefkadaouiabbassi-derive-kind (last updated 2026-10-24)