This skill guides safe navigation and modification of an existing codebase, helping onboarding, impact analysis, and risk-aware changes across languages.
npx playbooks add skill agykit/agykit --skill codebase_safety
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, dependencies)pyproject.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 roundup of top Claude Code skills, MCP servers, and AI coding tips.