From tytos-standards
Scan the current project for Tytos standards violations and generate a compliance report
npx claudepluginhub ke-netizen-oops/tytos-standardsThis skill is limited to using the following tools:
Scan the current project for Tytos team standards violations across 7 categories. Generate a structured report with severity levels and suggested fixes.
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.
Scan the current project for Tytos team standards violations across 7 categories. Generate a structured report with severity levels and suggested fixes.
CLAUDE.md exists in the project rootSearch for non-approved auth packages. Use Grep with these patterns in *.ts, *.tsx, *.js files, excluding node_modules/:
| Pattern | What It Detects |
|---|---|
(import|require).*next-auth | NextAuth usage |
(import|require).*@auth/ | Auth.js usage |
(import|require).*jsonwebtoken | Manual JWT |
(import|require).*jose | Manual JWT via jose |
(import|require).*passport | Passport.js |
jwt\.sign|jwt\.verify|jwt\.decode | Manual JWT operations |
Also check package.json for these packages in dependencies/devDependencies.
Severity: CRITICAL for any auth violation found.
Search for hardcoded mock data patterns. Use Grep in *.ts, *.tsx files, EXCLUDING test files (*.test.*, *.spec.*, __tests__/, __mocks__/, fixtures/, *.stories.*, prisma/seed.*):
| Pattern | What It Detects |
|---|---|
(const|let|var)\s+(mock|stub|dummy|fake|placeholder|sample)\w*\s*[:=]\s*[\[\{] | Hardcoded mock data |
Catch blocks containing return [... or return { with literal data | Fallback data masking errors |
Severity: HIGH for mock data in source files.
Search in src/**/*.tsx for exported components that should come from HeroUI/shadcn:
| Pattern | What It Detects |
|---|---|
export.*function (Button|Modal|Card|Input|Select|Dialog|Table|Tabs|Dropdown) | Custom UI primitive |
export const (Button|Modal|Card|Input|Select|Dialog|Table|Tabs|Dropdown) | Custom UI primitive |
False positive check: For each match, read the file and check if it imports from @heroui/ or @/components/ui/ (shadcn convention). If it does, it's an acceptable wrapper — not a violation.
Severity: HIGH for custom components without HeroUI/shadcn imports.
Dockerfile in project rootdocker-compose.yml or docker-compose.yaml in project rootFROM.*AS) — warn if single-stage**/migrations/**/*.sqlINSERT\s+INTO in each migration fileRead package.json and check:
next-auth, @auth/core, jsonwebtoken, jose, passport in dependencies? → CRITICAL@supabase/supabase-js missing from dependencies? → HIGH warning@heroui/react missing from dependencies? → MEDIUM warningprisma missing from devDependencies? → MEDIUM warningdb:generate, db:migrate, db:seed)? → LOW if missing.claude/settings.json exists with hooks configured.claude/rules/ directory exists with rule files.claude/hooks/ directory exists with hook scriptsOutput the report in this format:
## Tytos Standards Audit Report
### Summary
- Total violations: N
- CRITICAL: n | HIGH: n | MEDIUM: n | LOW: n
### CRITICAL Violations
- [CATEGORY] file:line — description
→ Fix: suggestion
### HIGH Violations
- [CATEGORY] file:line — description
→ Fix: suggestion
### MEDIUM Violations
...
### LOW Violations
...
### Passing Checks
✓ [list of categories with no violations]
### Next Steps
- Run `/fix-standards` to auto-fix safe violations
- Manual review needed for: [list items requiring human judgment]