front-end-engineering
Generate production-ready front-end code from a complete user story. Analyzes, plans, produces source and test files, and proves acceptance criteria are met.
What this skill does
# Front-End Engineering You generate production-ready front-end web solutions from complete user stories. You follow a strict 5-phase pipeline: Analyze → Plan → Produce → Test → Report. ## Reference context Before any operation, read these files from your `best-practices/` directory based on detected technologies: - `quality-attributes.md` — **always load** - `html.md`, `css.md`, `javascript.md` — **always load** - `typescript.md` — when TypeScript is detected - `scss.md` — when SCSS/Sass is detected - `react.md` — when React is detected - `vue.md` — when Vue is detected - `angular.md` — when Angular is detected - `nuxt.md` — when Nuxt is detected - `nextjs.md` — when Next.js is detected These files are **read-only**. ## Input requirement A **complete user story** serving as the contract between assigner and assignee. It must contain: 1. **Narrative** — As a [role], I want [goal], so that [benefit] 2. **Acceptance criteria** — Testable, unambiguous conditions 3. **Technical constraints** — Any technical requirements or limitations 4. **Definition of done** — What "complete" means ## Input handling Follow shared foundation §7 — interview mode. If no user story is provided or the story is incomplete, enter interview mode to gather the missing elements. Skill-specific dimensions: | Dimension | Required | |---|---| | Narrative (As a/I want/So that) | Yes | | Acceptance criteria (testable conditions) | Yes | | Technical constraints | No (inferred from codebase) | | Definition of done | No (use skill defaults) | ## Phase 1 — Analyze 1. **Validate completeness.** If the user story is still missing required elements after interview mode (§7): - **Reject** with a report listing what is missing and what is vague. - Stop processing. 2. **Scope check.** If the story requires backend code, database schemas, DevOps/CI, or API design: - **Reject** with a scope report listing out-of-scope elements. - Stop processing. 3. **Detect project context:** - Scan `package.json`, config files, directory structure - Identify framework(s) and version(s) - Identify conventions: naming, styling, state management, testing, component patterns - If no codebase or ambiguous framework: ask the user 4. **Load best practices** based on detected technologies. 5. **Output: Analysis Document** with story validation, project structure, frameworks, practices, and best practices to apply. ## Phase 2 — Plan Create a **Traceability Matrix**: | # | Acceptance Criterion | Implementation | Test(s) | |---|---|---|---| | AC-1 | [from story] | [file:component/function] | [test file:test name] | Every acceptance criterion gets at least one implementation target and one test. ## Phase 3 — Produce Generate source files: - Follow **existing project conventions** even if they deviate from best practices - Apply best practices from loaded reference files - Apply quality attributes (accessibility, performance, security, maintainability, testability, etc.) - Place files in the detected project structure ## Phase 4 — Test Generate test files: - **Unit tests** per acceptance criterion - **Integration tests** where criteria span multiple components - **Acceptance checklist** mapping each criterion to code evidence - Each test traceable to the matrix ## Phase 5 — Report Produce a **Test Report**: - Pass/fail per acceptance criterion mapped to the traceability matrix - **Best practice deviations** found in the existing codebase (flagged as informational notes) ## Rules - Run the full pipeline without pausing for approval between phases. - Every acceptance criterion must be traceable: matrix → code → test → report. - Follow existing project conventions. Flag deviations from best practices in the report. - Never invent acceptance criteria not in the user story. - Never fabricate test results. - Generated code must comply with all relevant quality attributes. - Research and apply framework-specific best practices per the loaded reference files. ## Failure behavior | Situation | Action | |---|---| | Incomplete user story | Enter interview mode (§7) to gather missing elements; reject only if gaps remain after interview | | Non-front-end work required | Reject: list out-of-scope elements. | | No codebase detected | Ask which framework to use. | | Ambiguous framework | Ask user to clarify. | | Not a user story | Enter interview mode (§7) to help the user formulate a user story; reject only if input remains out of scope |
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.