[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6RSKF5Y6CJ0K65YN4MCCRXR":3,"skill-same:01M6RSKF5Y6CJ0K65YN4MCCRXR":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M6RSKF5Y6CJ0K65YN4MCCRXR","brain-init",null,"Set up the Claude Brain Logseq graph (first-time) or add a new project page. Triggers: \"init brain\", \"setup brain\", \"init brain project \u003Cname>\", \"add project to brain\". Don't fire for loads, saves, or status checks — those are handled by brain-load, brain-save, and brain-status.","jame581\u002FLogseqBrain","jame581","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F21112138?v=4","01M6KR3KEQ9Z30WVJRR2E2ZVXE","Jan Mesarč","01M6RSJ48YM6825KAZE1EK2DD7",18,"MIT","https:\u002F\u002Fgithub.com\u002Fjame581\u002FLogseqBrain\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fbrain-init\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"brain init","brain","init","project","for","load","logseq","loads","add","name","triggers","time","up","page","new project","first","SET","graph","setup","status","2026-11-10 10:12:30",false,"---\nname: brain-init\ndescription: >\n  Set up the Claude Brain Logseq graph (first-time) or add a new project page.\n  Triggers: \"init brain\", \"setup brain\", \"init brain project \u003Cname>\", \"add\n  project to brain\". Don't fire for loads, saves, or status checks — those are\n  handled by brain-load, brain-save, and brain-status.\n---\n\n# Brain Init\n\nInitialize the Claude Brain Logseq graph or add a new project page to an existing graph.\n\n## Prerequisites\n\nResolve the graph path per `skills\u002F_shared\u002Fpath-resolution.md`. If the resolved folder is empty or missing core files, this skill performs first-time setup (below). Otherwise it adds a new project to the existing graph. The helper (below) is required from step 4 on.\n\n## Running the helper\n\n- Bash: `sh \"\u003Cthis skill's base directory>\u002F..\u002F_shared\u002Fbin\u002Fbrain\" \u003Ccommand> …`\n- PowerShell-only Windows: `& \"$(Split-Path (Split-Path (Get-Command git).Source))\\bin\\bash.exe\" \"\u003Cbase>\u002F..\u002F_shared\u002Fbin\u002Fbrain\" \u003Ccommand> …`\n- Neither works: stop and say *\"logseq-brain needs Git for Windows (Git Bash) — https:\u002F\u002Fgit-scm.com\u002Fdownload\u002Fwin\"*.\n- In Cowork, always pass `--graph \u003Cconnected folder>`. Elsewhere pass `--graph` only when the graph is not configured. It may go anywhere on the line. On exit 2 with `graph not resolved`, follow `skills\u002F_shared\u002Fpath-resolution.md`, then pass `--graph`.\n- Put text arguments in single quotes; a `'` inside becomes `'\\''`. In double quotes the shell runs backticks and expands `$`.\n- Exit 0 clean, 1 findings (act on them), 2 error (act on its reason; don't retry blindly). Quote every `coverage:` line. Never recompute a figure it printed. Its `graph:` line is the folder for your own Read, Edit and Write calls.\n\n## First-Time Graph Setup\n\nIf the graph folder is empty or missing core files, initialize it:\n\n1. Create `logseq\u002Fconfig.edn` with minimal Logseq config:\n\n```clojure\n{:meta\u002Fversion 1\n :preferred-format \"Markdown\"\n :journal\u002Fpage-title-format \"yyyy-MM-dd\"\n :journal\u002Ffile-name-format \"yyyy_MM_dd\"}\n```\n\n2. Create `pages\u002FIndex.md` — the master index page:\n\n```markdown\ntype:: index\ndescription:: Master index of Claude's brain — all projects and key pages\n\n- ## Projects\n  - _No projects yet. Use \"init brain project [name]\" to add one._\n- ## Quick Links\n  - [[Meta]] — preferences, working style, conventions\n  - [[Decisions]] — cross-project decision log\n```\n\n3. Create `pages\u002FMeta.md` — for storing user preferences and conventions:\n\n```markdown\ntype:: meta\nlast-updated:: {{today}}\n\n- ## User Preferences\n  - _Add preferences as they emerge from working sessions._\n- ## Conventions\n  - _Add naming conventions, coding style preferences, etc._\n- ## Tools & Stack\n  - _Add commonly used tools, languages, frameworks._\n```\n\n4. Create `pages\u002FDecisions.md` — cross-project decision log:\n\n```markdown\ntype:: decisions\nlast-updated:: {{today}}\n\n- ## Decision Log\n  - _Decisions that span multiple projects or are general in nature._\n```\n\n5. Create the `journals\u002F` directory with a `.gitkeep` file to ensure it persists in version control. Use `mkdir -p` via Bash or create `journals\u002F.gitkeep` with the Write tool. This directory must exist before brain-save can write journal entries — do not skip this step.\n\nReplace `{{today}}` with the current date in `yyyy-MM-dd` format.\n\nConfirm to the user that the graph is ready and they can open it in Logseq.\n\nAfter confirmation, run `brain activity \"initialized graph at \u003CgraphPath>\"`.\n\n## Adding a New Project\n\nWhen the user wants to add a project (e.g., \"add MyProject to brain\", \"init brain project GameDev\"):\n\n1. Determine the project name from the user's request.\n\n2. Ask the user for a brief description and any initial context for the project (tech stack, repo location, key info) — gather this **before** writing the page. The template (`references\u002Ftemplates.md`) uses the same description in three places: `focus::`, the Digest Identity bullet, and `## Overview`. If the description exceeds **120 bytes**, use a short form for `focus::` (the digest property cap — see `skills\u002F_shared\u002Fdigest.md`) and keep the full text in `## Overview` and the Digest Identity bullet.\n\n3. Create the project page at `pages\u002FProjects___\u003CProjectName>.md` using the template from `references\u002Ftemplates.md`, substituting the gathered description into `focus::`, the Digest Identity bullet, and `## Overview`. The triple underscore `___` is how Logseq represents the `\u002F` namespace separator in filenames — so this page will appear as `Projects\u002FProjectName` in the Logseq sidebar.\n\n4. **`brain digest Projects\u002F\u003CProjectName> --apply`** — replaces the template's `- Map: pending` line with the measured Map. Its report must say `map: ok`.\n\n5. **Confirm no template placeholder survives.** Step 4's report saying `map: ok` is the explicit gate for the Map placeholder — do not proceed to this step if it didn't, since a failed or skipped step 4 leaves the literal word `pending` in the `- Map:` bullet (`references\u002Ftemplates.md`), which isn't `{{…}}` syntax and the grep below won't catch it. Then check for **this template's two remaining placeholders specifically**, not for `{{` in general:\n   ```bash\n   grep -cE '\\{\\{(today|project_description)\\}\\}' \"pages\u002FProjects___\u003CProjectName>.md\"\n   ```\n   must return `0`. A bare `{{` search would be wrong twice over: `{{query}}` and `{{embed}}` are legitimate Logseq macros that `code-in-braces` explicitly whitelists, and a user's project description may contain `{{` of its own — matching either would send you \"replacing\" content that was never a placeholder. If it doesn't, find and replace the remaining placeholder before continuing — a literal `{{...}}` left in the graph is a `code-in-braces` violation, exactly the kind of format break this plugin exists to prevent.\n\n6. Update `pages\u002FIndex.md` — add a link to the new project under the Projects section:\n   - `[[Projects\u002F\u003CProjectName>]] — \u003Cbrief description>`\n\nConfirm the project page was created and remind the user they can now use \"save to brain\" during work sessions and \"load [project]\" to restore context.\n\nAfter confirmation, run `brain activity \"created project [[Projects\u002F\u003CProjectName>]]\"`.\n\n## Date Format\n\nAlways use `yyyy-MM-dd` format for dates (e.g., `2026-04-12`). This matches Logseq's journal format and sorts correctly.\n\n## Important Notes\n\n- See `CLAUDE.md` \"Logseq format invariants\" for namespace separators, bullet format, properties, link syntax, and date format.\n- When creating the `journals\u002F` directory, use Bash (`mkdir -p`) or the Write tool to ensure it exists — do not skip this step.","# Brain Init\n\nInitialize the Claude Brain Logseq graph or add a new project page to an existing graph.\n\n## Prerequisites\n\nResolve the graph path per `skills\u002F_shared\u002Fpath-resolution.md`. If the resolved folder is empty or missing core files, this skill performs first-time setup (below). Otherwise it adds a new project to the existing graph. The helper (below) is required from step 4 on.\n\n## Running the helper\n\n- Bash: `sh \"\u003Cthis skill's base directory>\u002F..\u002F_shared\u002Fbin\u002Fbrain\" \u003Ccommand> …`\n- PowerShell-only Windows: `& \"$(Split-Path (Split-Path (Get-Command git).Source))\\bin\\bash.exe\" \"\u003Cbase>\u002F..\u002F_shared\u002Fbin\u002Fbrain\" \u003Ccommand> …`\n- Neither works: stop and say *\"logseq-brain needs Git for Windows (Git Bash) — https:\u002F\u002Fgit-scm.com\u002Fdownload\u002Fwin\"*.\n- In Cowork, always pass `--graph \u003Cconnected folder>`. Elsewhere pass `--graph` only when the graph is not configured. It may go anywhere on the line. On exit 2 with `graph not resolved`, follow `skills\u002F_shared\u002Fpath-resolution.md`, then pass `--graph`.\n- Put text arguments in single quotes; a `'` inside becomes `'\\''`. In double quotes the shell runs backticks and expands `$`.\n- Exit 0 clean, 1 findings (act on them), 2 error (act on its reason; don't retry blindly). Quote every `coverage:` line. Never recompute a figure it printed. Its `graph:` line is the folder for your own Read, Edit and Write calls.\n\n## First-Time Graph Setup\n\nIf the graph folder is empty or missing core files, initialize it:\n\n1. Create `logseq\u002Fconfig.edn` with minimal Logseq config:\n\n```clojure\n{:meta\u002Fversion 1\n :preferred-format \"Markdown\"\n :journal\u002Fpage-title-format \"yyyy-MM-dd\"\n :journal\u002Ffile-name-format \"yyyy_MM_dd\"}\n```\n\n2. Create `pages\u002FIndex.md` — the master index page:\n\n```markdown\ntype:: index\ndescription:: Master index of Claude's brain — all projects and key pages\n\n- ## Projects\n  - _No projects yet. Use \"init brain project [name]\" to add one._\n- ## Quick Links\n  - [[Meta]] — preferences, working style, conventions\n  - [[Decisions]] — cross-project decision log\n```\n\n3. Create `pages\u002FMeta.md` — for storing user preferences and conventions:\n\n```markdown\ntype:: meta\nlast-updated:: {{today}}\n\n- ## User Preferences\n  - _Add preferences as they emerge from working sessions._\n- ## Conventions\n  - _Add naming conventions, coding style preferences, etc._\n- ## Tools & Stack\n  - _Add commonly used tools, languages, frameworks._\n```\n\n4. Create `pages\u002FDecisions.md` — cross-project decision log:\n\n```markdown\ntype:: decisions\nlast-updated:: {{today}}\n\n- ## Decision Log\n  - _Decisions that span multiple projects or are general in nature._\n```\n\n5. Create the `journals\u002F` directory with a `.gitkeep` file to ensure it persists in version control. Use `mkdir -p` via Bash or create `journals\u002F.gitkeep` with the Write tool. This directory must exist before brain-save can write journal entries — do not skip this step.\n\nReplace `{{today}}` with the current date in `yyyy-MM-dd` format.\n\nConfirm to the user that the graph is ready and they can open it in Logseq.\n\nAfter confirmation, run `brain activity \"initialized graph at \u003CgraphPath>\"`.\n\n## Adding a New Project\n\nWhen the user wants to add a project (e.g., \"add MyProject to brain\", \"init brain project GameDev\"):\n\n1. Determine the project name from the user's request.\n\n2. Ask the user for a brief description and any initial context for the project (tech stack, repo location, key info) — gather this **before** writing the page. The template (`references\u002Ftemplates.md`) uses the same description in three places: `focus::`, the Digest Identity bullet, and `## Overview`. If the description exceeds **120 bytes**, use a short form for `focus::` (the digest property cap — see `skills\u002F_shared\u002Fdigest.md`) and keep the full text in `## Overview` and the Digest Identity bullet.\n\n3. Create the project page at `pages\u002FProjects___\u003CProjectName>.md` using the template from `references\u002Ftemplates.md`, substituting the gathered description into `focus::`, the Digest Identity bullet, and `## Overview`. The triple underscore `___` is how Logseq represents the `\u002F` namespace separator in filenames — so this page will appear as `Projects\u002FProjectName` in the Logseq sidebar.\n\n4. **`brain digest Projects\u002F\u003CProjectName> --apply`** — replaces the template's `- Map: pending` line with the measured Map. Its report must say `map: ok`.\n\n5. **Confirm no template placeholder survives.** Step 4's report saying `map: ok` is the explicit gate for the Map placeholder — do not proceed to this step if it didn't, since a failed or skipped step 4 leaves the literal word `pending` in the `- Map:` bullet (`references\u002Ftemplates.md`), which isn't `{{…}}` syntax and the grep below won't catch it. Then check for **this template's two remaining placeholders specifically**, not for `{{` in general:\n   ```bash\n   grep -cE '\\{\\{(today|project_description)\\}\\}' \"pages\u002FProjects___\u003CProjectName>.md\"\n   ```\n   must return `0`. A bare `{{` search would be wrong twice over: `{{query}}` and `{{embed}}` are legitimate Logseq macros that `code-in-braces` explicitly whitelists, and a user's project description may contain `{{` of its own — matching either would send you \"replacing\" content that was never a placeholder. If it doesn't, find and replace the remaining placeholder before continuing — a literal `{{...}}` left in the graph is a `code-in-braces` violation, exactly the kind of format break this plugin exists to prevent.\n\n6. Update `pages\u002FIndex.md` — add a link to the new project under the Projects section:\n   - `[[Projects\u002F\u003CProjectName>]] — \u003Cbrief description>`\n\nConfirm the project page was created and remind the user they can now use \"save to brain\" during work sessions and \"load [project]\" to restore context.\n\nAfter confirmation, run `brain activity \"created project [[Projects\u002F\u003CProjectName>]]\"`.\n\n## Date Format\n\nAlways use `yyyy-MM-dd` format for dates (e.g., `2026-04-12`). This matches Logseq's journal format and sorts correctly.\n\n## Important Notes\n\n- See `CLAUDE.md` \"Logseq format invariants\" for namespace separators, bullet format, properties, link syntax, and date format.\n- When creating the `journals\u002F` directory, use Bash (`mkdir -p`) or the Write tool to ensure it exists — do not skip this step.",{"name":5,"description":7},"main","6697ee8c768b09684adb2e64d01e085a9f10f12f","plugin\u002Fskills\u002Fbrain-init",5,"https:\u002F\u002Fgithub.com\u002Fjame581\u002FLogseqBrain","https:\u002F\u002Fgithub.com\u002Fjame581","https:\u002F\u002Fjanmesarc.online\u002F","Software engineer. My biggest passion is game development.","2026-11-10 08:15:59",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add jame581\u002FLogseqBrain --skill brain-init",{"tool":59,"command":60},"bunx","bunx skills add jame581\u002FLogseqBrain --skill brain-init",{"tool":62,"command":63},"pnpm","pnpm dlx skills add jame581\u002FLogseqBrain --skill brain-init","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjame581\u002FLogseqBrain\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fbrain-init\u002FSKILL.md",true,[67],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Ftemplates.md","REFERENCE","参考文档",4972,"https:\u002F\u002Fgithub.com\u002Fjame581\u002FLogseqBrain\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fbrain-init\u002Freferences\u002Ftemplates.md",[74,93,114,136,153,176],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":39},"01M6RSMD30BFC83069PAT83TS5","brain-status","Show a dashboard of all projects in the Claude Brain graph, or graph analytics. Dashboard triggers: \"brain status\", \"show projects\", \"show brain\", \"what's in my brain\", \"project dashboard\", \"brain overview\", \"list projects\", \"summary\". Analytics triggers: \"brain stats\", \"graph analytics\", \"graph activity over time\". Don't fire for loads (use brain-load) or saves (use brain-save).","https:\u002F\u002Fgithub.com\u002Fjame581\u002FLogseqBrain\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fbrain-status\u002FSKILL.md",[],[38,20,81,82,83,84,85,86,87,88,89,90,30,22,29,26,91,92,24,23],"brain status","dashboard","analytics","stats","projects","list","overview","use","show","summary","activity","my",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":39},"01M6RSM6MFFZKGKFP42ZSPNRNR","brain-save","Save session context, decisions, progress, and plans to the Claude Brain Logseq graph. Triggers: \"save to brain\", \"save this\", \"remember this\", \"store this decision\", \"log this\", \"save progress\", \"before I quit\", \"wrap up\". Don't fire for read operations (use brain-load) or status checks (use brain-status).","https:\u002F\u002Fgithub.com\u002Fjame581\u002FLogseqBrain\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fbrain-save\u002FSKILL.md",[],[100,20,101,102,103,104,105,106,88,31,107,108,109,29,110,111,112,113,24,23],"save","brain save","remember","decision","decisions","session","operations","log","session context","plans","progress","save progress","store","save session",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":39},"01M6RSM1WWQ58M76HKX6BB0YKQ","brain-load","Load project context from the Claude Brain Logseq graph into the current session. Triggers: \"load brain\", \"load \u003Cproject>\", \"resume \u003Cproject>\", \"continue work on \u003Cproject>\", \"what do we know about \u003Ctopic>\". Don't fire for write operations (use brain-save), generic questions about Logseq itself, or \"open \u003Cfile>\" \u002F \"switch to \u003Cbranch>\" requests that mean opening files or switching git branches rather than loading project memory.","https:\u002F\u002Fgithub.com\u002Fjame581\u002FLogseqBrain\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fbrain-load\u002FSKILL.md",[],[20,24,121,122,123,36,124,125,126,127,128,129,130,131,22,132,133,134,25,135],"brain load","memory","git","open","work on","work","branch","write","context","files","branches","switching","loading","continue work","project memory",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":39},"01M6RSKA677A9GYNAWPEC1C5TW","brain-doctor","Lint and repair the Claude Brain Logseq graph — find and fix format violations that create phantom pages or broken macros. Triggers: \"brain doctor\", \"lint brain\", \"check brain health\", \"clean up brain\", \"fix brain\", \"graph hygiene\", \"why are there empty pages\", \"find broken pages\", \"backfill digests\", \"rebuild digest for \u003Cproject>\". Don't fire for loads (use brain-load), saves (use brain-save), status\u002Fanalytics (use brain-status), or first-time setup (use brain-init).","https:\u002F\u002Fgithub.com\u002Fjame581\u002FLogseqBrain\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fbrain-doctor\u002FSKILL.md",[],[143,20,144,21,38,83,145,36,100,146,147,148,31,149,150,30,151,22,25,152],"doctor","brain doctor","create","why","broken","fix","rebuild","clean","digest","backfill",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":39},"01M6RSK4M8ZF7RX07BW9M206DR","release","Cut a logseq-brain release — eval gate, version bump in plugin.json and BRAIN_VERSION, tag, GitHub release, .plugin rebuild, skillsmith marketplace bump. Invoke only when the user asks to release.","https:\u002F\u002Fgithub.com\u002Fjame581\u002FLogseqBrain\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frelease\u002FSKILL.md",[],[155,160,161,162,163,164,165,166,167,168,169,170,149,171,20,172,25,173,174,175],"github","plugin","marketplace","github release","json","eval","user","version","only","bump","gate","version bump","cut","true","invoke","when",{"skillNo":177,"name":165,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":39},"01M6RSJZ7WK4TG6N79K0WPPD1G","Run the logseq-brain eval suite in WSL2 as the logseq-eval user — free --check by default, a paid full or single-case run only after confirmation. Invoke only when the user asks to run evals.","https:\u002F\u002Fgithub.com\u002Fjame581\u002FLogseqBrain\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Feval\u002FSKILL.md",[],[165,182,183,184,185,168,186,187,20,188,189,190,191,25,173,192,193,174,194,175],"run evals","run","check","confirmation","evals","default","full","as","free","case","suite","eval suite","single"]