From tytos-standards
Auto-fix common Tytos standards violations found by /audit-project
npx claudepluginhub ke-netizen-oops/tytos-standardsThis skill is limited to using the following tools:
Auto-fix common standards violations. Fixes what's safe automatically, generates migration plans for what requires manual intervention.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides MCP server integration in Claude Code plugins via .mcp.json or plugin.json configs for stdio, SSE, HTTP types, enabling external services as tools.
Auto-fix common standards violations. Fixes what's safe automatically, generates migration plans for what requires manual intervention.
First, perform the same checks as /audit-project internally to identify all current violations. Categorize them into auto-fixable vs manual.
If CLAUDE.md is missing from the project root:
~/tytos/standards/ or a sibling directoryproject-template/CLAUDE.md and replace [PROJECT_NAME] with the actual project name from package.jsonIf CLAUDE.md exists but is missing the "Tytos Team Standards" section:
If .claude/settings.json is missing:
.claude/settings.json with the standard hooks configuration and permission deny rulesIf .claude/rules/ is missing:
If .claude/hooks/ is missing:
If Dockerfile is missing:
If docker-compose.yml is missing:
If .dockerignore is missing:
node_modules, .next, .git, .env.localIf prisma/seed.ts is missing but prisma/schema.prisma exists:
prisma.seed config to package.json if missingdb:seed script to package.json if missingCheck package.json for missing standard scripts and add them:
db:generate, db:migrate, db:seed, db:studio, db:push, db:migrate:deploy, postinstallIf NextAuth or custom auth packages are detected:
## Auth Migration Plan
### Files to Migrate
1. `src/app/api/auth/[...nextauth]/route.ts` → Delete. Replace with Supabase middleware in `src/middleware.ts`
2. `src/lib/auth.ts` → Replace with `src/lib/supabase/server.ts` using createServerClient
3. `src/components/LoginForm.tsx` → Replace NextAuth signIn() with supabase.auth.signInWithPassword()
...
### Migration Steps
1. Install @supabase/ssr and @supabase/supabase-js
2. Set up Supabase environment variables
3. Create Supabase client/server/middleware files
4. Migrate each file listed above
5. Remove next-auth from package.json
6. Run /audit-project to verify
If custom UI components are detected (components not importing from HeroUI/Radix):
## UI Component Migration Plan
### Components to Replace
1. `src/components/Button.tsx` → `import { Button } from "@heroui/react"`
- Review custom props and map to HeroUI's Button props
- HeroUI Button supports: color, variant, size, isLoading, isDisabled, startContent, endContent
2. `src/components/Modal.tsx` → `import { Modal, ModalContent, ModalHeader, ModalBody, ModalFooter } from "@heroui/react"`
...
If mock/stub data is found in source files:
Execute all auto-fixes identified in Step 2. For each fix:
Re-run the audit checks and output:
## Fix Standards Report
### Auto-Fixed
✓ [list of issues that were automatically resolved]
### Migration Plans Generated
⚠ [list of issues with migration plans — requires manual work]
→ See generated plans above
### Remaining Issues
✗ [list of issues that could not be auto-fixed and have no plan]
### Verification
Run `/audit-project` to see the updated compliance status.