Project Name: 「書けるフロントエンド完全攻略」(Complete Frontend Writing Guide) Purpose: A comprehensive educational repository for learning web frontend development from basics to advanced topics Language: Japanese documentation with English technical terms Status: Early-stage (planning phase - only requirements document exists currently)
- HTML & CSS (layouts, responsive design)
- JavaScript (DOM manipulation, event handling)
- TypeScript (type-safe component design)
- React (component-based architecture, state management)
- Next.js (routing, image optimization, SSR/SSG)
- Deployment platforms (GitHub Pages, Vercel)
WebIntro/
├── .git/ # Git version control
└── README.md # Requirements definition document (要件定義書)
WebIntro/
├── docs/ # Educational materials (markdown)
│ ├── 01_env/ # Environment setup
│ ├── 02_html-css/ # HTML & CSS fundamentals
│ ├── 03_js/ # JavaScript basics
│ ├── 04_ts/ # TypeScript introduction
│ ├── 05_react/ # React fundamentals
│ ├── 06_nextjs/ # Next.js introduction
│ ├── 07_ux/ # UX enhancement
│ ├── 08_deploy/ # Deployment & operations
│ └── 09_final/ # Advanced & final project
├── samples/ # Working code samples
│ ├── 01_env/ # Hello World examples
│ ├── 02_html-css/ # Profile page examples
│ ├── 03_js/ # Interactive UI examples
│ ├── 04_ts/ # TypeScript component examples
│ ├── 05_react/ # Todo app example
│ ├── 06_nextjs/ # Multi-page site example
│ ├── 07_ux/ # Web service example
│ ├── 08_deploy/ # Deployment examples
│ └── 09_final/ # Final project examples
├── README.md # Project overview & navigation
└── CLAUDE.md # This file - AI assistant guide
| Chapter | Topic | Learning Outcome | Sample Deliverable |
|---|---|---|---|
| 1 | Environment Setup | VS Code, Node.js, GitHub, Next.js setup | Hello World app |
| 2 | HTML & CSS | Layouts, responsive design, styling | Personal profile page |
| 3 | JavaScript Basics | DOM manipulation, event handling | Interactive UI components |
| 4 | TypeScript Introduction | Type-safe component design | Typed React components |
| 5 | React Fundamentals | Components, state management | Todo application |
| 6 | Next.js Introduction | Routing, image optimization | Multi-page website |
| 7 | UX Enhancement | Forms, API integration, SPA | Simple web service |
| 8 | Deployment & Operations | Vercel deployment, metadata | Published website URL |
| 9 | Advanced & Final Project | Custom project, iteration | Complete personal website |
- Primary: Web frontend beginners to intermediate learners
- Secondary: UI/UX enthusiasts and web production learners
- Language: Japanese speakers (all documentation in Japanese)
Students completing this curriculum should be able to:
- Technical Competency: Understand and use TypeScript, React, and Next.js appropriately
- Implementation Skills: Build UI components and assemble complete websites
- Design Skills: Apply information architecture and state management principles
- Publishing Skills: Deploy websites to GitHub Pages or Vercel
- Self-Sufficiency: Execute full development workflow from environment setup to deployment independently
-
Documentation (docs/):
- Write in Japanese with clear explanations
- Use markdown format
- Include screenshots and diagrams (visual-first approach)
- Provide step-by-step instructions
- Link to corresponding sample code
- Ensure beginner-friendly explanations
-
Sample Code (samples/):
- Must be executable with simple commands
- Include clear comments (in Japanese)
- Follow modern best practices
- Provide README.md in each sample directory
- Include package.json with clear scripts
- Ensure reproducible setup
-
Chapter Structure:
- Each chapter should have both docs/ and samples/ content
- Progressive difficulty (basics → advanced)
- Clear learning path from previous chapter
- Practical, hands-on examples
- Main branch: Stable, production-ready content
- Feature branches: Use
claude/prefix for AI-generated content - Commit messages: Clear, descriptive (can be in Japanese or English)
- Testing: Verify all sample code runs successfully before committing
-
Sample Code Requirements:
- Executable without errors
- Modern JavaScript/TypeScript syntax
- Clear variable/function naming
- Appropriate code comments
- No security vulnerabilities
- Mobile-responsive where applicable
-
Documentation Requirements:
- Beginner-friendly language
- Visual aids (screenshots, diagrams)
- Step-by-step instructions
- Expected outcomes clearly stated
- Troubleshooting sections where helpful
- Documentation Language: Write all docs/ content in Japanese
- Code Comments: Write in Japanese for educational clarity
- Technical Terms: Use English terms with Japanese explanations where appropriate
- README files: Primary content in Japanese, code snippets with English keywords
- Variable/Function Names: Use English (standard programming convention)
-
Visual-First Approach:
- Prioritize clarity and understanding over brevity
- Use diagrams, screenshots, and visual examples
- Show before/after comparisons for changes
-
Progressive Learning:
- Build on previous chapters
- Reference earlier concepts when introducing new ones
- Maintain consistent terminology throughout
-
Hands-On Focus:
- Every concept should have executable code
- Provide "try it yourself" opportunities
- Include challenges/exercises for practice
-
Beginner-Friendly:
- Assume minimal prior knowledge
- Explain "why" not just "how"
- Provide context for technical decisions
- Avoid unexplained jargon
-
Naming Conventions:
- Use numbered prefixes for chapter ordering (01_, 02_, etc.)
- Use kebab-case for directory names
- Use descriptive names that match content
-
Directory Structure:
- Keep docs/ and samples/ parallel in structure
- Each chapter directory should be self-contained
- Include index/README in each major directory
-
Asset Management:
- Store images in
docs/[chapter]/images/orassets/images/[chapter]/ - Use relative paths in markdown
- Optimize images for web (compressed, appropriate dimensions)
- Store images in
-
Package.json Requirements:
{ "name": "descriptive-name", "scripts": { "dev": "command to run development server", "build": "command to build project", "start": "command to run production build" } } -
README Requirements for Samples:
- Purpose of the sample
- Setup instructions
- How to run
- Expected output/behavior
- Key learning points
-
Code Style:
- Use consistent formatting (Prettier recommended)
- Follow modern ES6+ conventions
- TypeScript for type safety where applicable
- Clear component/function separation
- Create directory structure:
docs/XX_topic/andsamples/XX_topic/ - Write documentation in
docs/XX_topic/README.md - Create working sample code in
samples/XX_topic/ - Add images/diagrams to
docs/XX_topic/images/ - Test sample code execution
- Update main README.md navigation if needed
- Commit with descriptive message
- Read existing content thoroughly
- Maintain consistent tone and style
- Preserve existing learning flow
- Update related samples if documentation changes
- Test any code modifications
- Document what was changed and why
- Initialize appropriate project structure (React, Next.js, etc.)
- Add clear comments in Japanese
- Keep code simple and focused on learning objectives
- Include error handling where appropriate
- Create accompanying README with setup/run instructions
- Test on clean environment to ensure reproducibility
- Students will use VS Code as their editor
- Node.js will be installed (specify version requirements)
- Git will be available for version control
- Students have basic command line familiarity
- Modern web browser (Chrome, Firefox, Safari, Edge)
- GitHub Pages: For static HTML/CSS/JS projects
- Vercel: For Next.js and React applications
- Focus on free tier options suitable for learning
- Semantic HTML
- ARIA labels where appropriate
- Keyboard navigation support
- Responsive design (mobile-first approach)
- Performance optimization (image optimization, code splitting)
- Dependencies: Always include package.json with exact versions
- Path Issues: Use relative paths, avoid absolute paths
- Environment Variables: Document any required .env setup
- Port Conflicts: Use standard ports (3000 for Next.js) and document
- Build Errors: Test build process, not just development mode
- Broken Links: Verify all internal and external links
- Image Paths: Ensure relative paths work from repository root
- Code Blocks: Use proper syntax highlighting
- Version Conflicts: Specify version requirements clearly
- ✅ Requirements document created (README.md)
- ⏳ Directory structure not yet implemented
- ⏳ No documentation chapters created yet
- ⏳ No sample code created yet
- ⏳ No configuration files (package.json, etc.) created yet
- Create directory structure (docs/ and samples/)
- Set up chapter 01 (Environment Setup)
- Create first working sample (Hello World)
- Establish documentation template/format
- Add project configuration files (.gitignore, etc.)
- Complete all 9 chapters with documentation and samples
- Add supplementary materials (cheat sheets, reference guides)
- Include video tutorials or animated diagrams
- Build community contribution guidelines
- Create automated testing for sample code
- Publish to GitHub Pages or as GitHub repository template
When working on this repository, AI assistants should clarify:
- Target Node.js Version: Which version should be recommended?
- Package Manager: npm, yarn, or pnpm?
- Styling Approach: Plain CSS, CSS Modules, Styled Components, Tailwind?
- React Version: Which version (consider stability vs. modern features)?
- Next.js Version: Which version and rendering strategy (App Router vs Pages Router)?
- Testing Framework: Should testing be included? (Jest, Vitest, Testing Library?)
- Linting/Formatting: ESLint and Prettier configurations?
- Accessibility Level: WCAG compliance level target?
- React Official Docs: https://react.dev
- Next.js Official Docs: https://nextjs.org/docs
- TypeScript Handbook: https://www.typescriptlang.org/docs
- MDN Web Docs: https://developer.mozilla.org
- Issues: Use GitHub issues for bug reports and questions
- Contributions: Follow the planned structure and conventions
- Discussions: Use GitHub discussions for general questions
- ✓ Read README.md to understand current requirements
- ✓ Check existing content structure and style
- ✓ Understand which chapter you're working on
- ✓ Identify target audience (beginners)
- ✓ Write documentation in Japanese
- ✓ Create both docs/ and samples/ content
- ✓ Test all code samples before committing
- ✓ Use visual aids (screenshots, diagrams)
- ✓ Keep explanations beginner-friendly
- ✓ Follow progressive learning approach
- ✓ All sample code runs without errors
- ✓ Documentation is clear and complete
- ✓ Links and images work correctly
- ✓ Consistent with existing content style
- ✓ Commit message is descriptive
- ✓ Ask user for clarification
- ✓ Check README.md for guidance
- ✓ Follow existing patterns in repository
- ✓ Prioritize learner experience over technical sophistication
Last Updated: 2025-11-17
Repository: https://github.com/K-Subaru-nd80/WebIntro
Branch Strategy: Use claude/ prefix for AI-generated feature branches