majiayu000/claude-skill-registry-data/bellog-structure-majiayu000-claude-skill-regist
Claude Code and agent skill by majiayu000/claude-skill-registry-data
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Provides file organization and naming conventions for the Bellog project. Triggers when creating new files or reorganizing code.
Install
npx vskill@latest install majiayu000/claude-skill-registry-data/bellog-structure-majiayu000-claude-skill-registSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Bellog File Organization
This skill defines the file structure, naming conventions, and organization patterns for the Bellog blog project.
Project Structure
Naming Conventions
Components
Rule: PascalCase
Hooks
Rule: camelCase with use prefix
Utilities & Libraries
Rule: camelCase
Types
Rule: camelCase file, PascalCase exports
Constants
Rule: SCREAMING_SNAKE_CASE for values, camelCase for file
API Routes
Rule: camelCase folder, route.ts file
Where to Place Files
Decision Tree
Q: Is it a React component?
- Yes →
/src/components/ - App-wide (Navbar, Footer) →
/src/components/common/ - Post-specific (PostCard, NotionToc) →
/src/components/posts/ - Reusable UI primitive (Tag, Button) →
/src/components/ui/
Q: Is it a custom hook?
- Yes →
/src/hooks/use[Name].ts
Q: Is it business logic or data fetching?
- Yes →
/src/lib/ - Notion API →
/src/lib/notion.ts - Post data →
/src/lib/posts.ts - Utility functions →
/src/lib/utils.ts
Q: Is it a constant value?
- Yes →
/src/constants/ - UI-related →
/src/constants/ui.ts - API-related →
/src/constants/api.ts
Q: Is it a TypeScript type?
- Yes →
/src/types/index.d.ts
Q: Is it a page or route?
- Yes →
/src/app/[route]/page.tsx
Q: Is it an API endpoint?
- Yes →
/src/app/api/[endpoint]/route.ts
Component Organization
Common Components (/src/components/common/)
Components used across multiple pages:
- Layout components (Navbar, Footer)
- Page sections (Intro, Header)
- Shared widgets (ProgressBar)
Examples:
Navbar.tsx- Site navigationFooter.tsx- Site footerIntro.tsx- Hero section with animationsProgressBar.tsx- Scroll progress indicatorHeader.tsx- Page headers
Post Components (/src/components/posts/)
Components specific to blog posts:
- Post rendering (PostRenderer)
- Post navigation (NotionToc, PostNavigation)
- Post lists (PostList, PostCard)
Examples:
PostCard.tsx- Individual post previewPostList.tsx- Grid of post cardsPostRenderer.tsx- Notion content rendererNotionToc.tsx- Table of contentsPostNavigation.tsx- Previous/Next navigationGiscusComments.tsx- Comment system
UI Components (/src/components/ui/)
Low-level, reusable UI primitives:
- Buttons, inputs, switches
- Tags, badges
- Shadcn/ui components
Examples:
Tag.tsx- Tag displayTagList.tsx- Tag filteringThemeToggle.tsx- Dark/light mode toggleswitch.tsx- Radix UI switch (shadcn/ui)
File Templates
Component Template
Hook Template
Utility Template
Type Definition Template
Import Organization
Order
Path Aliases
Bellog uses @/ for root imports:
Code Organization Patterns
Single Responsibility
Group Related Code
Constants Extraction
File Size Guidelines
Components: < 200 lines
- If larger, consider splitting into smaller components
Hooks: < 100 lines
- If larger, consider extracting helper functions
Utils: < 50 lines per function
- If larger, break into smaller functions
Types: No limit
- Types can be long, that's okay
Barrel Exports (Avoid)
Why: Barrel exports slow down builds and complicate tree-shaking.
Environment Files
Never commit:
.env.local.env- Any file with actual secrets
Git Ignore Patterns
Ensure these are in .gitignore:
Documentation Structure
Quick Reference
Checklist for New Files
- [ ] File in correct directory
- [ ] Naming convention followed (PascalCase / camelCase)
- [ ] Imports organized by category
- [ ] Using @ alias for imports (not relative from root)
- [ ] TypeScript types defined
- [ ] No magic numbers (use constants)
- [ ] Single responsibility (one clear purpose)
- [ ] File size reasonable (< 200 lines for components)
Remember: Organization is about findability. When someone looks for a file, it should be obvious where it is.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdevelopment/bellog-structure-majiayu000-claude-skill-regist/SKILL.md
Popularity
- Repository stars
- 3
- Repository forks
- 2
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 12 Apr 2026, 7 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/majiayu000/claude-skill-registry-data/bellog-structure-majiayu000-claude-skill-regist)