agentleFS
PsychQuantPsychQuant/che-apple-mail-mcp/CLAUDE.md

che-apple-mail-mcp

CLAUDE.md9 starsChanged 59 days agoMITView on GitHub

This project uses Spectra for Spec-Driven Development(SDD). Specs live in openspec/specs/, change proposals in openspec/changes/. discuss? → propose → apply ⇄ ingest → archive Changes can be parked(暫存)— temporarily moved out of openspec/changes/. Parked changes won't appear in spectra list but can be found with spectra list --parked. To restore: spectra unpark <name>. The /spectra:apply and /spectra:ingest skills handle parked changes automatically. Releases are published with scripts/release.sh, which bundles the previously error-prone manual sequence (swift build → git tag →…

  • Commits and pushes

The file

We split this CLAUDE.md into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create git tag vX.Y.Z, push to origin

    line 60
  2. Very specific:

    Create GitHub release and upload the signed binary + .sha256

    line 61
  3. Very specific:

    After the script finishes, bump plugin/.claude-plugin/plugin.json's version and binary_version in this repo — the installed-plugin cache is …

    line 69
  4. Distinctive:

    If you forgot to commit the CHANGELOG, the sanity check catches it.

    line 93
  5. Distinctive:

    If you have local commits not yet pushed, the sanity check catches it.

    line 94

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md
<!-- SPECTRA:START v1.0.1 -->

Spectra Instructions

This project uses Spectra for Spec-Driven Development(SDD). Specs live in openspec/specs/, change proposals in openspec/changes/.

Use /spectra:* skills when:

  • A discussion needs structure before coding → /spectra:discuss
  • User wants to plan, propose, or design a change → /spectra:propose
  • Tasks are ready to implement → /spectra:apply
  • There's an in-progress change to continue → /spectra:ingest
  • User asks about specs or how something works → /spectra:ask
  • Implementation is done → /spectra:archive

Workflow

discuss? → propose → apply ⇄ ingest → archive

  • discuss is optional — skip if requirements are clear
  • Requirements change mid-work? Plan mode → ingest → resume apply

Parked Changes

Changes can be parked(暫存)— temporarily moved out of openspec/changes/. Parked changes won't appear in spectra list but can be found with spectra list --parked. To restore: spectra unpark <name>. The /spectra:apply and /spectra:ingest skills handle parked changes automatically.

<!-- SPECTRA:END -->

Release Process

Releases are published with scripts/release.sh, which bundles the previously error-prone manual sequence (swift build → git tag → gh release create → gh release upload) into one command. Always use the script — the v2.1.1 release was broken because the manual gh release upload step was forgotten (see #13).

Publishing a new release

Prerequisites:

  1. CHANGELOG.md has a new ## [X.Y.Z] section with the release notes
  2. HEAD is on main, working tree is clean, and the commit is pushed to origin
  3. gh CLI is authenticated

Run:

./scripts/release.sh vX.Y.Z
# or, with a custom title:
./scripts/release.sh vX.Y.Z "vX.Y.Z: short description"

The script will:

  1. Sanity-check the working tree, tag absence, and CHANGELOG entry
  2. Extract release notes from CHANGELOG.md's [X.Y.Z] section
  3. Build a universal (arm64 + x86_64) binary into .build/dist/
  4. Confirm with you before any destructive / remote operation
  5. Sign + notarize the binary (Developer ID), unless SKIP_CODESIGN=1 or no DEVELOPER_ID is set
  6. Create git tag vX.Y.Z, push to origin
  7. Create GitHub release and upload the signed binary + .sha256

For a signed release, export DEVELOPER_ID + NOTARY_PROFILE and prefer make release-signed VERSION=vX.Y.Z (sets REQUIRE_CODESIGN=1 so it refuses to ship an unsigned binary). See README "Signing & Notarization" for one-time setup and why signing is what keeps Full Disk Access working across upgrades (#211).

After the script finishes, bump plugin/.claude-plugin/plugin.json's version and binary_version in this repo — the installed-plugin cache is keyed by version, so bumping only binary_version ships nothing (#335 verify). Mirror the new version into .claude-plugin/marketplace.json's plugin entry (ManifestVersionTests pins the two equal; the root manifest deliberately carries no binary_version — plugin.json is the single source for the binary pin). Then run /plugin marketplace update che-apple-mail-mcp and /plugin update che-apple-mail-mcp@che-apple-mail-mcp.

Fresh install (documented nowhere before #335 verify): claude plugin marketplace add PsychQuant/che-apple-mail-mcp, then claude plugin install che-apple-mail-mcp@che-apple-mail-mcp.

Future: automate via GitHub Actions

A .github/workflows/release.yml triggered on tag push would remove the manual step entirely, but requires a macOS runner (limited on GitHub free tier) and potentially code signing / notarization. Tracked as a follow-up to #13.

Why not tag from HEAD automatically in the script

The script intentionally tags the current HEAD. This means:

  • If you forgot to commit the CHANGELOG, the sanity check catches it.
  • If you have local commits not yet pushed, the sanity check catches it.
  • You stay in control of what exactly gets tagged — no surprises.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.