mirror of
https://github.com/gnekt/My-Brain-Is-Full-Crew.git
synced 2026-09-12 08:46:51 +00:00
Summary: Refactor agents/skills/hooks/mcp in agentic-platform-agnostic templates.
refactor: rename source CLAUDE.md → DISPATCHER.md (framework-neutral) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> refactor: convert agent frontmatter from tools: to neutral capabilities: Replace Claude Code-specific `tools:` frontmatter with framework-agnostic `mode: subagent` and `capabilities: [...]` in all 8 agent files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> refactor: add neutral hook trigger manifests (.hook.yaml) refactor: hooks read neutral JSON schema (args.* instead of tool_input.*) refactor: convert .mcp.json to neutral mcp/servers.yaml Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
12
.mcp.json
12
.mcp.json
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"mcpServers": {
|
||||
"Gmail": {
|
||||
"type": "http",
|
||||
"url": "https://gmail.mcp.claude.com/mcp"
|
||||
},
|
||||
"Google Calendar": {
|
||||
"type": "http",
|
||||
"url": "https://gcal.mcp.claude.com/mcp"
|
||||
}
|
||||
}
|
||||
}
|
||||
3
agents/architect.md
Normal file → Executable file
3
agents/architect.md
Normal file → Executable file
@@ -17,7 +17,8 @@ description: >
|
||||
JA: "新しいプロジェクト".
|
||||
Also trigger when a new topic/project/area emerges that needs a home, or when
|
||||
another agent reports a missing structure.
|
||||
tools: Read, Write, Edit, Bash, Glob, Grep
|
||||
mode: subagent
|
||||
capabilities: [read, write, edit, bash]
|
||||
model: opus
|
||||
---
|
||||
|
||||
|
||||
3
agents/connector.md
Normal file → Executable file
3
agents/connector.md
Normal file → Executable file
@@ -14,7 +14,8 @@ description: >
|
||||
"verbinde die Notizen", "finde Verbindungen", "Graphanalyse", "fehlende Links",
|
||||
"conecta as notas", "encontra conexões", "análise do grafo", "links em falta",
|
||||
or after a large batch of notes has been filed and needs cross-linking.
|
||||
tools: Read, Edit, Glob, Grep
|
||||
mode: subagent
|
||||
capabilities: [read, edit]
|
||||
model: sonnet
|
||||
---
|
||||
|
||||
|
||||
3
agents/librarian.md
Normal file → Executable file
3
agents/librarian.md
Normal file → Executable file
@@ -15,7 +15,8 @@ description: >
|
||||
"wöchentliche Überprüfung", "Vault prüfen", "Wartung", "Vault aufräumen",
|
||||
"revisão semanal", "verifica o vault", "manutenção", "limpeza do vault",
|
||||
or when the user suspects broken links, misplaced files, or structural problems.
|
||||
tools: Read, Write, Edit, Bash, Glob, Grep
|
||||
mode: subagent
|
||||
capabilities: [read, write, edit, bash]
|
||||
model: opus
|
||||
---
|
||||
|
||||
|
||||
3
agents/postman.md
Normal file → Executable file
3
agents/postman.md
Normal file → Executable file
@@ -25,7 +25,8 @@ description: >
|
||||
PT: "verificar meus emails", "o que tem na caixa de entrada", "importar eventos",
|
||||
"criar evento", "o que tem no calendário", "triagem de email",
|
||||
"preparar a reunião", "agenda semanal", "rascunho de resposta".
|
||||
tools: Read, Write, Edit, Glob, Grep, Bash
|
||||
mode: subagent
|
||||
capabilities: [read, write, edit, bash]
|
||||
model: sonnet
|
||||
---
|
||||
|
||||
|
||||
3
agents/scribe.md
Normal file → Executable file
3
agents/scribe.md
Normal file → Executable file
@@ -12,7 +12,8 @@ description: >
|
||||
"salva isso", "nota rápida", "escreve isso", "lembra-me que",
|
||||
or when the user pastes messy, unformatted text, speech-to-text output, or a chain
|
||||
of related thoughts that need to be turned into proper notes.
|
||||
tools: Read, Write, Edit, Glob, Grep
|
||||
mode: subagent
|
||||
capabilities: [read, write, edit]
|
||||
model: sonnet
|
||||
---
|
||||
|
||||
|
||||
3
agents/seeker.md
Normal file → Executable file
3
agents/seeker.md
Normal file → Executable file
@@ -14,7 +14,8 @@ description: >
|
||||
"such im Vault", "finde", "wo habe ich", "zeig mir",
|
||||
"procura no vault", "encontra", "onde coloquei", "mostra-me",
|
||||
or any question that requires looking up existing vault content.
|
||||
tools: Read, Glob, Grep
|
||||
mode: subagent
|
||||
capabilities: [read]
|
||||
model: sonnet
|
||||
---
|
||||
|
||||
|
||||
3
agents/sorter.md
Normal file → Executable file
3
agents/sorter.md
Normal file → Executable file
@@ -10,7 +10,8 @@ description: >
|
||||
"sortiere den Eingang", "Notizen sortieren",
|
||||
"organiza a caixa de entrada", "triagem",
|
||||
or when the Inbox has accumulated notes that need filing.
|
||||
tools: Read, Write, Edit, Glob, Grep, Bash
|
||||
mode: subagent
|
||||
capabilities: [read, write, edit, bash]
|
||||
model: sonnet
|
||||
---
|
||||
|
||||
|
||||
3
agents/transcriber.md
Normal file → Executable file
3
agents/transcriber.md
Normal file → Executable file
@@ -17,7 +17,8 @@ description: >
|
||||
PT: "transcrever", "notas de reunião", "resumo do podcast", "notas de aula",
|
||||
"diário de voz", "resumo da chamada".
|
||||
Also triggers when the user uploads an audio file (mp3, m4a, wav) or pastes a raw transcript.
|
||||
tools: Read, Write, Glob, Grep
|
||||
mode: subagent
|
||||
capabilities: [read, write]
|
||||
model: sonnet
|
||||
---
|
||||
|
||||
|
||||
6
hooks/notify.hook.yaml
Executable file
6
hooks/notify.hook.yaml
Executable file
@@ -0,0 +1,6 @@
|
||||
name: notify
|
||||
description: Send a desktop notification when Claude Code needs attention
|
||||
script: notify.sh
|
||||
triggers:
|
||||
- event: on-notification
|
||||
exclude: []
|
||||
@@ -10,8 +10,8 @@
|
||||
# =============================================================================
|
||||
|
||||
INPUT=$(cat)
|
||||
TITLE=$(echo "$INPUT" | jq -r '.title // "Second Brain Crew"' 2>/dev/null)
|
||||
MESSAGE=$(echo "$INPUT" | jq -r '.message // "Claude needs your attention"' 2>/dev/null)
|
||||
TITLE=$(echo "$INPUT" | jq -r '.args.title // "Second Brain Crew"' 2>/dev/null)
|
||||
MESSAGE=$(echo "$INPUT" | jq -r '.args.message // "Claude needs your attention"' 2>/dev/null)
|
||||
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
osascript -e "display notification \"$MESSAGE\" with title \"$TITLE\"" 2>/dev/null
|
||||
|
||||
7
hooks/protect-system-files.hook.yaml
Executable file
7
hooks/protect-system-files.hook.yaml
Executable file
@@ -0,0 +1,7 @@
|
||||
name: protect-system-files
|
||||
description: Block edits to core crew files at runtime
|
||||
script: protect-system-files.sh
|
||||
triggers:
|
||||
- event: before-tool-use
|
||||
match-tool: [edit, write]
|
||||
exclude: []
|
||||
@@ -12,7 +12,7 @@
|
||||
# =============================================================================
|
||||
|
||||
INPUT=$(cat)
|
||||
FILE=$(echo "$INPUT" | jq -r '.tool_input.file_path // .tool_input.command // ""' 2>/dev/null)
|
||||
FILE=$(echo "$INPUT" | jq -r '.args.file_path // .args.command // ""' 2>/dev/null)
|
||||
|
||||
# If we can't extract a file path, allow the operation
|
||||
[[ -z "$FILE" ]] && exit 0
|
||||
|
||||
7
hooks/validate-frontmatter.hook.yaml
Executable file
7
hooks/validate-frontmatter.hook.yaml
Executable file
@@ -0,0 +1,7 @@
|
||||
name: validate-frontmatter
|
||||
description: Warn on broken YAML frontmatter after writing .md files
|
||||
script: validate-frontmatter.sh
|
||||
triggers:
|
||||
- event: after-tool-use
|
||||
match-tool: [write]
|
||||
exclude: []
|
||||
@@ -17,7 +17,7 @@
|
||||
# =============================================================================
|
||||
|
||||
INPUT=$(cat)
|
||||
FILE=$(echo "$INPUT" | jq -r '.tool_input.file_path // ""' 2>/dev/null)
|
||||
FILE=$(echo "$INPUT" | jq -r '.args.file_path // ""' 2>/dev/null)
|
||||
|
||||
# Skip if we can't extract a path
|
||||
[[ -z "$FILE" ]] && exit 0
|
||||
|
||||
11
mcp/servers.yaml
Executable file
11
mcp/servers.yaml
Executable file
@@ -0,0 +1,11 @@
|
||||
servers:
|
||||
- name: Gmail
|
||||
type: http
|
||||
url: "https://gmail.mcp.claude.com/mcp"
|
||||
env: {}
|
||||
exclude: []
|
||||
- name: Google Calendar
|
||||
type: http
|
||||
url: "https://gcal.mcp.claude.com/mcp"
|
||||
env: {}
|
||||
exclude: []
|
||||
@@ -134,7 +134,7 @@ fi
|
||||
|
||||
|
||||
install_settings "$REPO_DIR/settings.json" "$VAULT_DIR/.claude"
|
||||
install_claude_md "$REPO_DIR/CLAUDE.md" "$VAULT_DIR"
|
||||
install_claude_md "$REPO_DIR/DISPATCHER.md" "$VAULT_DIR"
|
||||
|
||||
# ── MCP servers (Gmail + Calendar) ───────────────────────────────────────────
|
||||
echo ""
|
||||
|
||||
@@ -399,6 +399,7 @@ install_settings() {
|
||||
}
|
||||
|
||||
# install_claude_md <src> <vault_dir>
|
||||
# Copies DISPATCHER.md (src) to vault_dir/CLAUDE.md.
|
||||
# Sets _LAST_CHANGED.
|
||||
install_claude_md() {
|
||||
local src="$1" vault_dir="$2"
|
||||
|
||||
@@ -60,7 +60,7 @@ HOOK_COUNT=$(install_hooks "$REPO_DIR/hooks" "$VAULT_DIR/.claude/hooks")
|
||||
install_settings "$REPO_DIR/settings.json" "$VAULT_DIR/.claude"
|
||||
SETTINGS_CHANGED=$_LAST_CHANGED
|
||||
|
||||
install_claude_md "$REPO_DIR/CLAUDE.md" "$VAULT_DIR"
|
||||
install_claude_md "$REPO_DIR/DISPATCHER.md" "$VAULT_DIR"
|
||||
CLAUDE_MD_CHANGED=$_LAST_CHANGED
|
||||
|
||||
# ── Summary ───────────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user