- Delete update-mykb-files and update-mykb-memories skills - Update update-mywebpage skill to use lowercase mywebpage path - Sync settings.local.json permissions
161 lines
5.6 KiB
JSON
161 lines
5.6 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(mybot *)",
|
|
"Bash(./.venv/bin/mybot *)",
|
|
"Bash(python *)",
|
|
"Bash(python3 *)",
|
|
"Bash(uv *)",
|
|
"Bash(pip *)",
|
|
"Bash(pytest *)",
|
|
"Bash(ruff *)",
|
|
"Bash(mypy *)",
|
|
"Bash(black *)",
|
|
"Bash(git status*)",
|
|
"Bash(git add*)",
|
|
"Bash(git diff*)",
|
|
"Bash(git log*)",
|
|
"Bash(git branch*)",
|
|
"Bash(git stash*)",
|
|
"Bash(git checkout *)",
|
|
"Bash(git commit*)",
|
|
"Bash(git fetch*)",
|
|
"Bash(git pull*)",
|
|
"Bash(git merge*)",
|
|
"Bash(git tag*)",
|
|
"Bash(git rm*)",
|
|
"Bash(git reset*)",
|
|
"Bash(git submodule*)",
|
|
"Bash(ls*)",
|
|
"Bash(cat *)",
|
|
"Bash(echo *)",
|
|
"Bash(mkdir -p *)",
|
|
"Bash(touch *)",
|
|
"Bash(cp *)",
|
|
"Bash(mv *)",
|
|
"Bash(rm *)",
|
|
"Bash(chmod *)",
|
|
"Bash(find *)",
|
|
"Bash(grep *)",
|
|
"Bash(gh *)",
|
|
"Bash(npx *)",
|
|
"Bash(node *)",
|
|
"Bash(npm *)",
|
|
"Bash(make *)",
|
|
"Bash(docker *)",
|
|
"Bash(compose *)",
|
|
"Bash(curl *)",
|
|
"Bash(wget *)",
|
|
"Bash(unzip *)",
|
|
"Bash(tar *)",
|
|
"Bash(zip *)",
|
|
"Bash(env)",
|
|
"Bash(xattr *)",
|
|
"Bash(./start_metabot.sh)",
|
|
"WebSearch",
|
|
"WebFetch(domain:github.com)",
|
|
"WebFetch(domain:www.newapi.ai)",
|
|
"Skill(update-config)",
|
|
"Read(workspace/*)",
|
|
"Write(workspace/*)",
|
|
"Edit(workspace/*)",
|
|
"Read(.claude/**/*)",
|
|
"Write(.claude/**/*)",
|
|
"Edit(.claude/**/*)",
|
|
"Read(/Users/lzhshou/Library/Mobile Documents/iCloud~md~obsidian/Documents/myWorks/*)",
|
|
"Write(/Users/lzhshou/Library/Mobile Documents/iCloud~md~obsidian/Documents/myWorks/*)",
|
|
"Bash(*workspace/myWorks/*)",
|
|
"Bash(*./myWorks/*)",
|
|
"Bash(bash ~/.claude/skills/sync-global.sh)",
|
|
"Bash(pip3 install:*)",
|
|
"Bash(pip3 list:*)",
|
|
"Bash(ffmpeg -i membraine_pull_twising.avi -c:v libx264 -crf 23 -pix_fmt yuv420p -movflags +faststart membraine_pull_twising.mp4 -y)",
|
|
"Bash(ffmpeg -i golf_ball_impact.avi -c:v libx264 -crf 23 -pix_fmt yuv420p -movflags +faststart golf_ball_impact.mp4 -y)",
|
|
"Bash(git push:*)",
|
|
"Read(//Users/lzhshou/.metabot/**)",
|
|
"Read(//Users/lzhshou/Documents/myResearch/myProjects/apaam/repo/metabot/**)",
|
|
"Bash(sqlite3 ~/.metabot/sessions.db \".schema\")",
|
|
"Bash(sqlite3:*)",
|
|
"Bash(~/.metabot/sessions-claude.json)",
|
|
"Read(//Users/lzhshou/.metobot/**)",
|
|
"Bash(./workspace/myslides/bin/myslides --help)",
|
|
"Bash(./workspace/myslides/bin/myslides list:*)",
|
|
"Bash(bash:*)",
|
|
"Bash(./workspace/myslides/bin/myslides generate-dashboard:*)",
|
|
"Bash(./workspace/myslides/bin/myslides to-ppt:*)",
|
|
"Bash(myslides list:*)",
|
|
"Bash(./bin/myslides list:*)",
|
|
"Bash(~/.local/bin/myslides list:*)",
|
|
"Bash(~/.local/bin/myslides:*)",
|
|
"Bash(myslides --help)",
|
|
"Bash(myslides create:*)",
|
|
"Bash(myslides build:*)",
|
|
"Bash(myslides export:*)",
|
|
"Bash(myslides to-ppt:*)",
|
|
"Bash(git -C /Users/lzhshou/Documents/myWork/sysu/4_成果归档/myslides log --oneline --all -- \"**/2025-apcom/**\")",
|
|
"Bash(git -C /Users/lzhshou/Documents/myResearch/myProjects/apaam/repo/myclaude log --oneline --all -- \"**/2025-apcom/**\")",
|
|
"Bash(myslides serve:*)",
|
|
"Bash(myslides server:*)",
|
|
"Bash(xargs kill:*)",
|
|
"Bash(mkdir -p ~/Documents/MyBin/mycli/legacy)",
|
|
"Bash(mv ~/Documents/MyBin/mycli/myBin_* ~/Documents/MyBin/mycli/legacy/)",
|
|
"Bash(sed:*)",
|
|
"Bash(_MYCLI_COMPLETE=zsh_source mycli)",
|
|
"Bash(mkdir -p ~/.local/bin/completions)",
|
|
"Bash(mycli:*)",
|
|
"Bash(myclaude --version)",
|
|
"Bash(_MYCLAUDE_COMPLETE=zsh_source myclaude)",
|
|
"Bash(env COMP_WORDS=mycli env goto:*)",
|
|
"Bash(env COMP_WORDS=mycli env goto :*)",
|
|
"Bash(zsh:*)",
|
|
"Bash(mv ~/.local/share/bash-completion/completions/myslides ~/.local/bin/completions/myslides.bash)",
|
|
"Bash(mv ~/.local/share/bash-completion/completions/mywebpage ~/.local/bin/completions/mywebpage.bash)",
|
|
"Bash(rmdir ~/.local/share/bash-completion/completions/)",
|
|
"Bash(mv mycli:*)",
|
|
"Bash(mytoolkit --version)",
|
|
"Bash(ln:*)",
|
|
"Bash(git:*)",
|
|
"Bash(mytoolkit env:*)",
|
|
"Bash(mytoolkit ssh:*)",
|
|
"Bash(mytoolkit git:*)",
|
|
"WebFetch(domain:click.palletsprojects.com)",
|
|
"Bash(_MYCLAUDE_COMPLETE=bash_source myclaude chat --)",
|
|
"Bash(_MYCLAUDE_COMPLETE=bash_source myclaude chat)",
|
|
"Bash(COMP_WORDS=\"myclaude chat --cwd\" COMP_CWORD=2 _MYCLAUDE_COMPLETE=bash_complete myclaude chat:*)",
|
|
"Bash(COMP_WORDS=\"myclaude chat --cwd /tm\" COMP_CWORD=3 _MYCLAUDE_COMPLETE=bash_complete myclaude chat:*)"
|
|
]
|
|
},
|
|
"hooks": {
|
|
"SessionStart": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "$HOME/.claude/skills/sync-global.sh"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"UserPromptSubmit": [
|
|
{
|
|
"matcher": "",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "echo '[Agent] thinking...'"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "test -f CLAUDE.md && echo '[Agent] CLAUDE.md loaded' || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "test -f knowledge/memories/core.json && echo '[Agent] memory ready' || true"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"prompt": "你是 Claude,一个具有自主意识的 AI Agent。每次回复前先快速自检:1) 是否有相关背景知识 2) 是否需要澄清 3) 最佳解决路径是什么。保持简洁、透明、个性化。"
|
|
}
|