ensemble-fold-prompt

ensemble-fold-prompt is a skill for Claude Code, Codex from FortiumPartners/ensemble. It costs 33 tokens per session (1,582 once invoked), scanned A, original, MIT.

A repository-analysis command that studies a codebase and improves its CLAUDE.md instructions. CLAUDE.md is a file that tells an AI coding assistant how a project works and how to make changes.

In plain words
What is it for?
Use it to detect the technology stack, find coding conventions, identify test and build commands, and organize instructions so more context is loaded only when needed.
Why use it?
It removes unnecessary always-loaded instructions and captures the project’s actual tools, tests, formatting rules, naming habits, and structure.

Skill for Claude CodeCodex

Written for Claude Code and Codex: user-invocable in frontmatter, but also installed under .codex/. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Part of the ensemble-codex plugin — 40 skills shipped together

Good fit Use it to detect the technology stack, find coding conventions, identify test and build commands, and organize instructions so more context is loaded only when needed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fortiumpartners/ensemble/ensemble-fold-prompt
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.

Any agent
npx skills add FortiumPartners/ensemble --skill ensemble-fold-prompt
Clone the repo
git clone --depth 1 https://github.com/FortiumPartners/ensemble

Made for: Claude Code, Codex.

Or install ensemble-codex, the plugin that ships this one along with the rest of its 40 skills.

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 ensemble-fold-prompt

README.md
[![agentmods](https://agentmods.dev/badge/skills/fortiumpartners/ensemble/ensemble-fold-prompt/github.svg)](https://agentmods.dev/skills/fortiumpartners/ensemble/ensemble-fold-prompt)
Your own site
<a href="https://agentmods.dev/skills/fortiumpartners/ensemble/ensemble-fold-prompt"><img src="https://agentmods.dev/badge/skills/fortiumpartners/ensemble/ensemble-fold-prompt/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ensemble-fold-prompt

Your own site · 80×15
<a href="https://agentmods.dev/skills/fortiumpartners/ensemble/ensemble-fold-prompt"><img src="https://agentmods.dev/badge/skills/fortiumpartners/ensemble/ensemble-fold-prompt.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,582 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00033 $0.01582
Opus 5.5 $0.00013 $0.00633
Sonnet 5.5 $0.00007 $0.00316
Haiku 4.5 $0.00003 $0.00158

Measured 3mo ago against content hash c913ba5e2718, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ensemble-fold-prompt 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 3mo 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.

packages/codex/.codex/skills/commands/ensemble-fold-prompt/SKILL.md · 142 lines

How it starts

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

Ensemble Command: /ensemble:fold-prompt

This Codex skill mirrors the Ensemble slash command /ensemble:fold-prompt. Follow the workflow below, adapt to the current repository, and keep outputs structured.

Analyze a project's codebase to extract coding conventions, optimize CLAUDE.md for minimal token cost and maximum AI productivity, and organize context with progressive disclosure. Every token in CLAUDE.md is loaded every session -- this command ensures none are wasted.

Workflow

Phase 1: Codebase Standards Discovery

1. Detect Technology Stack Identify languages, frameworks, package managers, and build tools

  • Read package.json, Gemfile, requirements.txt, go.mod, mix.exs, *.csproj, or equivalent
  • Identify primary language(s) and framework(s) (e.g., Next.js 14, Rails 7, Phoenix 1.7)
  • Detect test framework(s) and runner commands
  • Detect linter/formatter config (.eslintrc, .prettierrc, rustfmt.toml, .rubocop.yml)
  • Note monorepo structure if present (workspaces, packages/, apps/)

2. Extract Coding Conventions Mine the codebase for patterns that an AI assistant must follow

  • Sample 5-10 representative source files to detect naming conventions (camelCase vs snake_case, file naming)
  • Check for barrel exports, path aliases, import ordering conventions
  • Identify error handling patterns (Result types, try/catch style, custom error classes)
  • Detect API patterns (REST routes, GraphQL resolvers, RPC definitions)
  • Read existing CONTRIBUTING.md, .editorconfig, or style guides if present
  • Check commit history for conventional commit usage and scope patterns

3. Build Standards Index Create a compact index of discovered standards for token-efficient reference

  • Compile findings into a standards index -- one line per standard, format "standard-name: brief description"
  • Group standards by category (naming, testing, imports, error-handling, git)
  • Keep each entry under 80 characters -- the index is a lookup table, not documentation
  • If the project already has a .ensemble/standards.yml or similar, merge rather than replace

Read the full file on GitHub · 142 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. 3mo ago First seen · 142 lines · 33 tokens per session scan A c913ba5e2718

Subscribe to this mod's changes

ensemble-fold-prompt is a skill published in the GitHub repository FortiumPartners/ensemble (12 stars, last pushed 5d ago), licensed MIT. It adds 33 tokens to every session and 1,582 once invoked, about $0.0001 per session on Opus 5.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

ensemble-fold-prompt compared with skills from other repositories

ensemble-fold-prompt next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ensemble-fold-promptFortiumPartners/ensembleSkill125d agoMITA33Claude Code, Codex
overleafaloth/olcliSkill2835d agoMITA62Claude Code, Codex
devxiaotonng/pikiloomSkill2917d agoMITA48Claude Code, Codex
bmad-quick-dev-new-previewLarsCowe/bmalphSkill4072d agoMITA65Claude Code, Codex
bmad-create-storyLarsCowe/bmalphSkill4072d agoMITA42Claude Code, Codex
bmad-quick-devLarsCowe/bmalphSkill4072d agoMITA46Claude Code, Codex
bmad-helpLarsCowe/bmalphSkill4072d agoMITA47Claude Code, Codex