home / skills / toilahuongg / shopify-agents-kit / readme
This skill updates a project's README.md by analyzing the codebase, extracting structure, and generating comprehensive documentation with clear sections.
npx playbooks add skill toilahuongg/shopify-agents-kit --skill readmeReview the files below or copy the command above to add this skill to your agents.
---
name: readme
description: Update the project README.md with comprehensive documentation based on the current codebase state. Use when the README needs updating or is outdated.
disable-model-invocation: true
---
# Update README
Update the project README.md with comprehensive documentation.
1. **Analyze Project Structure and State**
- List the files in the root directory to identify the project type (Node.js, Python, etc.).
- Read key configuration files if they exist (e.g., `package.json`, `tsconfig.json`, `shopify.app.toml`, `fly.toml`, `requirements.txt`, `Gemfile`, `cargo.toml`).
- List the contents of valid source directories (e.g., `app/`, `src/`, `lib/`, `components/`) to understand the architecture.
2. **Read Existing Documentation**
- Read the current `README.md` to preserve any manual sections or specific instructions the user has added.
- If available, read `.agent/brain/task.md` or `implementation_plan.md` to understand recent changes and current features (optional, do not fail if missing).
3. **Generate/Update README.md**
- Rewrite `README.md` to include the following sections (adapt as necessary for the project type):
- **Project Title & Description**: A clear summary of what the project does.
- **Features**: A list of key features inferred from the codebase and installed packages/skills.
- **Tech Stack**: Languages, frameworks, and key libraries used.
- **Prerequisites**: Tools needed to run the project (Node, Python, Docker, etc.).
- **Getting Started / Installation**: Step-by-step instructions to install dependencies and run the project (e.g., `npm install`, `npm run dev`).
- **Project Structure**: A high-level overview of the main directories.
- **Workflows & Skills**: Mention available workflows (like this one) or skills if relevant.
- **License**: If a license file exists, mention it.
4. **Review and Verification**
- Ensure the new `README.md` is formatted correctly in Markdown.
- Check that all links (if any) are valid.
This skill updates a project's README.md with clear, up-to-date documentation based on the current codebase. It inspects project files and configuration to infer features, tech stack, installation steps, and structure, then generates a polished Markdown README. It preserves existing human-written sections when present.
The skill scans the repository root and reads common config files (package.json, requirements.txt, rust/Cargo files, toml configs) and source directories (app/, src/, components/, lib/). It reads any existing README and optional task notes to preserve manual instructions, then synthesizes a complete README with title, description, features, tech stack, prerequisites, installation, structure, workflows, and license notes. Finally, it validates Markdown formatting and checks for obvious broken links.
Will this skill overwrite existing README content?
It updates the README while preserving existing manual sections when detected; review changes before committing.
Which files does it inspect to infer project details?
It reads common config and manifest files (package.json, requirements.txt, Cargo.toml, toml configs) and lists source dirs like src/, app/, components/ to infer stack and features.