project-handoff
3
总安装量
3
周安装量
#62270
全站排名
安装命令
npx skills add https://github.com/saccoai/agent-skills --skill project-handoff
Agent 安装分布
mcpjam
3
claude-code
3
replit
3
junie
3
windsurf
3
zencoder
3
Skill 文档
This skill generates all documentation needed to hand off a completed project to a client or their internal team. It reads the codebase, environment config, and deployment setup to produce a comprehensive handoff package.
The user provides: the project directory and optionally the client’s technical level (non-technical, developer, DevOps).
Handoff Package Contents
1. Project Overview (handoff/README.md)
# {Project Name} â Handoff Documentation
## Quick Start
git clone {repo-url}
{package-manager} install
cp .env.example .env.local # fill in values
{package-manager} dev # runs on localhost:3000
## Architecture
- Framework: {Next.js 16 / etc.}
- Styling: {Tailwind CSS v4 / etc.}
- Deployment: {Vercel / etc.}
- Domain: {domain.com}
## Repository
- URL: {repo-url}
- Branch strategy: main (production), develop (staging)
- CI/CD: {auto-deploy on push to main via Vercel}
2. Environment Variables (handoff/environment.md)
Auto-generated from .env.example and codebase analysis:
# Environment Variables
## Required
| Variable | Description | Where to get it | Example |
|----------|------------|-----------------|---------|
| SMTP_HOST | Email server hostname | Your email provider | smtp.gmail.com |
| SMTP_PORT | Email server port | Your email provider | 587 |
| SMTP_USER | Email account username | Your email provider | user@domain.com |
| SMTP_PASS | Email account password | Your email provider | â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢ |
## Optional
| Variable | Description | Default |
|----------|------------|---------|
| NEXT_PUBLIC_GA_ID | Google Analytics ID | (none â analytics disabled) |
## Setting Variables
### Vercel
1. Go to vercel.com â Project â Settings â Environment Variables
2. Add each variable for Production, Preview, and Development
3. Redeploy after adding variables
### .env.local (local development)
Copy .env.example to .env.local and fill in values.
Never commit .env.local to git.
3. Deployment Guide (handoff/deployment.md)
# Deployment
## Production (Vercel)
- Auto-deploys when you push to `main` branch
- URL: {production-url}
- Dashboard: vercel.com/team/{team}/project/{project}
## How to Deploy
1. Make changes on a feature branch
2. Create a Pull Request to `main`
3. Vercel creates a preview deployment automatically
4. Review the preview URL
5. Merge the PR â auto-deploys to production
## Manual Deploy
npx vercel --prod
## Rollback
1. Go to Vercel Dashboard â Deployments
2. Find the last working deployment
3. Click â¢â¢â¢ â Promote to Production
## Custom Domain
- Domain: {domain.com}
- DNS: {provider}
- Records configured: {A record / CNAME}
- SSL: Automatic via Vercel
4. Content Management (handoff/content.md)
How to update content without a developer:
# Updating Content
## Text Content
Content is stored in: src/data/*.ts
### To update text:
1. Open the relevant file in src/data/
2. Find the text you want to change
3. Edit the text between the quotes
4. Commit and push â auto-deploys
### File locations:
| Content | File |
|---------|------|
| Book list | src/data/books.ts |
| Articles | src/data/articles.ts |
| Navigation | src/data/navigation.ts |
| {etc.} | {etc.} |
## Images
- Location: public/images/
- Formats: Use .webp or .jpg (not .png for photos)
- Sizes: Keep under 500KB per image
- After adding: reference in the relevant data file
## Adding a New Page
1. Create src/app/{page-name}/page.tsx
2. Add navigation link in src/data/navigation.ts
3. Update sitemap in src/app/sitemap.ts
## Adding a New Article/Publication
1. Open src/data/{articles|books}.ts
2. Add a new entry following the existing pattern
3. Add any images to public/images/
4. Commit and push
5. Architecture Overview (handoff/architecture.md)
Auto-generated from codebase analysis:
# Architecture
## Directory Structure
src/
âââ app/ # Pages (file-based routing)
â âââ page.tsx # Homepage (/)
â âââ about/page.tsx # About page (/about)
â âââ api/ # API routes
â â âââ contact/route.ts # Contact form endpoint
â âââ layout.tsx # Root layout (header, footer)
âââ components/
â âââ layout/ # Header, footer, nav
â âââ sections/ # Reusable page sections
â âââ ui/ # shadcn/ui components
âââ data/ # Content data files
âââ lib/ # Utility functions
âââ styles/ # Global CSS
## Key Files
| File | Purpose |
|------|---------|
| src/app/layout.tsx | Root layout â wraps every page |
| src/app/globals.css | Global styles, CSS variables, fonts |
| next.config.ts | Redirects, image domains, config |
| tailwind.config.ts | Theme customization |
## Data Flow
1. Content lives in src/data/*.ts as typed TypeScript objects
2. Pages import data and render it
3. Contact form: client â /api/contact â Nodemailer â SMTP
4. No database â all content is in code
## Dependencies
| Package | Version | Purpose |
|---------|---------|---------|
| next | {version} | React framework |
| tailwindcss | {version} | Styling |
| framer-motion | {version} | Animations |
| nodemailer | {version} | Email sending |
| {etc.} | {etc.} | {etc.} |
6. Maintenance Checklist (handoff/maintenance.md)
# Maintenance
## Regular Tasks
| Task | Frequency | How |
|------|-----------|-----|
| Update dependencies | Monthly | `npm outdated` then `npm update` |
| Check for security vulns | Monthly | `npm audit` |
| Review Lighthouse scores | Quarterly | Run audit on production |
| Renew SSL certificate | Automatic | Managed by Vercel |
| Check error logs | Weekly | Vercel Dashboard â Logs |
| Backup content | Before major changes | `git tag backup-{date}` |
## Updating Dependencies
npm outdated # see what's outdated
npm update # update minor/patch versions
npx npm-check-updates # check for major version updates
## If Something Breaks
1. Check Vercel deployment logs: Dashboard â Deployments â latest
2. Check browser console for errors
3. Rollback to last working deployment (see deployment.md)
4. Contact: {developer contact info}
## Security
- Never commit .env files (they're in .gitignore)
- Rotate SMTP credentials periodically
- Keep dependencies updated (security patches)
- Review Vercel access permissions quarterly
7. Troubleshooting (handoff/troubleshooting.md)
# Troubleshooting
## Common Issues
### Build fails after content change
- Check for unclosed quotes or brackets in data files
- TypeScript will show the exact line with the error
- Fix: look at the Vercel build logs for the error message
### Contact form not sending emails
- Verify SMTP environment variables in Vercel
- Check Vercel Function logs for errors
- Test with a simple email first
- Common: SMTP password expired or 2FA blocking
### Images not showing
- Check file exists in public/images/
- Check filename matches exactly (case-sensitive)
- Verify image path in the data file starts with /images/
### Site looks different on mobile
- Clear browser cache (Cmd+Shift+R)
- Check if Vercel preview deployment is stale
- Verify changes are on the `main` branch
### Slow page load
- Run Lighthouse audit
- Check image sizes (should be < 500KB each)
- Look for unoptimized images (use WebP format)
Generation Process
The skill reads the actual codebase to generate accurate documentation:
- Scan
package.jsonâ detect framework, dependencies, scripts - Scan
.env.exampleâ document all environment variables - Scan
src/directory â map file structure and data flow - Scan deployment config â Vercel, Netlify, Docker, etc.
- Scan
next.config.*â redirects, image domains, etc. - Read git remote â repository URL and branch info
- Generate all handoff documents with accurate, project-specific content
Output
All files are saved to handoff/ directory:
handoff/
âââ README.md # Quick start and overview
âââ environment.md # Environment variables guide
âââ deployment.md # How to deploy and rollback
âââ content.md # How to update content
âââ architecture.md # Technical architecture
âââ maintenance.md # Ongoing maintenance checklist
âââ troubleshooting.md # Common issues and fixes
Customization by Audience
| Audience | Focus | Tone |
|---|---|---|
| Non-technical client | Content updates, what to expect, who to contact | Simple, no jargon |
| Developer | Architecture, code patterns, debugging | Technical, concise |
| DevOps | Deployment, infra, monitoring, env vars | Operational, specific |
Agent Team Integration
In the website-refactor workflow, this skill runs in Phase 6 after deployment. The Lead generates handoff docs as the final deliverable.