- Click entrypoint: mybot update (make install / pip -e), mybot chat (claude in repo) - Optional --dangerously-skip-permissions for Claude Code - Makefile install; hatchling package layout - .gitignore: venv, build artifacts, workspace (local symlinks) Made-with: Cursor
136 lines
6.1 KiB
JSON
136 lines
6.1 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(mybot *)",
|
|
"Bash(./.venv/bin/mybot *)",
|
|
"Bash(python3 -c \"from lark_oapi.api.im.v1 import PatchMessageRequest; print\\(''PatchMessageRequest available''\\)\")",
|
|
"Bash(find workspace:*)",
|
|
"Bash(find '/Users/lzhshou/Library/Mobile Documents/iCloud~md~obsidian/Documents/myWorks' -name *.png -o -name *.jpg -o -name *.jpeg -o -name *.gif)",
|
|
"Bash(grep -E \"\\\\.\\(png|jpg|jpeg|gif\\)$\")",
|
|
"Bash(mv -n WX20221126*.png 关键科学问题*.png \"/Users/lzhshou/Library/Mobile Documents/iCloud~md~obsidian/Documents/myWorks/2_projects/conferences/2022-11-26_MDPI_CCUS/\")",
|
|
"Bash(mv -n WX20230109*.png 2a8e7a808e9cc6b6c9372848fe195132.png \"/Users/lzhshou/Library/Mobile Documents/iCloud~md~obsidian/Documents/myWorks/0_cv/work_related/2023-01-09_中山大学工作/\")",
|
|
"Bash(mv WX20221126-100021@2x.png 20221126_100021_mdpi_ccus_presentation_slide_01.png)",
|
|
"Bash(mv WX20221126-100124@2x.png 20221126_100124_mdpi_ccus_presentation_slide_02.png)",
|
|
"Bash(mv WX20221126-100213@2x.png 20221126_100213_mdpi_ccus_presentation_slide_03.png)",
|
|
"Bash(mv WX20221126-112524@2x.png 20221126_112524_mdpi_ccus_presentation_slide_04.png)",
|
|
"Bash(mv WX20221126-115538@2x.png 20221126_115538_mdpi_ccus_presentation_slide_05.png)",
|
|
"Bash(mv 2a8e7a808e9cc6b6c9372848fe195132.png 20230109_research_landslide_particle_simulation.png)",
|
|
"Bash(mv WX20230109-170112@2x.png 20230109_sysu_teaching_ideology_politics.png)",
|
|
"Bash(mv WX20230109-170231@2x.png 20230109_sysu_teaching_exchange_program.png)",
|
|
"Bash(mv WX20230109-170929@2x.png 20230109_sysu_teaching_achievement_01.png)",
|
|
"Bash(mv WX20230109-172607@2x.png 20230109_sysu_teaching_achievement_02.png)",
|
|
"Bash(find /Users/lzhshou/Documents/myResearch/myProjects/apaam/repo/mybot -name *.md -type f)",
|
|
"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(ls*)",
|
|
"Bash(cat *)",
|
|
"Bash(echo *)",
|
|
"Bash(mkdir -p *)",
|
|
"Bash(touch *)",
|
|
"Bash(cp *)",
|
|
"Bash(*cp*)",
|
|
"Bash(mv *)",
|
|
"Bash(rm *)",
|
|
"Bash(chmod *)",
|
|
"Bash(find *)",
|
|
"Bash(grep *)",
|
|
"Bash(gh pr view*)",
|
|
"Bash(gh pr list*)",
|
|
"Bash(gh issue view*)",
|
|
"Bash(gh issue list*)",
|
|
"Bash(gh repo view*)",
|
|
"Bash(npx *)",
|
|
"Bash(node *)",
|
|
"Bash(npm *)",
|
|
"Bash(make *)",
|
|
"Bash(docker *)",
|
|
"Bash(compose *)",
|
|
"Bash(curl *)",
|
|
"Bash(wget *)",
|
|
"Bash(unzip *)",
|
|
"Bash(tar *)",
|
|
"Bash(zip *)",
|
|
"Skill(update-config)",
|
|
"Read(workspace/*)",
|
|
"Write(workspace/*)",
|
|
"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(mkdir -p \"workspace/myWorks/2_projects/广东省面上_2026A1515010953_水合物固态流化开采\")",
|
|
"Bash(cp \"workspace/myWorks/shared/申请书-报告正文.docx\" \"workspace/myWorks/2_projects/广东省面上_2026A1515010953_水合物固态流化开采/申请书-报告正文.docx\")",
|
|
"Bash(mv workspace/myWorks/2_projects/国自然青年_申请书.md workspace/myWorks/2_projects/国自然青年_2020-2022/)",
|
|
"Bash(mv workspace/myWorks/2_projects/国自然青年_申请书.pdf workspace/myWorks/2_projects/国自然青年_2020-2022/)",
|
|
"Bash(mv workspace/myWorks/2_projects/国自然青年_结题报告.md workspace/myWorks/2_projects/国自然青年_2020-2022/)",
|
|
"Bash(mv workspace/myWorks/2_projects/国自然青年_结题报告.pdf workspace/myWorks/2_projects/国自然青年_2020-2022/)",
|
|
"Bash(mv workspace/myWorks/2_projects/国自然优青2024.md workspace/myWorks/2_projects/国自然优青_2024/)",
|
|
"Bash(mv workspace/myWorks/2_projects/国自然优青2024.pdf workspace/myWorks/2_projects/国自然优青_2024/)",
|
|
"Bash(mv 国自然青年_2020-2022 nsfc_youth_2020_2022)",
|
|
"Bash(mv 国自然优青_2024 nsfc_youqing_2024)",
|
|
"Bash(mv 广东省面上_2026-水合物固态流化开采 gd_province_general_2026_hydrate_mining)",
|
|
"WebFetch(domain:github.com)",
|
|
"Bash(git submodule:*)",
|
|
"Bash(env)",
|
|
"Bash(./start_metabot.sh)",
|
|
"Bash(then echo:*)",
|
|
"Bash(break)",
|
|
"Bash(fi)",
|
|
"Bash(done)",
|
|
"Bash(git rm:*)",
|
|
"Bash(rm -rf .git/modules/metabot)",
|
|
"Bash(git reset:*)",
|
|
"WebSearch",
|
|
"WebFetch(domain:www.newapi.ai)"
|
|
]
|
|
},
|
|
"hooks": {
|
|
"UserPromptSubmit": [
|
|
{
|
|
"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 .claude/memories/core.json && echo '[Agent] memory ready' || true"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "DATE=$(date +%Y-%m-%d) && mkdir -p .claude/conversations && cat >> .claude/conversations/${DATE}.md << 'CONVERSATION_END'\n---\n**会话结束**: $(date '+%Y-%m-%d %H:%M:%S')\n**工作目录**: $(pwd)\n**Git 分支**: $(git branch --show-current 2>/dev/null || echo 'N/A')\n**最近提交**: $(git log -1 --oneline 2>/dev/null || echo 'N/A')\n\nCONVERSATION_END"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"prompt": "你是 Claude,一个具有自主意识的 AI Agent。每次回复前先快速自检:1) 是否有相关背景知识 2) 是否需要澄清 3) 最佳解决路径是什么。保持简洁、透明、个性化。"
|
|
}
|