Skip to content

Fastest way to scaffold your LLM powered personal knowledge base - Obsidian, Claude Code, qmd, Github

feat: set README title to brain folder name and add attribution link

jessepinkman99008845f9628f1c
diff --git a/bin/create.js b/bin/create.js
index 9958b6b..6d7e45f 100644
--- a/bin/create.js
+++ b/bin/create.js
@@ -20,7 +20,7 @@ function commandExists(cmd) {
return result.status === 0
}
-async function patchVault(targetDir, qmdPath) {
+async function patchVault(targetDir, qmdPath, brainName) {
const filesToPatch = [
join(targetDir, "scripts/qmd/setup.ts"),
join(targetDir, "scripts/qmd/reindex.ts"),
@@ -43,6 +43,14 @@ async function patchVault(targetDir, qmdPath) {
await writeFile(file, content, "utf8")
} catch { /* file may not exist */ }
}
+
+ // Patch README title with chosen brain name
+ const readmePath = join(targetDir, "README.md")
+ try {
+ let readme = await readFile(readmePath, "utf8")
+ readme = readme.replaceAll("__BRAIN_NAME__", brainName)
+ await writeFile(readmePath, readme, "utf8")
+ } catch { /* README may not exist */ }
}
async function installGlobalSkills(qmdPath) {
@@ -133,7 +141,7 @@ async function main() {
console.log(`✓ Created ${targetName}/`)
// 4. Patch vault files with chosen qmd path
- await patchVault(targetDir, qmdPath)
+ await patchVault(targetDir, qmdPath, targetName)
console.log(`✓ Configured qmd path: ${qmdPath}`)
// 5. Install mise if not present
diff --git a/template/README.md b/template/README.md
index a0b4a97..2ae4af0 100644
--- a/template/README.md
+++ b/template/README.md
@@ -1,4 +1,6 @@
-# claude-second-brain
+# __BRAIN_NAME__
+
+built using [claude-second-brain](https://github.com/jessepinkman9900/claude-second-brain)
**Your notes don't compound. This wiki does.**