npx skills add https://github.com/agykit/agykit --skill 'Codebase Safety & Exploration'此技能提供了一种系统化的方法,用于理解现有项目并确保更改是安全且无副作用的。
在进行更改之前,先建立对项目的整体认知图。
list_dir。README.md、CONTRIBUTING.md、AGENTS.md 或架构设计文档。通过阅读特定语言的清单文件来识别构建系统和可用脚本:
package.json(查找 scripts、dependencies)pyproject.toml、requirements.txt 或 setup.pygo.mod、MakefileCargo.tomlpom.xml (Maven) 或 (Gradle)目标 :找到用于构建、测试和代码检查的具体命令。
tsconfig.json、webpack.config.js)以理解导入别名(例如 @/components)。.eslintrc、.pylintrc)。在每次进行重大编辑(TargetFile)之前执行此分析。
确定 TargetFile 导出或定义了哪些内容(类、函数、常量、组件)。
使用 grep_search 查找这些产物在何处被使用。
grep_search(SearchPath=".", Query="import .* from .*TargetFileName")(根据语言调整语法,例如 Rust 使用 use .*::TargetModule)。在修改相关区域之前,运行项目的代码检查器或测试套件,以确保初始状态是干净的。
npm run lint 或 pytest specific/test_file.py使用适当的文件操作工具执行您的编辑。
npm test -- specific/file 或 go test ./package/...当向用户汇报时:
每周安装量
0
代码仓库
首次出现
1970年1月1日
This skill provides a systematic approach to understanding an existing project and ensuring that changes are safe and side-effect-free.
Before making changes, establish a mental map of the project.
list_dir on the root directory.README.md, CONTRIBUTING.md, AGENTS.md, or architecture design docs.Identify the build system and available scripts by reading the manifest file specific to the language:
package.json (Look for scripts, )广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
build.gradledependenciespyproject.toml, requirements.txt, or setup.pygo.mod, MakefileCargo.tomlpom.xml (Maven) or build.gradle (Gradle)Goal : specific commands for building , testing , and linting.
tsconfig.json, webpack.config.js) to understand import aliases (e.g., @/components)..eslintrc, .pylintrc) if available.Perform this analysis before every significant edit (TargetFile).
Determine what the TargetFile exports or defines (Classes, Functions, Constants, Components).
Use grep_search to find where these artifacts are used.
grep_search(SearchPath=".", Query="import .* from .*TargetFileName") (Adjust syntax for language, e.g., use .*::TargetModule for Rust).Run the project's linter or test suite for the relevant area to ensure a clean state before you touch it.
npm run lint or pytest specific/test_file.pyPerform your edits using the appropriate file manipulation tools.
npm test -- specific/file or go test ./package/...When reporting back to the user:
Weekly Installs
0
Repository
First Seen
Jan 1, 1970
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
136,300 周安装