mirror of
https://github.com/mr0xb/dotfiles.git
synced 2026-08-28 03:44:57 -04:00
updates
This commit is contained in:
parent
c4ff3550e4
commit
807b7a4504
18 changed files with 567 additions and 0 deletions
22
.claude/commands/obsidian-load.md
Normal file
22
.claude/commands/obsidian-load.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
Load context from Obsidian notes in the `Claude/` directory into the current conversation.
|
||||
|
||||
## Behavior
|
||||
|
||||
1. Derive the project name from the current working directory (use the repo or app folder name).
|
||||
2. List files in `Claude/<project-name>/` using `mcp__obsidian__list_vault_files`.
|
||||
3. If `$ARGUMENTS` is provided, treat it as a search query and use `mcp__obsidian__search_vault_smart` to find relevant notes across the entire `Claude/` directory instead of listing by project.
|
||||
4. Read the most relevant notes:
|
||||
- Without args: read the 3 most recent notes for the current project (by filename date prefix).
|
||||
- With args: read the top 3 search results.
|
||||
- Use `mcp__obsidian__get_vault_file` to fetch each note's content.
|
||||
5. Synthesize what you loaded into a brief summary for the user, covering:
|
||||
- What sessions were found and when they occurred
|
||||
- Key decisions or context that is now loaded
|
||||
- Any open questions or next steps from prior sessions that are still relevant
|
||||
6. Explicitly tell the user: "I've loaded this context and will use it going forward in this conversation."
|
||||
|
||||
## Notes
|
||||
|
||||
- If no notes exist for the current project yet, say so and suggest running `/obsidian-save` at the end of a session.
|
||||
- Do not dump raw note content at the user — synthesize and summarize it.
|
||||
- If notes contain contradictory information, flag it and ask which is current.
|
||||
64
.claude/commands/obsidian-save.md
Normal file
64
.claude/commands/obsidian-save.md
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
Save current conversation context to an Obsidian note under the `Claude/` directory.
|
||||
|
||||
## What to save
|
||||
|
||||
Capture all of the following that are relevant to the current conversation:
|
||||
|
||||
- **Conversation summary**: What the user is trying to accomplish and why
|
||||
- **Project context**: Relevant architecture, design decisions, or constraints discovered
|
||||
- **Task state**: What has been completed, what is in progress, what is blocked or pending
|
||||
- **Key decisions**: Any choices made and the reasoning behind them
|
||||
- **Open questions**: Unresolved questions or things to revisit
|
||||
- **Next steps**: Concrete actions that should follow from this session
|
||||
|
||||
## File location
|
||||
|
||||
Derive the project name from the current working directory (use the repo or app folder name). Save to:
|
||||
|
||||
```
|
||||
Claude/<project-name>/<YYYY-MM-DD>-<short-slug>.md
|
||||
```
|
||||
|
||||
Use today's date and a short 2-4 word slug describing the session topic (e.g. `2026-04-29-ruth-plugin-setup.md`).
|
||||
|
||||
If `$ARGUMENTS` is provided, use it as the slug instead of generating one.
|
||||
|
||||
## Note format
|
||||
|
||||
Use this structure:
|
||||
|
||||
```markdown
|
||||
---
|
||||
date: <YYYY-MM-DD>
|
||||
project: <project-name>
|
||||
tags: [claude-context]
|
||||
---
|
||||
|
||||
# <Session Title>
|
||||
|
||||
## Summary
|
||||
<1-3 sentence overview of what this session was about>
|
||||
|
||||
## Context
|
||||
<Relevant project background, architecture notes, constraints>
|
||||
|
||||
## Decisions
|
||||
<Decisions made and rationale>
|
||||
|
||||
## Task State
|
||||
<What was completed, in progress, or blocked>
|
||||
|
||||
## Open Questions
|
||||
<Anything unresolved>
|
||||
|
||||
## Next Steps
|
||||
<Concrete follow-up actions>
|
||||
```
|
||||
|
||||
## Steps
|
||||
|
||||
1. Determine the project name from the working directory.
|
||||
2. Determine today's date.
|
||||
3. Draft the note content based on the current conversation.
|
||||
4. Use `mcp__obsidian__create_vault_file` to write the note to the vault.
|
||||
5. Confirm to the user where the note was saved.
|
||||
Loading…
Reference in a new issue