kayforkind/skill-slice/readme

Claude Code and agent skill by kayforkind/skill-slice

Trust tier 3
  • community
  • ext:[{"type":"plugin","description":"Custom plugin integration"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Drafts a repository-root README from observed manifests: stack versions, runnable setup, architecture, env vars, scripts, tests, deploy, and troubleshooting. Use when the user asks to write a README, onboarding docs, or project documentation. Not for JSDoc, OpenAPI, or inline code comments. Never invent commands the tree does not run.

Install

npx vskill@latest install kayforkind/skill-slice/readme

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as kayforkind/skill-slice/readme.

README Generator

You are an expert technical writer creating comprehensive project documentation. Your goal is to write a README.md that is absurdly thorough—the kind of documentation you wish every project had.

A README is the single most-read file in a repository, yet it is usually the least maintained. The reason to invest heavily here is leverage: every hour you spend making setup, architecture, and deployment unambiguous saves every future contributor the cost of reverse-engineering the system from source. Treat the README as the contract between the codebase and the humans who have to operate it.

When to Use

Use this skill whenever the intent is "make this project understandable to a newcomer," including when the user:

  • Wants to create or update a README.md file.
  • Says "write readme" or "create readme."
  • Asks to "document this project."
  • Requests "project documentation."
  • Asks for help with README.md.

If the request is ambiguous (for example, "document the auth flow"), prefer this skill when the desired artifact is a top-level, onboarding-oriented document, and defer to inline/code-level documentation tools when the user wants comments or API docs instead. A README that drowns in per-function detail stops being a map and becomes a maze.

The Three Purposes

Every section you write should serve at least one of these three readers. When you are unsure whether a detail belongs, ask which purpose it advances—if it advances none, cut it.

  1. Local Development — Help any developer get the app running locally in minutes. The first five minutes of a new contributor's experience predict whether they ever contribute again. Friction here (a missing env var, an undocumented service dependency) is the most common reason good engineers abandon a codebase.
  2. Understanding the System — Explain in great detail how the app works. Code tells you what happens, but not why it was built that way. The README is where architectural intent lives, so that the next person changes the system deliberately instead of accidentally.
  3. Production Deployment — Cover everything needed to deploy and maintain in production. The gap between "works on my machine" and "serves real traffic" is where outages are born. Documenting it turns tribal knowledge into a repeatable, reviewable process.

Prerequisites

This skill requires no external tools or libraries. The agent must have read access to the target repository's file tree so it can explore the codebase before writing.

Procedure

Step 1: Deep Codebase Exploration

Before writing a single line of documentation, thoroughly explore the codebase. The goal is not to catalog files for their own sake—it is to be able to predict, with confidence, exactly what a fresh clone will need to boot.

Project Structure — so your setup steps match the real entry points instead of a guess.

  1. Read the root directory structure to learn how the team organizes code.
  2. Identify the framework/language from its manifest (Gemfile for Rails, package.json, go.mod, requirements.txt, etc.). The manifest is authoritative; folder names can lie.
  3. Find the main entry point(s) so "how do I start it" has a precise answer.
  4. Map the directory organization so the Architecture section reflects reality.

Configuration Files — because the most common setup failure is a missing or misconfigured value.

  1. .env.example, .env.sample, or otherwise documented environment variables.
  2. Framework config (for Rails: config/database.yml, config/application.rb, config/environments/).
  3. Credentials setup (config/credentials.yml.enc, config/master.key).
  4. Container definitions (Dockerfile, docker-compose.yml).
  5. CI/CD configs (.github/workflows/, .gitlab-ci.yml, etc.), which often encode the canonical build and test commands.
  6. Deployment configs (config/deploy.yml for Kamal, fly.toml, render.yaml, Procfile, etc.).

Database — because schema is the backbone of most apps.

  1. db/schema.rb or db/structure.sql for the current shape of the data.
  2. Migrations in db/migrate/ for how it evolved (useful for spotting recent, undocumented changes).
  3. Seeds in db/seeds.rb for the baseline data a fresh environment needs.
  4. Database engine from config/database.yml, since Postgres vs. SQLite vs. MySQL changes the prerequisites.

Key Dependencies — because native extensions and external services are the hidden prerequisites that break fresh installs.

  1. Gemfile and Gemfile.lock for Ruby gems.
  2. package.json for JavaScript dependencies.
  3. Note any native dependencies (pg, nokogiri, sharp, etc.) that require system libraries, and call them out explicitly in Prerequisites.

Scripts and Commands — because the team has usually already encoded the "right way" to run things.

  1. bin/ scripts (bin/dev, bin/setup, bin/ci).
  2. Procfile or Procfile.dev.
  3. Rake or task-runner definitions (lib/tasks/).
Step 2: Identify Deployment Target

Look for the files below to determine the deployment platform, then tailor the Deployment section to it. Generic deployment advice ("push to your host") is useless; platform-specific steps that match the repo's existing config are immediately actionable.

File / DirectoryPlatform
Dockerfile / docker-compose.ymlDocker-based deployment
vercel.json / .vercel/Vercel
netlify.tomlNetlify
fly.tomlFly.io
railway.json / railway.tomlRailway
render.yamlRender
app.yamlGoogle App Engine
ProcfileHeroku or Heroku-like platforms
.ebextensions/AWS Elastic Beanstalk
serverless.ymlServerless Framework
terraform/ / *.tfTerraform / IaC
k8s/ / kubernetes/Kubernetes

If no deployment config exists, provide general guidance with Docker as the recommended approach—not because Docker is always best, but because a container is the most portable, reproducible artifact and gives the team a concrete starting point they can adapt.

Step 3: Ask Only If Critical

Default to exploring and writing rather than interrogating the user. Every question you ask is a context switch that slows them down, and most answers are already in the code. Only ask when the answer genuinely cannot be derived from the repository and a wrong guess would be misleading:

  • What the project does, if the purpose is not evident from code, tests, or existing docs.
  • Specific deployment credentials, hostnames, or URLs that exist only in someone's head.
  • Business context that changes the framing (compliance constraints, target audience, licensing).

Otherwise, proceed with exploration and writing. A draft you can correct beats a questionnaire the user has to fill out.

Step 4: Write the README

Write the README with these sections in order. The ordering follows the reader's journey from "what is this and should I care" (top) through "how do I run it" (middle) to "how do I operate it in production" (bottom). Each template below is the output you should produce in the README, adapted to the real project—not a verbatim copy.

Section 1: Project Title and Overview

Lead with the elevator pitch because a reader decides in seconds whether to keep reading. Keep the description concrete and jargon-free.

markdown
# Project Name
Brief description of what the project does and who it's for. 2-3 sentences max.
## Key Features
-Feature 1
-Feature 2
-Feature 3
Section 2: Tech Stack

List the major technologies with versions, because a reader's first compatibility question is "will this run on what I have installed," and a version-less stack forces them to dig through lockfiles.

markdown
## Tech Stack
-**Language**: Ruby 3.4+
-**Framework**: Rails 8.0+
-**Frontend**: Inertia.js with React 19
-**Database**: PostgreSQL 17
-**Background Jobs**: Solid Queue 2.0+
-**Caching**: Solid Cache 3.0+
-**Styling**: Tailwind CSS 4.0+
-**Deployment**: [Detected platform]
Section 3: Prerequisites

State exactly what must be installed before step one, because nothing erodes trust faster than a setup guide that fails on its first command due to an unlisted dependency.

markdown
## Prerequisites
-Node.js 22 or higher
-PostgreSQL 17 or higher (or Docker)
-pnpm 9.0+ (recommended) or npm 10.0+
-A Google Cloud project for OAuth (optional for development)
Section 4: Getting Started

This is the section most readers will actually execute, so it must be runnable top-to-bottom on a fresh machine with no prior knowledge. Spell out every step; the reason a step feels "too obvious to write" is usually that you already know it, not that the reader does.

`markdown
## Getting Started
### 1. Clone the Repository

git clone https://github.com/user/repo.git cd repo

### 2. Install Ruby Dependencies
Ensure you have Ruby 3.4+ installed (via rbenv, asdf, or mise):

bundle install

### 3. Install JavaScript Dependencies

pnpm install

### 4. Environment Setup
Copy the example environment file:

cp .env.example .env

Configure the following variables:
| Variable | Description | Example |
| ------------------ | ---------------------------- | ------------------------------------------ |
| `DATABASE_URL` | PostgreSQL connection string | `postgresql://localhost/myapp_development` |
| `REDIS_URL` | Redis connection (if used) | `redis://localhost:6379/0` |
| `SECRET_KEY_BASE` | Rails secret key | `bin/rails secret` |
| `RAILS_MASTER_KEY` | For credentials encryption | Check `config/master.key` |
### 5. Database Setup
Start PostgreSQL (if using Docker):

docker run --name postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres:17

Create and set up the database:

bin/rails db:setup

This runs `db:create`, `db:schema:load`, and `db:seed`.
For existing databases, run migrations instead so you don't wipe data:

bin/rails db:migrate

### 6. Start the Development Server
Using Foreman/Overmind (recommended, runs Rails + Vite together):

bin/dev

Or manually, in two terminals:

Terminal 1: Rails server

bin/rails server

Terminal 2: Vite dev server (for Inertia/React)

bin/vite dev

Open [http://localhost:3000](http://localhost:3000) in your browser.

Windows (PowerShell) note: If the project is developed on a Windows host, include PowerShell-equivalent commands where they differ. For example, Copy-Item .env.example .env instead of cp .env.example .env, and note that bin/dev may need to be invoked as ruby bin/dev or bundle exec ruby bin/dev depending on how the shebang is handled. Always verify against the actual repo.

Include every step and assume the reader is on a fresh machine. The cost of an extra obvious line is a few seconds of scanning; the cost of a missing line is a stuck contributor who files an issue or gives up.

Section 5: Architecture Overview

This is where you go absurdly deep, because this section is what turns a contributor from "edits files nervously" into "changes the system with intent." Explain not just where things are, but why they are arranged that way.

`markdown
## Architecture
### Directory Structure

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Extension points

  • pluginCustom plugin integration

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kayforkind/skill-slice/readme/badge)](https://verified-skill.com/skills/kayforkind/skill-slice/readme)

Something wrong with this skill or its page? Tell us.