KS
Killer-Skills

frontend/technical-spec — how to use frontend/technical-spec how to use frontend/technical-spec, frontend/technical-spec alternative, TypeScript boilerplate for Claude Code, frontend/technical-spec setup guide, environment variable management in React, frontend/technical-spec vs create-react-app, TypeScript-based AI agent development, Claude Code development best practices, frontend/technical-spec install

v1.0.0
GitHub

About this Skill

Perfect for AI Agents like Claude Code needing robust frontend implementation with TypeScript-based React application and secure environment variable management. frontend/technical-spec is a production-ready TypeScript boilerplate for Claude Code with specialized AI agents, following technical design rules for frontend development

Features

TypeScript-based React application implementation
Environment variable management through configuration layer
Proper type safety with build tool's environment variable system
Centrally managed environment variables for security
Architecture patterns selected according to project requirements and scale
Support for `process.env` alternative in browser environments

# Core Topics

shinpr shinpr
[0]
[0]
Updated: 3/6/2026

Quality Score

Top 5%
42
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add shinpr/ai-coding-project-boilerplate/frontend/technical-spec

Agent Capability Analysis

The frontend/technical-spec MCP Server by shinpr is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use frontend/technical-spec, frontend/technical-spec alternative, TypeScript boilerplate for Claude Code.

Ideal Agent Persona

Perfect for AI Agents like Claude Code needing robust frontend implementation with TypeScript-based React application and secure environment variable management.

Core Value

Empowers agents to implement secure and scalable frontend applications using TypeScript and React, with features like centralized environment variable management through configuration layers and proper type safety, leveraging build tool's environment variable system for secure data handling.

Capabilities Granted for frontend/technical-spec MCP Server

Implementing secure environment variable management for AI agent applications
Building scalable TypeScript-based React applications for Claude Code
Ensuring proper type safety in frontend application development
Centrally managing environment variables for multiple AI agent projects

! Prerequisites & Limits

  • Requires TypeScript and React expertise
  • Limited to browser environments due to process.env limitations
  • Dependent on build tool's environment variable system
Project
SKILL.md
4.8 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Technical Design Rules (Frontend)

Basic Technology Stack Policy

TypeScript-based React application implementation. Architecture patterns should be selected according to project requirements and scale.

Environment Variable Management and Security

Environment Variable Management

  • Use build tool's environment variable system: process.env does not work in browser environments
  • Centrally manage environment variables through configuration layer
  • Implement proper type safety with TypeScript
  • Properly implement default value settings and mandatory checks
typescript
1// Build tool environment variables (public values only) 2const config = { 3 apiUrl: import.meta.env.API_URL || 'http://localhost:3000', 4 appName: import.meta.env.APP_NAME || 'My App' 5} 6 7// Does not work in frontend 8const apiUrl = process.env.API_URL

Security (Client-side Constraints)

  • CRITICAL: All frontend code is public and visible in browser
  • Never store secrets client-side: No API keys, tokens, or secrets in environment variables
  • Do not include .env files in Git (same as backend)
  • Prohibit logging of sensitive information (passwords, tokens, personal data)
  • Do not include sensitive information in error messages

Correct Approach for Secrets:

typescript
1// Security risk: API key exposed in browser 2const apiKey = import.meta.env.API_KEY 3const response = await fetch(`https://api.example.com/data?key=${apiKey}`) 4 5// Correct: Backend manages secrets, frontend accesses via proxy 6const response = await fetch('/api/data') // Backend handles API key authentication

Architecture Design

Frontend Architecture Patterns

React Component Architecture:

  • Function Components: Mandatory, class components deprecated
  • Custom Hooks: For logic reuse and dependency injection
  • Component Hierarchy: Atoms -> Molecules -> Organisms -> Templates -> Pages
  • Props-driven: Components receive all necessary data via props
  • Co-location: Place tests, styles, and related files alongside components

State Management Patterns:

  • Local State: useState for component-specific state
  • Context API: For sharing state across component tree (theme, auth, etc.)
  • Custom Hooks: Encapsulate state logic and side effects
  • Server State: React Query or SWR for API data caching

Unified Data Flow Principles

Client-side Data Flow

Maintain consistent data flow throughout the React application:

  • Single Source of Truth: Each piece of state has one authoritative source

    • UI state: Component state or Context
    • Server data: API responses cached in React Query/SWR
    • Form data: Controlled components with React Hook Form
  • Unidirectional Flow: Data flows top-down via props

    API Response -> State -> Props -> Render -> UI
    User Input -> Event Handler -> State Update -> Re-render
    
  • Immutable Updates: Use immutable patterns for state updates

    typescript
    1// Immutable state update 2setUsers(prev => [...prev, newUser]) 3 4// Mutable state update (avoid) 5users.push(newUser) 6setUsers(users)

Type Safety in Data Flow

  • Frontend -> Backend: Props/State (Type Guaranteed) -> API Request (Serialization)
  • Backend -> Frontend: API Response (unknown) -> Type Guard -> State (Type Guaranteed)
typescript
1// Type-safe data flow 2async function fetchUser(id: string): Promise<User> { 3 const response = await fetch(`/api/users/${id}`) 4 const data: unknown = await response.json() 5 6 if (!isUser(data)) { 7 throw new Error('Invalid user data') 8 } 9 10 return data // Type guaranteed as User 11}

Build and Testing

Use the appropriate run command based on the packageManager field in package.json.

Build Commands

  • dev - Development server
  • build - Production build
  • preview - Preview production build
  • type-check - Type check (no emit)

Testing Commands

  • test - Run tests
  • test:coverage - Run tests with coverage
  • test:coverage:fresh - Run tests with coverage (fresh cache)
  • test:safe - Safe test execution (with auto cleanup)
  • cleanup:processes - Cleanup Vitest processes

Quality Check Requirements

Quality checks are mandatory upon implementation completion:

Phase 1-3: Basic Checks

  • check - Biome (lint + format)
  • build - TypeScript build

Phase 4-5: Tests and Final Confirmation

  • test - Test execution
  • test:coverage:fresh - Coverage measurement
  • check:all - Overall integrated check

Coverage Requirements

  • Mandatory: Unit test coverage must be 60% or higher
  • Component-specific targets:
    • Atoms: 70% or higher
    • Molecules: 65% or higher
    • Organisms: 60% or higher
    • Custom Hooks: 65% or higher
    • Utils: 70% or higher

Non-functional Requirements

  • Browser Compatibility: Chrome/Firefox/Safari/Edge (latest 2 versions)
  • Rendering Time: Within 5 seconds for major pages

Related Skills

Looking for an alternative to frontend/technical-spec or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication