add-drafts
Skill0 starsChanged 6 months agoMITView on GitHub
Add Drafts.app as an inbox feeder to COS
In this repository3 other files it gives its agents.
- claude.mdCLAUDE.md
- add-gmailSkill
- add-telegramSkill
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
- Very specific: line 14
Look for drafts_sync_path in config.json.
- Distinctive: line 22
Run the skill setup:
- Very specific: line 30
Add drafts_sync_path to config.json
- Distinctive: line 31
Update CLAUDE.md with ingest Step 0.5
- Distinctive: line 50
If Drafts integration is unavailable in Shortcuts, use the scripting approach:
- Distinctive: line 51
Add an Open App action to open Drafts
- Distinctive: line 52
Use Ask for Text/File actions to manually select and save drafts
- Very specific: line 59
Check that new .md files appeared in your sync path: ls ~/DraftsSync/ (or your custom path)
- Very specific: line 69
Check that new .md files appeared in the sync path.
- Very specific: line 84
Create a new Shortcut named DraftsExporter
- Distinctive: line 85
Add an action to run the JavaScript above
- Very specific: line 92
Check that the sync path is correct in config.json
- Very specific: line 93
Run ls ~/DraftsSync to verify files exist
- Very specific: line 94
Run /ingest manually to pick them up
- Distinctive: line 98
Make sure the shortcut has permission to access Drafts and file system.
≈ “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.
Files
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.shThis will:
- Prompt for your
~/DraftsSyncpath (default:~/DraftsSync) - Add
drafts_sync_pathtoconfig.json - Update
CLAUDE.mdwith 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
- Open Shortcuts.app on macOS
- Click + to create a new shortcut, or open an existing one named
DraftsExporter - 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
textfrom the draft - Get
createdDatefrom the draft - Save to files in the folder at
~/DraftsSync/or your configureddrafts_sync_path- Filename format:
YYYY-MM-DD-HHmmss.md - Content: the draft text
- Filename format:
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
- Manually run it: Shortcuts.app → Right-click
DraftsExporter→ Run - Check that new
.mdfiles 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
/ingestYou 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:
- Create a new Shortcut named
DraftsExporter - Add an action to run the JavaScript above
- 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
- Check that the sync path is correct in
config.json - Run
ls ~/DraftsSyncto verify files exist - Run
/ingestmanually 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.
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
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.

