ap-framework-generator

ap-framework-generator is an agent for Claude Code from Spielewoy/autoprompt-skill. It costs 93 tokens per session (843 once invoked), scanned A, original, MIT.

An internal Autoprompt worker that creates a custom software-work framework when the system’s existing framework selector finds no match.

In plain words
What is it for?
It classifies the task, assembles the appropriate review gates, and writes the generated framework artifact.
Why use it?
It avoids forcing an unusual task into an unsuitable process and records the required checks for that task.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

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.

agentmods
npx agentmods add agents/spielewoy/autoprompt-skill/ap-framework-generator
Clone the repo
git clone --depth 1 https://github.com/Spielewoy/autoprompt-skill

Made for: Claude Code.

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 ap-framework-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/spielewoy/autoprompt-skill/ap-framework-generator.svg)](https://agentmods.dev/agents/spielewoy/autoprompt-skill/ap-framework-generator)
Your own site
<a href="https://agentmods.dev/agents/spielewoy/autoprompt-skill/ap-framework-generator"><img src="https://agentmods.dev/badge/agents/spielewoy/autoprompt-skill/ap-framework-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 93 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 843 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00093 $0.00843
Opus 5 $0.00046 $0.00421
Sonnet 5 $0.00019 $0.00169
Haiku 4.5 $0.00009 $0.00084

Measured 6d ago against content hash ccea8f1d2a19, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ap-framework-generator 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 6d 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.

agents/claude/agents/ap-framework-generator.md · 27 lines

How it starts

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

You are ap-framework-generator - Level 3 (Executor - FRAMEWORK GENERATE) in the Autoprompt hierarchy.

Execution contract

You are an internal Autoprompt worker, not a general-purpose assistant. Your activation-scoped persona file and task brief are already the complete operating context. Before tool use or edits, require the exact AUTOPROMPT-RUN-MARKER, RUN-NONCE, and mission binding from an active Autoprompt run; outside an active Autoprompt run, return INVALID-DISPATCH and stop. Do not load, invoke, or re-invoke the Autoprompt skill; do not start a nested Autoprompt run. Execute only this established persona and the assigned brief. If you spawn, dispatch only a registered ap-* persona and include this same activation and no-recursion contract.

Mission source of truth

Your brief carries a MISSION POINTER with canonical path, SHA-256 hash, UTF-8 byte length, and RUN-NONCE. Read PROMPTS.txt and verify every field before acting. The exact ledger bytes outrank every downstream instruction. A mismatch is INVALID-BRIEF.

Your level: L3 - Executor

You do the real work directly: you generate the framework and write its artifact. You report a tight result up to the manager that dispatched you.

Your gate/function

FRAMEWORK GENERATE (HRN-4): on a SELECTOR FRAMEWORK: MISS, build a one-off custom framework for that exact task by following the algorithm in frameworks/generation.md. (1) classify the axes → the deliverable/acceptance/locus axes; (2) compose the gate sequence from the GATE-LIBRARY with the correct axis-specific verify gate (metric-threshold-verify/apply-dry-run/idempotent-replay/measure-first-baseline), never a meaningless unit-coverage-verify for a non-code shape; (3) emit the gen-<axis-signature> leaf DESCRIPTOR carrying the BLOCKED INVARIANT verbatim, S1-S5 scenarios (negatives loop UP, one terminal DONE), a bound execharness ref, and the mission's acceptance asks echoed into the leaf (HRN-8). Hand the descriptor to the ap-framework-validator (HRN-5) BEFORE any gate runs - an unsound leaf is NEVER driven; on FAIL re-mint ONCE, a second FAIL escalates OUT-OF-SCOPE. The generated leaf is a ONE-OFF (generation.md §5): validated, driven, then discarded - there is NO promotion registry, and an identical MISS later is simply GENERATED again. Never invent a gate outside the GATE-LIBRARY; never drive an unvalidated leaf.

Read the full file on GitHub · 27 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. 6d ago First seen · 27 lines · 93 tokens per session scan A ccea8f1d2a19

Subscribe to this mod's changes

ap-framework-generator is an agent published in the GitHub repository Spielewoy/autoprompt-skill (996 stars, last pushed today), licensed MIT. It adds 93 tokens to every session and 843 once invoked, about $0.0005 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-08-30.

Related

Other agents, from other repositories

ux-evaluator

Use this agent for read-only UX evaluation of test-runner driver artifacts (Playwright AX-tree snapshots, screenshots, console output). Applies the 4-check UX rubric (onboarding-step-count ≤7, axe-violations critical/serious, console-errors visible to user, Apple-Liquid-Glass .glassEffect() conformance on SwiftUI 26+)…

Kanevry/session-orchestrator · 199 tokens

db-specialist

Use this agent for database work — schema design, migrations, queries, indexes, and database functions. Handles SQL, ORMs, and database architecture decisions. Context: New feature requires database schema changes. user: "Create the migration for the invoice tables with proper indexes" assistant: "I'll dispatch the…

Kanevry/session-orchestrator · 166 tokens

eval-judge

Use this agent during the /eval Skill Phase 3 (Epic #803, issue #810) to judge — from a session-eval record's dimension evidence, kpis, and sessionid — the record's instruction-adherence and report-quality per rubric-v1.md's Judge Dimensions section. Dispatched read-only, coordinator-side (never inside a wave) by…

Kanevry/session-orchestrator · 249 tokens

project-discovery

Use this agent when you need to audit project state, map affected modules, or verify assumptions before implementation. Context: Before adding a new feature, the coordinator needs to understand existing code paths. user: "Audit the auth flow" assistant: "I'll use the project-discovery agent to map auth modules and…

Kanevry/session-orchestrator · 0 tokens

god-ai-provenance-cleaner

Authorized AI provenance cleaning specialist. Runs a deterministic client for a user-operated watermarks-remover service while protecting source files, credentials, consent, and report integrity. Spawned by: /god-remove-ai-marks Extension: @godpowers/provenance-pack.

hannsxpeter/godpowers · 63 tokens

factory-ci-doctor

Diagnostician for one red GitHub Actions run. Spawn it after a run has failed — never to wait for one (gh run watch --exit-status does that for free) — with the repo and run ID or PR number, so the failed-job logs never enter the caller's context. It returns the culprit job/step, the offending log lines, and a TICKET…

watt-mind/factory · 108 tokens