/johnnydecimal-skills:jdexfrom johnnydecimal-skills
Reads and writes to the user's Johnny.Decimal index (JDex) for filing, finding, and organizing files by ID. Activates on JD references, file management requests, and personal knowledge queries.
Ships in johnnydecimal-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
johnnydecimal skill for JD system context.Johnny.Decimal knowledge comes from the jd MCP server, not from memory. The vault is the user's own overlay on it.
Call get_account first. It says which systems the account owns and whether it has Pro, so you know which tools will answer. The tool descriptions say what each tool does. Do not keep a second copy of them here.
Which source answers:
If the server is not connected, say so once, then continue vault-only. Say what is lost: without it you are answering Johnny.Decimal questions from memory, and that is where wrong answers come from. Connect with:
claude mcp add --transport http jd https://johnnydecimal.com/mcp
The JD CLI knows the paths of its files. Get each path from the CLI. Do not calculate a path yourself if the CLI can give it to you.
~/.local/share/johnnydecimal/cli/bin/jd. Nothing has to be sourced first.~/.local/share/johnnydecimal/cli/bin/jd paths config prints the path of the configuration file.~/.local/share/johnnydecimal/cli/bin/jd paths prints three paths: the configuration file, the journal, and the folder that contains the CLI.Before version 4.0, the CLI kept all its files in ~/.jd. The program was ~/.jd/cli/bin/jd. The configuration file was ~/.jd/config.json. A CLI that is still in ~/.jd continues to operate.
~/.jd/cli/bin/jd help. If that command runs, use ~/.jd/cli/bin/jd in each command that this skill gives.~/.jd, tell the user one time. Tell them that you can update the CLI and move it. get_cli_install_instructions on the server has the steps. Ask before you do the steps. Do not move the files yourself.paths gives an error, the CLI is older than 4.0. Then the configuration file is $JD_CONFIG if the user set it. If the user did not set it, the configuration file is ~/.jd/config.json. Tell the user one time that the CLI is old, and that get_cli_install_instructions has the steps to update it.~/.jd, the CLI is 4.0 or later, but that file is still in ~/.jd. Tell the user one time. jd agent-setup prints a prompt that tells you how to move the file. Ask before you follow the prompt.If there is no CLI at either path, use the first item in this list that applies:
$JD_CONFIG, if it is set. $JD_CONFIG is the path of the configuration file.$XDG_CONFIG_HOME/johnnydecimal/config.json, if $XDG_CONFIG_HOME is set.~/.config/johnnydecimal/config.json.~/.jd/config.json, if there is no file at the path from item 2 or item 3.There are two parallel structures. Both use the same JD hierarchy. Their paths come from the configuration file, the canonical Johnny.Decimal client config. Find the configuration file as the section above tells you. Read it one time, at the start.
The file has "version": 2. If it has "version": 1, or no version, run ~/.local/share/johnnydecimal/cli/bin/jd with no words, and read the file again: the CLI changes it to version 2. If it is still version 1, the CLI is older than 5.0. Tell the user one time that get_cli_install_instructions has the steps to update it, and read jdex as the folder's path until then.
Each entry in its systems list has:
jdex — the index, an object. jdex.app is the app that contains it: obsidian, bear, or none for a folder of notes. jdex.path is its folder. A JDex in Bear has no folder. This is where you look things up and write documentation.root — the filesystem. The actual files (PDFs, images, documents) in JD-structured folders.With several systems in the config, use the entry marked default: true unless the user names another.
If the config is missing, or the system you want has no jdex, the JD CLI writes it. Run ~/.local/share/johnnydecimal/cli/bin/jd agent-setup: it prints a prompt in the user's voice that finds their systems, confirms each root, and writes the configuration file. Follow it. If the CLI is not installed, call get_cli_install_instructions on the server first. This skill keeps no copy of those steps and never writes the file from memory. Ask before writing.
Two files share the name config.json and answer different questions. Tell them apart by their keys:
systems list. It says which systems exist and where they are. One per machine..jd/config.json in a working folder has an id. It says which ID that folder is about. It never carries a systems list.Neither overrides the other. If a folder one ever carries root or jdex, those win for that folder only.
In the examples below, $JD_JDEX and $JD_ROOT stand for jdex.path and root. Substitute the real values — shell variables don't persist between your Bash calls.
The JD numbering makes paths deterministic. The digits of the ID give you the folders:
13.42 → 10-19*/13*/13.42*63.14 → 60-69*/63*/63.14*W0189 → W0000-9999*/W0189*Work packages are an optional extra area, W0000-9999, holding IDs of the form W0189. They sit directly in that area with no category level. The name usually carries a ~ and a normal ID — W0189~21.41 — meaning that package belongs to 21.41. Glob on the number alone, W0189*, because the rest of the name varies. An entry may be a single .md or a folder of them.
The filesystem always nests like this. The JDex does not, so establish its layout once, with a single ls of $JD_JDEX:
10-19 Life admin. A note is at $JD_JDEX/10-19*/13*/13.42*. The JDHQ Obsidian downloads default to this.13.42 Some title.md. A note is at $JD_JDEX/13.42*. A notes app with no folders gives you this, and it is offered as a download too..md. Read it and work inside it.jdex.app is bear, and there is no folder to ls. Read it as Bear says.Both of the first two are normal. Do not treat a flat JDex as a broken nested one.
So you can go straight there with a single glob:
$JD_JDEX/13.42* when flat, $JD_JDEX/10-19*/13*/13.42* when nested (the .md file)$JD_ROOT/10-19*/13*/13.42* (the actual files)$JD_ROOT/10-19*/13*/13.42*/+Savings/The numbers give you the path. Don't search for it.
Your active ID is determined once per session, in this priority order:
12.34 My folder, or W0189~21.41 Some package. This is the normal case. People open Claude directly in an ID folder, so check this first. Match NN.NN or WNNNN only. A category (13 Money) and an area (10-19 Life admin) are not IDs..jd/config.json naming the ID this folder is about: {"id": "12.34"}, plus "sys": "D25" when the user runs more than one system. Walk up from the working directory to the first one you find, stopping at the home folder. The nearest wins. Do not use ~/.jd/config.json for this. That file is the configuration file of an older CLI, and it has no id.12.34 Receipts/2026-03.Once an active ID is set, stick with it. All reads, writes, and documentation go to that ID's JDex entry.
Do NOT browse, scan, or explore the JDex looking for other entries. The JDex is not a task list to trawl through. You work on the active ID.
Only switch to a different ID if the user explicitly gives you a new one — e.g. "now look at 56.78" or "update W0189". Mentions of other IDs in note content, related links, or conversation context are NOT instructions to switch.
If you're unsure whether the user wants a different ID, ask. Do not assume.
If no folder in scope names an ID, there is no .jd/config.json, and the user hasn't provided one, STOP. Ask the user: "Which JDex ID should I use?" Do not search the JDex for a match, do not infer from the project name, and do not continue until the user gives you one.
Once the active ID is set, call get_id for it, once. Then read their own JDex note for the same ID.
get_id returns the published definition of that ID, plus any supplements that apply to it: further readings, and ops manuals.get_id only when they accept. Do not paste it into their note.AC.05 is the one ID you control. It holds two things: your own notes, kept so a later session can read them back, and the user's standing instructions for this part of their system. Nothing in the published Johnny.Decimal systems uses .05 for anything else.
Read them at the start of a session, narrowest first:
<category>.05. ID 13.33 gives 13.05.<area management category>.05. Area 10-19 gives 10.05.00.05, for the whole system.Glob them like any other ID, following the JDex layout above: $JD_JDEX/13.05* when flat, $JD_JDEX/10-19*/13*/13.05* when nested. For a work package, use the ID it belongs to: W0189~21.41 gives 21.05, then 20.05, then 00.05.
00.05, not in 13.05.AC.05 is not a place to put anything you would not show them.If the note you need isn't there, create it.
Name it AC.05 AI for <location> ✨. Copy <location> from the AC.01 note in the same place. AC.01 is the inbox, and it always exists.
| Read this | Write this |
|---|---|
13.01 Inbox for category 13 | 13.05 AI for category 13 ✨ |
10.01 Inbox for area 10-19 | 10.05 AI for area 10-19 ✨ |
00.01 Inbox for the Small Business System | 00.05 AI for the Small Business System ✨ |
Related metadata field when they're relevant to the task. Reading a linked entry for context is fine — but the active ID does not change. All writes go to the active ID's entry unless the user explicitly gives you a different ID.
[[12.34 Title]] wiki-link syntax.If you wrote the file, or rewrote it in full, claim the whole file. Add an Owner: entry to the metadata block above the line. Use no inline tags.
- Owner:
- #claude
If the file is the user's and you are changing part of it, tag only what you changed.
Either way, a wikilink you add above the line needs no tag. Above the line is the metadata block before the --- separator, where Related: and URL: live. Links there are navigation, not content.
The JD CLI makes new IDs and work packages. Never write a new ID's note or folder by hand. The CLI picks the next free number, fills the note from the user's template, and makes the folder. Each of those is easy to get wrong by hand.
The program is ~/.local/share/johnnydecimal/cli/bin/jd. Nothing has to be sourced first. Check it with ~/.local/share/johnnydecimal/cli/bin/jd help. If the program is not there, it can be in ~/.jd/cli. Refer to the section Where the configuration file and the CLI are, above.
~/.local/share/johnnydecimal/cli/bin/jd new id 21 A title. This makes the next free ID in category 21. Give 21.34 instead of 21 for that exact ID. The user names the category. A new ID needs no active ID first.~/.local/share/johnnydecimal/cli/bin/jd new wp 21.41 A title. This makes the next free W number, and the package belongs to 21.41.--.--dry-run says what it would make, and makes nothing. Use it when you are not sure.--json prints one object to branch on: { "ok": true, ... } or { "ok": false, "code": "...", ... }. Its toFill list names the template tokens you gave no value. Each token has a flag: {{?SCOPE}} is --scope. Ask the user for the values, or pass them when you know them.--system goes first: ~/.local/share/johnnydecimal/cli/bin/jd --system P76 new id 21 A title.get_cli_install_instructions on the server has the update steps. Ask before you run them.The ID it made is your active ID from then on. Read its note before you write to it. The template shapes it, and the user's conventions are in there.
If the CLI is not installed, call get_cli_install_instructions on the server and follow its steps. If the server is not connected either, stop and say so. Do not make the ID by hand.
The one exception is the AC.05 note, above. It has a fixed number, and its folder is not yours to make, so you write that note yourself.
Moving in puts the user's existing files into the system they have installed. The server's move_in tool holds the process. This skill holds the rules for the CLI and the note, and nothing more. When the user wants their existing files in their system, call move_in with the system, las or sbs. Follow the text it returns.
~/.local/share/johnnydecimal/cli/bin/jd move. Use that full path. Never run mv. Never delete a file or a folder. The CLI moves files, not you. The same rule holds for new IDs, under Creating things above.00.05 note, under one heading, ## yyyy-mm-dd Moving in. move_in names the sub-headings under it. Read that section first in every session. The section is yours. Mark it the way Writing things, above, says.move_in asks once and records the answer in that note. Keep to the recorded answer. Do not ask again.Filing puts a file into an ID, under a name that sorts. It happens during Moving in, and at any other time the user asks. Which ID the file goes in is decided under Which ID to use, above. This section is about the target: the name, the subfolder, and the note line.
The published rules for names and subfolders live on the server. Call get_documentation for naming-files and for subfolder-patterns, and follow what they say. Do not keep a copy here.
move_in says when to propose and that the user says yes per batch. This section says what a good name and a good subfolder are. Neither repeats the other.
The move is one jd move call, the same as Moving in says. Never run mv, not even to rename. jd move renames the file as it moves, and puts it in a subfolder of the ID, which it makes when needed. Run ~/.local/share/johnnydecimal/cli/bin/jd move --help for the syntax. Do not work from memory. If the help lists neither, the CLI is old. Tell the user. get_cli_install_instructions on the server has the update steps. Ask before you run them.
Propose a better name for every file you file.
yyyy-mm-dd, when you can find one. Look in the file name, then the file metadata, then the content. Read the content only if the user allowed it. Moving in, above, records that answer.yyyy-mm or yyyy when that is all you know. A file with no findable date gets no date. Never invent one.2024-03-31 Statement ANZ.pdf. Sentence case. Spaces between the words.(1), copy, or FINAL. Drop a version tag when there is only one version. Drop a camera or scanner prefix such as IMG_ or Scan.13.31 Purchase receipts, a file does not need "receipt" in its name.A subfolder needs two things. Without both, the files go loose in the ID.
subfolder-patterns page: date, alphabet, or 10–90.About five files is a guide for "several". You make the call. The user says yes before you make a subfolder.
For every subfolder you make, add one line to the ID's JDex note, below the ---. The line gives the subfolder's name and what it holds.
- Subfolder `Statements ANZ`: monthly statements, one file per month.
Mark it the way Writing things, above, says.
The JDex is the starting point for every question about the user's own information. Whether they ask to find a file, trace a payment, understand a process, or answer any factual question about how things work — start with the index. Do not trawl the filesystem looking for a destination, and do not delegate to subagents: the skill context doesn't transfer. The index has the answer or links to it.
The numbering exists so you don't need the whole index. Walk down it.
ls the jdex root. That tells you the layout. For a JDex in Bear, list the tags instead, as Bear says, and walk down them the same way. A few lines when nested, one line per ID when flat. If it is a single file, read that file and stop here..md files in the likely category. If you can't tell which area yet, list the categories across all of them. Still small.
Flat — the root already gave you every entry. Filter it by category, e.g. ls "$JD_JDEX"/13.*.Entries are named AC.ID Title.md, or W0189~21.41 Title.md for a work package. AC.00 to AC.09 are system management, not filing destinations — ignore them. Do not read the note bodies at any step.
If the question points at no category at all, list every .md below the root in one pass:
find "$JD_JDEX" -name '*.md' -not -path '*/.obsidian/*'
That is the expensive option — on a large vault it runs to thousands of lines. Narrow first when you can.
Present the result as a JD path, e.g. 13 Money > 13.42+ Savings.
If nothing matches on titles, fall back to a content search: obsidian search query="..." format=json.
Only when the user wants the actual files, not just the JDex note. Go straight there with the glob:
ls $JD_ROOT/10-19*/13*/13.42* # the ID folder
ls $JD_ROOT/10-19*/13*/13.42*/+Savings/ # a child entry
Not needed when they're just asking "where would I find X?".
When jdex.app is bear, the JDex is in Bear's tags.
#10-19 Life admin#. A category is a tag nested below it, #10-19 Life admin/11 Me#. Match each tag by the number at its start.11.53 Correspondence. A work package is a note with the #W0000-9999 …# tag.sys, such as #P76 Personal#, that system's tags are below it.Use the Bear MCP tools if you have them. Otherwise run /Applications/Bear.app/Contents/MacOS/bearcli. bearcli help lists its commands. The useful ones here:
bearcli tags list — the areas and the categories.bearcli list --tag "10-19 Life admin/11 Me" --fields id,title --format json — the entries in one category.bearcli search "..." — searches content as well as titles.bearcli cat <id> — one note.jd new id and jd new wp write their note to Bear.
jdex.app is obsidian, there is a .obsidian folder at the root.obsidian command with command -v obsidian. It queries the vault directly.obsidian help lists every command. The useful ones here:
obsidian search query="..." format=json — searches content as well as filenames.obsidian backlinks file="12.34 Some title.md" — what links here.obsidian links file="12.34 Some title.md" — what this links to.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub johnnydecimal/skills --plugin johnnydecimal-skills2 skills in this plugin
Other plugins' skills for the same job