bama: Instructions file for Codex

AGENTS.md

bama AGENTS.md is an instructions file for Codex, OpenCode from daveebbelaar/bama. It costs 645 tokens per session, scanned A, original, MIT.

Repository instructions for maintaining the bama collection of macOS app-building skills. They describe its folder layout, skill-writing rules, templates, and release files.

In plain words
What is it for?
Use them when editing bama, adding a skill, updating its plugin listing, writing reference files, or preparing a release.
Why use it?
They give a coding agent the local rules needed to add or change skills without making the repository inconsistent.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions CLAUDE.md; mentions Claude Code.

This is daveebbelaar/bama's own configuration. It tells Codex and OpenCode how to work on bama itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything bama configures →

About the project

BAMA is a set of agent skills for researching, copying, designing, building, optimizing, and testing native macOS applications with Swift and SwiftUI. It helps developers turn an existing app or an idea into a Mac app while using local data and avoiding the Xcode graphical interface. The catalogue entries are BAMA’s skills, instruction, and plugin for guiding that workflow.

daveebbelaar/bama · 2,007 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to daveebbelaar/bama. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/daveebbelaar/bama/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/daveebbelaar/bama

Made for: Codex, OpenCode.

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 bama AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/daveebbelaar/bama/agents-md/github.svg)](https://agentmods.dev/instructions/daveebbelaar/bama/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/daveebbelaar/bama/agents-md"><img src="https://agentmods.dev/badge/instructions/daveebbelaar/bama/agents-md/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 bama AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/daveebbelaar/bama/agents-md"><img src="https://agentmods.dev/badge/instructions/daveebbelaar/bama/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 645 This file is loaded in full into every session.
When invoked 645 The same file — it is already loaded in full.
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.00645 $0.00645
Opus 5.5 $0.00258 $0.00258
Sonnet 5.5 $0.00129 $0.00129
Haiku 4.5 $0.00064 $0.00064

Measured 15d ago against content hash 19de90ece034, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bama AGENTS.md 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 15d 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.md · 58 lines

How it starts

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

BAMA

Agent skills for building native macOS apps. Installed as a Claude Code and Codex plugin from .claude-plugin/, or through npx skills add. AGENTS.md at the root is a copy of this file (.claude/CLAUDE.md); keep them identical.

Layout

  • skills/<stage>/<name>/SKILL.md, stages in pipeline order: start, plan, code, design, ship.
  • References sit next to SKILL.md (recipes.md, patterns.md) and are linked relatively. Scripts go in scripts/, templates in template/.
  • agents/openai.yaml in every skill: Codex display name and short description. A user-invoked skill also sets policy.allow_implicit_invocation: false.
  • .claude-plugin/plugin.json lists every shipped skill in skills.
  • specs/<app>.md: build plans for small apps, taken from Onyx. Each has Brief, How it works, Stories, Gotchas, and a "Done when" line, in that order. specs/README.md lists them.

Writing skills

Follow Matt Pocock's writing-for-agents rules:

  • The description is a context pointer: one short sentence on what it is, then "Use when" and one trigger per branch. Front-load the leading word.
  • Inline what every branch needs. Push what only some branches need into a sibling file behind a link.
  • Every step ends on a checkable condition. Every skill ends with a "Done when" line.
  • Prompt the positive. Use a prohibition only as a hard guardrail, next to the positive target.
  • Cache only what the environment cannot tell the agent: conventions, reasons, gotchas from real apps.
  • One skill calls another with "Call the Skill tool with <name>".
  • No em dashes. Plain words, short sentences, active voice.

Adding a skill

  1. Create skills/<stage>/<name>/SKILL.md and agents/openai.yaml.
  2. Add it to plugin.json skills, the README table, and the router (skills/start/bama/SKILL.md).
  3. Run claude plugin validate . --strict.

Releasing

  1. Bump version in plugin.json. Installed copies update only when this string changes. Keep version out of marketplace.json.
  2. Run claude plugin validate . --strict.
  3. Merge to main. Use a merge commit for a branch with contributor commits, so their pull requests show as merged.
  4. On main, run claude plugin tag . --push. It creates bama--v<version>.
  5. Run gh release create bama--v<version> --generate-notes.

Read the full file on GitHub · 58 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. 15d ago First seen · 58 lines · 645 tokens per session scan A 19de90ece034

Subscribe to this mod's changes

bama AGENTS.md is an instructions file published in the GitHub repository daveebbelaar/bama (2,007 stars, last pushed 25d ago), licensed MIT. It adds 645 tokens to every session, about $0.0026 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-11-15.

Related

bama AGENTS.md compared with instructions from other repositories

bama AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bama AGENTS.mddaveebbelaar/bamaInstructions file2.0k25d agoMITA645Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file289k2d agoMITA4,393Codex, OpenCode