agentleFS
mrsandman17mrsandman17/chief-of-staff/.claude/skills/add-drafts/SKILL.md

add-drafts

Skill0 starsChanged 6 months agoMITView on GitHub

Add Drafts.app as an inbox feeder to COS

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 7 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

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

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

    Look for drafts_sync_path in config.json.

    line 14
  2. Distinctive:

    Run the skill setup:

    line 22
  3. Very specific:

    Add drafts_sync_path to config.json

    line 30
  4. Distinctive:

    Update CLAUDE.md with ingest Step 0.5

    line 31
  5. Distinctive:

    If Drafts integration is unavailable in Shortcuts, use the scripting approach:

    line 50
  6. Distinctive:

    Add an Open App action to open Drafts

    line 51
  7. Distinctive:

    Use Ask for Text/File actions to manually select and save drafts

    line 52
  8. Very specific:

    Check that new .md files appeared in your sync path: ls ~/DraftsSync/ (or your custom path)

    line 59
  9. Very specific:

    Check that new .md files appeared in the sync path.

    line 69
  10. Very specific:

    Create a new Shortcut named DraftsExporter

    line 84
  11. Distinctive:

    Add an action to run the JavaScript above

    line 85
  12. Very specific:

    Check that the sync path is correct in config.json

    line 92
  13. Very specific:

    Run ls ~/DraftsSync to verify files exist

    line 93
  14. Very specific:

    Run /ingest manually to pick them up

    line 94
  15. Distinctive:

    Make sure the shortcut has permission to access Drafts and file system.

    line 98

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill 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
SKILL.md

Add Drafts App (COS)

This skill configures Drafts.app to automatically export notes into your COS inbox during ingest.

Phase 1: Pre-flight

Check if already applied

Look for drafts_sync_path in config.json. If it exists, skip Phase 2 and go to Phase 3.

Verify Drafts is installed

Drafts.app must be installed on macOS. If not, install from the App Store first.

Phase 2: Apply

Run the skill setup:

bash .claude/skills/add-drafts/setup.sh

This will:

  1. Prompt for your ~/DraftsSync path (default: ~/DraftsSync)
  2. Add drafts_sync_path to config.json
  3. Update CLAUDE.md with ingest Step 0.5

Phase 3: Configure DraftsExporter Shortcut (macOS)

This skill expects a macOS Shortcuts automation named DraftsExporter that exports your Drafts to markdown files in the sync path.

Create the Shortcut

  1. Open Shortcuts.app on macOS
  2. Click + to create a new shortcut, or open an existing one named DraftsExporter
  3. Build the shortcut with these actions (from the Shortcuts app library):
    • Get Drafts (from the Drafts app integration) — retrieves all drafts
    • Loop over each draft
    • Get text from the draft
    • Get createdDate from the draft
    • Save to files in the folder at ~/DraftsSync/ or your configured drafts_sync_path
      • Filename format: YYYY-MM-DD-HHmmss.md
      • Content: the draft text

If Drafts integration is unavailable in Shortcuts, use the scripting approach:

  • Add an Open App action to open Drafts
  • Use Ask for Text/File actions to manually select and save drafts

Alternatively, use a third-party automation tool (e.g., Automator, Python script) that exports Drafts and saves them as .md files to your configured path.

Test the Shortcut

  1. Manually run it: Shortcuts.app → Right-click DraftsExporter → Run
  2. Check that new .md files appeared in your sync path: ls ~/DraftsSync/ (or your custom path)

Phase 4: Test

Test the shortcut manually

shortcuts run "DraftsExporter"

Check that new .md files appeared in the sync path.

Run ingest

/ingest

You should see Drafts files picked up and processed normally.

Troubleshooting

"shortcuts run" not found

You need to set up the Shortcuts automation. In the Shortcuts app on Mac:

  1. Create a new Shortcut named DraftsExporter
  2. Add an action to run the JavaScript above
  3. Save and enable automation

Alternatively, just run shortcuts run "DraftsExporter" directly if you already have a shortcut with that name.

No files appear in inbox

  1. Check that the sync path is correct in config.json
  2. Run ls ~/DraftsSync to verify files exist
  3. Run /ingest manually to pick them up

"Permission denied" when running shortcut

Make sure the shortcut has permission to access Drafts and file system. Check System Preferences → Security & Privacy.

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.