Repository navigation
Development
How the repo is laid out, how to set up a clone, how the banned-strings check keeps private text out of a public repo, and how to add a plugin.
| Path | What it is |
|---|---|
.claude-plugin/marketplace.json |
The marketplace file; see Plugin-Format#marketplace-file |
plugins/<name>/ |
One folder per plugin, with .claude-plugin/plugin.json, skills/, and a README |
scripts/check-banned-strings.sh |
The banned-strings check; holds no strings |
scripts/validate.ts (+ .test.ts) |
Our own validator for the rules claude plugin validate misses; see Development#quality
|
scripts/rules.ts (+ .dfy, .dfy.gen), models/, lemmascript.json, LemmaScript-files.txt
|
The proved rules, the Dafny model, the links, and LemmaScript's config; see Proofs |
package.json, lefthook.yml, eslint.config.mjs, prettier.config.mjs, tsconfig.json, types/
|
The quality toolchain and git hooks, the same setup as augur-skills |
.github/workflows/validate.yml |
CI: pnpm quality and claude plugin validate . --strict on every push and PR |
.claude/ |
Claude Code setup for people working on this repo (rules, CLAUDE.md). Public, so it MUST hold nothing private |
README.md, LICENSE
|
The user guide and the MIT license. Both count for every plugin in Anthropic's [[directory checks |
- Clone the repo and its wiki. Install Node 24 and pnpm.
- Run
pnpm installin the repo, once per clone. It installs the tools and the lefthook git hooks (lefthook.yml). - Create the banned-strings list (see below). Until it exists, every commit is blocked.
| Hook | Runs |
|---|---|
pre-commit |
The banned-strings check on staged files |
pre-push |
The banned-strings check on every commit being pushed, then pnpm quality
|
The repo and wiki are public. Client names, site ids, project ids, credentials, and internal hostnames MUST NOT be committed. The banned-strings check blocks a commit or push that contains any string on a list.
Why the list is outside the repo. A list committed to a public repo would publish the very strings it guards. The list lives in the project folder at .simpleapps/banned-strings.txt (next to repo/ and wiki/), which is never committed. The script that reads it is public and holds no strings.
How it works:
-
pre-commitscans the staged files;pre-pushscans every commit being pushed, so a string added and then removed in a later commit is still caught. - Matches are case-insensitive fixed strings. Blank lines and lines starting with
#are ignored. - It fails closed: a missing list, an empty list, or a git error blocks the commit or push.
-
BANNED_STRINGS_FILEpoints the script at a different list.
Limits, by design:
- The check is local only: CI cannot run it, because the list is never committed. A clone without the hooks, or a commit made with
--no-verify, is not caught.--no-verifyMUST NOT be used here. - Each committer MUST have their own copy of the list before their first commit.
- The wiki is not checked. The hooks live in the code repo, and wiki pushes go straight to GitHub. Wiki pages MUST be written with the same care.
- Once a string is pushed it is public, and removing it means rewriting history. The check exists to stop the first push.
The augur-build code skill runs these three scripts for /code quality and before /repo submit and /repo publish: pnpm quality, pnpm proofs (Proofs) and pnpm plugin:validate (claude plugin validate . --strict, Development#validation).
pnpm quality runs, in order, stopping at the first failure: Prettier (format:check), ESLint (lint, with @simpleapps-com/augur-config), tsc (typecheck), Knip (knip, unused files and dependencies), the script tests at 100% line, branch, and function coverage (test), and scripts/validate.ts (validate). The pre-push hook and CI both run it. Markdown is not formatted: it is hand-written.
scripts/validate.ts checks what claude plugin validate does not:
-
marketplace.jsonsets noversion; every entry'ssourceis an existing./plugins/<name>; every plugin folder is listed -
plugin.json:namematches the folder,versionis CalVer, noprivacyPolicyUrl; no top-levelbin/ -
SKILL.md: only the six keys claude.ai accepts, name rules, description at most 1,024 characters, the 5K-token budget (Skill-Authoring) -
.mcp.json:httponaugur-mcp.com, keyed by itstitle, with adescription, noheaders,headersHelper, oroauth(Plugin-Format#connectors) -
hooks/hooks.jsonand.claude/CLAUDE.md(under 200 lines) - shared blocks in
SKILL.mdfiles (<!-- shared:<name> -->…<!-- /shared:<name> -->) are closed, and every copy of a name is identical: the git safeguard therepoandwikiskills both carry cannot drift
A new rule in the wiki SHOULD get a check here, with a test.
@simpleapps-com/augur-* packages MUST be on their latest release (CalVer, pnpm add -D @simpleapps-com/augur-config@latest), never pinned to match another repo. pnpm exec augur-doctor . checks it under Package Versions; most of its other checks are for Next.js sites and do not apply here.
Mods have their own tests and type check, run by hand (Mods#develop-and-test).
CI also runs claude plugin validate . --strict, so any warning fails the build. Run the same locally before pushing.
-
claude plugin validate plugins/<name>validates one plugin and prints Anthropic's directory checks. Add--profile directoryto make those fail. - Unknown fields warn and are ignored at load, so a warning about a field is a real mistake, not noise.
- Create
plugins/<name>/.claude-plugin/plugin.jsonwith the fields in Plugin-Format#plugin-entry-vs-pluginjson, includingversion(CalVer) andauthor. - Add
skills/if the plugin has any, following Skill-Authoring. Stay within what every surface loads: no top-levelbin/, no reliance on hooks or local MCP. - If it has a connector, add
.mcp.jsonper the connector rules and give the README a Privacy section with the policy link. MUST NOT setprivacyPolicyUrl: claude.ai's sync rejects it. - Write the plugin's README: what it does, who it is for, the one-step install line (
/plugin install <name> --marketplace simpleapps-com/augur-plugins), how to sign in, and the connector URL for a Team or Enterprise Owner to add. - Add a square PNG icon at
.claude-plugin/icon.pngwhen a 512 px source exists (only a directory listing reads it). - Add an entry to
marketplace.jsonwithname,source: ./plugins/<name>, andcategory. Noversion. - Add the plugin to the README's Plugins table and to Home#plugins.
- Run
pnpm quality,claude plugin validate . --strict, andclaude plugin validate plugins/<name>, then walk the plugin checklist.