mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-11 21:57:14 +03:00
New commands:
- /teach-impeccable: One-time setup that gathers UX-focused design
context (explores codebase first, then asks targeted questions)
- /review: UX design review evaluating hierarchy, clarity, emotional
resonance (complements technical /audit)
Build system improvements:
- Dynamic {{model}}, {{ask_instruction}}, {{config_file}} placeholders
per provider (Claude/Gemini/GPT/the model)
- context: fork support for Claude Code sub-agents (audit, extract)
- Skill reference auto-added to design commands
Skill refinements:
- Merged Design Thinking and Context Awareness sections
- Removed redundant patterns and technical questions
- More direct feedback guidance (radical candor)
Website updates:
- 17 commands (was 16)
- Review demo showing UX issues (HIERARCHY, NO PRIMARY, DEAD END)
- teach-impeccable in System group of periodic table
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
19 lines
654 B
JavaScript
19 lines
654 B
JavaScript
import { join, dirname } from "path";
|
|
import { fileURLToPath } from "url";
|
|
import { readPatterns } from "../scripts/lib/utils.js";
|
|
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = dirname(__filename);
|
|
const PROJECT_ROOT = join(__dirname, "..");
|
|
|
|
export default function handler(req, res) {
|
|
try {
|
|
// Extract patterns from SKILL.md using the shared utility
|
|
const { patterns, antipatterns } = readPatterns(PROJECT_ROOT);
|
|
res.status(200).json({ patterns, antipatterns });
|
|
} catch (error) {
|
|
console.error("Error in /api/patterns:", error);
|
|
res.status(500).json({ error: error.message, stack: error.stack });
|
|
}
|
|
}
|