context-scaffold

A setup tool that examines an existing project and creates agent context files, such as AGENTS.md, with detected project details and blanks for information only a person can provide.

In plain words
What is it for?
Use it once to bootstrap context for a project, then edit the generated files to add or correct project-specific instructions.
Why use it?
It avoids starting project guidance from scratch and gives the coding agent a structured description of the project's tools, layout, and conventions.

Skill for Claude CodeCodex

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 skills/fending/context-engineering/context-scaffold
Any agent
npx skills add fending/context-engineering --skill context-scaffold
Clone the repo
git clone --depth 1 https://github.com/fending/context-engineering

Made for: Claude Code, Codex.

Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,017 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 $0.00039 $0.03017
Opus 5 $0.00019 $0.01509
Sonnet 5 $0.00008 $0.00603
Haiku 4.5 $0.00004 $0.00302

Measured 2d ago against content hash fd6583a7264d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

context-scaffold 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 2d 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.

plugins/context-setup/skills/context-scaffold/SKILL.md · 230 lines

How it starts

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

DEPRECATION NOTICE: You are running context-setup from fending/context-engineering, which is no longer maintained. The active version is at ordovera/ordovera-plugins. To migrate, run:

  1. /plugin marketplace add ordovera/ordovera-plugins
  2. /plugin install context-setup@ordovera-plugins

Then remove the old marketplace: /plugin marketplace remove context-engineering

Print this notice to the user before proceeding with the skill.

Context Scaffold

Analyze your project and generate the right context files pre-populated with what can be auto-detected. Sections that require human input get bracket placeholders.

What This Skill Does

  1. Discover project state:

    • Read package.json / requirements.txt / go.mod / Cargo.toml / pyproject.toml for tech stack and available scripts/commands
    • Scan directory structure (top two levels) for project layout
    • Detect framework indicators: next.config.*, vite.config.*, tsconfig.json, angular.json, webpack.config.*, tailwind.config.*, prisma/, .env*
    • Check for existing context files: AGENTS.md, CLAUDE.md, .cursorrules, context/ directory
    • Check for .claude/ directory (existing skills, hooks, settings)
    • Identify testing setup: test runner config, test directories, test scripts
    • Detect multiple backing services: count distinct service client packages (e.g., supabase + jira, prisma + stripe, aws-sdk + firebase). If 2+ detected, flag for Integration Map section.
    • Detect MCP server configs: check .mcp.json, .vscode/mcp.json, .cursor/mcp.json, .codex/config.toml, .gemini/settings.json at the project level. Match detected servers against known templates (Atlassian, Gmail, Google Calendar, Web, GitHub, Supabase, Vercel). If any are found, include an MCP Tool Notes section in the generated output.
  2. Determine complexity level. Present a recommendation with rationale, let the user choose:

    • Minimal (~40 lines): Solo project, single language, straightforward structure. One deployment target, no auth layer, no multi-service architecture.
    • Full single file (~100-120 lines): Multi-layer app (frontend + backend), auth system, database, API with conventions worth documenting. Multiple backing services (database + external APIs). Still a single deployable unit.
    • Cascading + context directory: Multiple projects or workspaces, team environment, complex architecture with distinct subsystems. Or a single project large enough that a single file would exceed ~150 lines.

Read the full file on GitHub · 230 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. 2d ago First seen · 230 lines · 39 tokens per session scan A fd6583a7264d

Subscribe to this mod's changes

context-scaffold is a skill published in the GitHub repository fending/context-engineering (11 stars, last pushed 5mo ago), licensed MIT. It adds 39 tokens to every session and 3,017 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-08-30.

Related

Other skills, from other repositories

packmind-create-skill

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends GitLab Duo's capabilities with specialized knowledge, workflows, or tool integrations.

PackmindHub/packmind · 49 tokens

authoring-adept-agents

Write a good, portable adept agent (subagent): trigger-shaped description, one job per agent, generator/evaluator separation, explicit boundaries, restricted tools. Apply when creating or editing an agent file or running adept agent add.

itaywol/adeptability · 47 tokens

project-doc-bootstrap

Bootstrap a reusable repository documentation hierarchy for AI agents. Use when starting a new project, initializing repo docs, setting up CLAUDE.md and AGENTS.md, defining L1/L2/L3 documentation layers, creating AGENTS.md symlinks, or designing a fractal documentation system that helps AI quickly understand and…

longranger2/project-doc-bootstrap · 73 tokens

ccc

This skill should be used when code search is needed (whether explicitly requested or as part of completing a task), when indexing the codebase after changes, or when the user asks about ccc, cocoindex-code, or the codebase index. Trigger phrases include 'search the codebase', 'find code related to', 'update the…

cocoindex-io/cocoindex-code · 80 tokens

ai-discover

Parallel discovery of performance hotspots (perf track) and failure surfaces (bug track) for the auto-improvement loop. Fans out one subagent per hot-path area or failure surface; each returns ONE concrete, behavior-preserving fix candidate (perf) or a reproducing test plus fix (bug). Discovery only — no code changes…

kirodotdev/KiroCrew · 75 tokens

creating-claude-agents

Use when creating or improving Claude Code agents. Expert guidance on agent file structure, frontmatter, persona definition, tool access, model selection, and validation against schema.

AgentWorkforce/relay · 40 tokens