Skip to content

Development

Stuart Jackson edited this page Nov 22, 2026 · 8 revisions

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.

Repo layout

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
.githooks/ pre-commit and pre-push, which run the check
.github/workflows/validate.yml CI: claude plugin validate . 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

Setup

  1. Clone the repo and its wiki.
  2. Turn on the hooks, once per clone: git config core.hooksPath .githooks.
  3. Create the banned-strings list (see below). Until it exists, every commit is blocked.

Banned-strings check

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-commit scans the staged files; pre-push scans 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_FILE points the script at a different list.

Limits, by design:

  • The check is local only. CI stays minimal and does not run it, so a clone without the hooks, or a commit made with --no-verify, is not caught. --no-verify MUST 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.

Validation

Run claude plugin validate . from the repo root. CI runs the same command on every push and PR.

  • CI 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 directory to make those fail.
  • Unknown fields warn and are ignored at load, so a warning about a field is a real mistake, not noise.

Adding a plugin

  1. Create plugins/<name>/.claude-plugin/plugin.json with the fields in Plugin-Format#plugin-entry-vs-pluginjson, including version (CalVer) and author.
  2. Add skills/ if the plugin has any, following the skill rules. Stay within what every surface loads: no top-level bin/, no reliance on hooks or local MCP.
  3. If it has a connector, add .mcp.json per the connector rules and set privacyPolicyUrl in plugin.json.
  4. 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.
  5. Add a square PNG icon at .claude-plugin/icon.png when a 512 px source exists (only a directory listing reads it).
  6. Add an entry to marketplace.json with name, source: ./plugins/<name>, and category. No version.
  7. Add the plugin to the README's Plugins table and to Home#plugins.
  8. Run claude plugin validate . and claude plugin validate plugins/<name>, then walk the plugin checklist.

Clone this wiki locally