secret-sauce
4
总安装量
2
周安装量
#48093
全站排名
安装命令
npx skills add https://github.com/co8/cc-plugins --skill secret-sauce
Agent 安装分布
opencode
2
github-copilot
2
claude-code
2
gemini-cli
2
Skill 文档
Secret Sauce
Best practices, rules, and templates extracted from real production projects.
Quick Reference
| Category | Reference File |
|---|---|
| Tech Stack | references/tech-stack.md |
| Project Setup | references/claude-md-template.md |
| Project Tracking | references/project-tracking.md |
| Coding Standards | references/coding-standards.md |
| Centralization | references/centralization-patterns.md |
| Tailwind v4 | references/tailwind-v4.md |
| AI Development | references/ai-flow-patterns.md |
| Data Fetching | references/data-fetching.md |
| Git Workflow | references/git-workflows.md |
| Testing | references/testing-patterns.md |
| Supabase | references/supabase-patterns.md |
| Deployment | references/deployment-patterns.md |
| Browser Tools | references/browser-automation.md |
| Versioning | references/version-management.md |
Framework Rules
| Framework | Rule File |
|---|---|
| TypeScript | rules/typescript.md |
| Next.js | rules/nextjs.md |
| React | rules/react.md |
| Supabase | rules/supabase.md |
| Security | rules/security.md |
Templates
| Template | Purpose |
|---|---|
templates/CLAUDE.md.template |
Project configuration starter |
templates/settings.json.template |
Permission configuration |
templates/project-plan.md.template |
Project planning document |
templates/implementation-plan.md.template |
Technical implementation plan |
templates/code-review.md.template |
Code review summary |
templates/changelog.md.template |
Project changelog |
Usage
Starting a New Project
- Copy
templates/CLAUDE.md.templateto your project root asCLAUDE.md - Customize sections for your stack
- Reference specific rules:
~/.claude/skills/secret-sauce/rules/typescript.md
Setting Up Permissions
- Copy
templates/settings.json.templateto.claude/settings.json - Adjust permissions for your workflow
Project Documentation
Use templates for consistent project documentation:
project-plan.md.templatefor planningimplementation-plan.md.templatefor technical specscode-review.md.templatefor reviews
Key Patterns
CLAUDE.md Structure
Every project CLAUDE.md should include:
- YAML frontmatter (title, status, owner, tags)
- Quick Reference section with key commands
- Active/Pending/Completed projects
- Stack-specific guidelines
- Development patterns
Git Workflow
- Commit format:
<type>(<scope>): <description> - Never commit without confirmation
- Branch naming:
feature/<name>,fix/<name> - PR template with summary and test plan
Centralization Pattern
All configuration in @/config:
import { env, isProduction, getServiceUrl } from '@/config';
Configuration Hierarchy
- Database configuration (system_configuration table)
- Environment variables (.env.local)
- Hardcoded defaults
Secrets (API keys) â .env.local only
Configs (models, URLs) â Database with fallback
Testing Standards
- Target: >90% coverage
- Use Jest with 30s timeout for ML operations
- Add new test directories to test runners
- Security tests required for auth/validation
AI Flow Pattern
- Zod schemas for input/output
- Prompt builder functions
- OpenAI SDK v6 with
zodResponseFormat() - Error handling with Result types
- Server action wrapper
Data Fetching
- Always pass
signalto fetch calls - Use
isAbortError()to handle cancellation - Memoize fetch options to prevent refetches
- Use
usePollingfor dashboards with visibility-aware intervals
Security Checklist
- Strict TypeScript (no
any) - Zod input validation
- Safe property access:
Object.prototype.hasOwnProperty.call() - XSS prevention on all user inputs
- Rate limiting in API routes