Loading...
Loading...
Guide for creating comprehensive project setup README.md files. Use when users want to document dotfiles, development environments, libraries, frameworks, CLI tools, or any project requiring installation and setup instructions. Triggers on requests like "create a setup guide", "write installation docs", "document my project", or "make a comprehensive README".
npx skill4agent add heyitsiveen/skills project-setup-guide| Type | Examples | Key Sections |
|---|---|---|
| Dotfiles | Shell configs, vim, tmux, git | Tool configs, aliases, keybindings |
| CLI Tools | Scripts, utilities, automation | Installation, usage, options |
| Libraries | npm packages, Python modules | API reference, examples |
| Applications | Web apps, mobile apps, services | Environment setup, deployment |
| Frameworks | Starter kits, boilerplates | Configuration, extending |
| Dev Environments | Docker setups, Nix configs | Prerequisites, bootstrapping |
Actions:
1. List all configuration files and their purposes
2. Identify dependencies (package.json, requirements.txt, Brewfile, etc.)
3. Find existing documentation (README, docs/, wiki)
4. Note installation scripts or makefiles
5. Check for environment variables or secrets| If Project Has... | Include Section |
|---|---|
| Multiple tools/configs | Repository Structure |
| CLI commands | Command Reference |
| Configuration options | Configuration Guide |
| Shell customizations | Aliases & Functions |
| Keyboard shortcuts | Keybindings |
| API surface | API Reference |
| Visual components | Screenshots |
| Breaking changes | Migration Guide |
| Community | Contributing Guide |
# Project Name
> One-line description of what this project does
[](license-url)
[](version-url)## Features at a Glance
| Category | Features |
|----------|----------|
| **Shell** | Zsh with Powerlevel10k, syntax highlighting, autosuggestions |
| **Editor** | Neovim with LSP, Telescope, Treesitter |
| **Terminal** | Tmux with custom keybindings, Alacritty config |## Repository Structure
\`\`\`
project-root/
├── config/ # Application configurations
│ ├── app.config.ts
│ └── database.ts
├── src/ # Source code
│ ├── components/
│ └── utils/
├── scripts/ # Automation scripts
│ └── setup.sh
└── README.md
\`\`\`## Installation
### Quick Start (Recommended)
\`\`\`bash
# One-line installation
curl -fsSL https://example.com/install.sh | bash
\`\`\`
### Manual Installation
<details>
<summary>Click to expand manual steps</summary>
1. Clone the repository:
\`\`\`bash
git clone https://github.com/user/project.git
cd project
\`\`\`
2. Install dependencies:
\`\`\`bash
npm install
\`\`\`
3. Configure environment:
\`\`\`bash
cp .env.example .env
# Edit .env with your values
\`\`\`
</details>## Prerequisites
| Requirement | Version | Check Command |
|-------------|---------|---------------|
| Node.js | ≥18.0 | `node --version` |
| npm | ≥9.0 | `npm --version` |
| Git | ≥2.0 | `git --version` |## Environment Variables
| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| `DATABASE_URL` | Yes | - | PostgreSQL connection string |
| `API_KEY` | Yes | - | External service API key |
| `DEBUG` | No | `false` | Enable debug logging |## Commands
| Command | Description |
|---------|-------------|
| `npm start` | Start development server |
| `npm test` | Run test suite |
| `npm run build` | Build for production |
| `npm run lint` | Check code style |## Usage
### Basic Example
\`\`\`typescript
import { something } from 'project';
const result = something({
option: 'value'
});
\`\`\`
### Advanced Example
\`\`\`typescript
// More complex usage with all options
import { something, configure } from 'project';
configure({
debug: true,
timeout: 5000
});
const result = await something({
option: 'value',
callback: (data) => console.log(data)
});
\`\`\`## Configuration
Configuration file: `config.json`
\`\`\`json
{
"setting1": "value",
"setting2": true,
"nested": {
"option": "value"
}
}
\`\`\`
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| `setting1` | string | `"default"` | Description of setting1 |
| `setting2` | boolean | `false` | Description of setting2 |## Troubleshooting
<details>
<summary><strong>Error: Module not found</strong></summary>
**Cause:** Dependencies not installed properly.
**Solution:**
\`\`\`bash
rm -rf node_modules
npm install
\`\`\`
</details>
<details>
<summary><strong>Permission denied</strong></summary>
**Cause:** Script lacks execute permission.
**Solution:**
\`\`\`bash
chmod +x scripts/setup.sh
\`\`\`
</details>## Updating
\`\`\`bash
# Pull latest changes
git pull origin main
# Update dependencies
npm install
# Run migrations (if applicable)
npm run migrate
\`\`\`## Uninstallation
\`\`\`bash
# Remove installed files
npm uninstall -g project-name
# Clean up configuration (optional)
rm -rf ~/.config/project-name
\`\`\`## Tools Included
### Zsh
- Theme: Powerlevel10k
- Plugins: syntax-highlighting, autosuggestions, fzf
- Custom aliases: [see below](#shell-aliases)
### Neovim
- Plugin manager: lazy.nvim
- LSP servers: typescript, lua, python
- Keybindings: [see below](#vim-keybindings)
## Shell Aliases
| Alias | Expansion | Description |
|-------|-----------|-------------|
| `ll` | `ls -la` | Long list with hidden |
| `..` | `cd ..` | Go up one directory |
| `g` | `git` | Git shorthand |
## Keybindings
### Tmux
| Key | Action |
|-----|--------|
| `Ctrl-a` | Prefix key |
| `Prefix + \|` | Vertical split |
| `Prefix + -` | Horizontal split |## Installation
\`\`\`bash
npm install package-name
# or
yarn add package-name
# or
pnpm add package-name
\`\`\`
## Quick Start
\`\`\`typescript
import { mainFunction } from 'package-name';
const result = mainFunction('input');
\`\`\`
## API Reference
### `mainFunction(input, options?)`
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `input` | `string` | Yes | The input to process |
| `options` | `Options` | No | Configuration options |
**Returns:** `Result`
**Example:**
\`\`\`typescript
const result = mainFunction('hello', { uppercase: true });
// => 'HELLO'
\`\`\`## Getting Started
### Prerequisites
- Node.js 18+
- PostgreSQL 14+
- Redis (optional, for caching)
### Development Setup
1. Clone and install:
\`\`\`bash
git clone https://github.com/user/app.git
cd app
npm install
\`\`\`
2. Set up database:
\`\`\`bash
createdb myapp_dev
npm run db:migrate
npm run db:seed
\`\`\`
3. Configure environment:
\`\`\`bash
cp .env.example .env
\`\`\`
4. Start development server:
\`\`\`bash
npm run dev
\`\`\`
### Production Deployment
See [Deployment Guide](docs/deployment.md)bashtypescriptjavascript<details><details>
<summary>Click to expand</summary>
Content here...
</details>[](LICENSE)
[](https://npmjs.com/package/package)## Table of Contents
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Configuration](#configuration)
- [Contributing](#contributing)
- [License](#license)