xiaohongshu
xiaohongshu
fse-architecture
Oh My Brand! theme architecture and project structure. Directory layout, data flow, asset pipeline, and theme.json configuration. Use for understanding project organization.
Full skill instructions
Project architecture and structure for the Oh My Brand! WordPress FSE theme.
| File | Purpose |
|---|---|
| theme.json | theme.json structure and tokens |
oh-my-brand/
├── AGENT.md # AI assistant guidelines
├── functions.php # Theme setup, hooks, registration
├── style.css # Theme metadata (required by WP)
├── theme.json # Global styles, settings, blocks
│
├── src/ # Source files (@wordpress/scripts)
│ └── blocks/ # Native WordPress blocks
│ ├── gallery/ # Gallery carousel block
│ ├── faq/ # FAQ accordion block
│ └── utils/ # Shared utilities
│
├── build/ # Compiled output (generated)
│ └── blocks/ # Built block assets
│
├── blocks/ # ACF custom blocks
│ ├── acf-faq/ # FAQ ACF block
│ └── acf-gallery-block/# Gallery ACF block
│
├── assets/ # Static assets
│ ├── css/ # Global stylesheets
│ ├── js/ # Compiled JavaScript
│ └── icons/ # SVG icons
│
├── includes/ # PHP includes
│ ├── assets.php # Asset registration
│ └── block-helpers.php # Block utilities
│
├── acf-json/ # ACF field groups (auto-sync)
├── patterns/ # Block patterns
├── tests/ # Test files
└── docs/ # Documentation
WordPress Core
│
▼
Ollie Parent Theme
• Base FSE templates
• Default block styles
│
▼
Oh My Brand! Child Theme
• Custom blocks (native + ACF)
• Extended theme.json
• Brand-specific styles
functions.phpfunctions.phpBuilt with @wordpress/scripts, compiled to build/blocks/:
| File | Purpose |
|---|---|
block.json | Block metadata |
index.js | Registration entry |
edit.tsx | Editor component |
render.php | Server-side render |
helpers.php | Helper functions |
style.css | Frontend styles |
view.ts | Frontend Web Component |
ACF PRO blocks, not compiled:
| File | Purpose |
|---|---|
block.json | ACF block metadata |
render.php | Render template |
helpers.php | Helper functions |
style.css | Block styles |
| Aspect | Native Block | ACF Block |
|---|---|---|
| Location | src/blocks/ | blocks/ |
| Name prefix | theme-oh-my-brand/ | acf/ |
| Data source | $attributes | get_field() |
| Editor UI | React component | ACF fields |
| Build | Required | Not required |
Source Build Output
────── ────────────
src/blocks/gallery/
├── index.js → build/blocks/gallery/
├── edit.tsx ├── index.js
├── view.ts ├── view.js
├── style.css ├── style-index.css
└── editor.css └── index.css
| Command | Purpose |
|---|---|
pnpm run build | Production build |
pnpm run start | Watch mode |
pnpm run lint | Run all linters |
| Property | When Loaded |
|---|---|
style | Block rendered (frontend + editor) |
editorStyle | Block in editor |
viewScript | Block on frontend page |
block.json (attributes) → edit.tsx (editor state)
↓
$attributes (saved to post)
↓
render.php (server render)
↓
view.ts (frontend interactivity)
ACF Field Group (acf-json/) → WordPress Editor (ACF forms)
↓
get_field() (post meta)
↓
render.php (server render)
See theme.json for complete structure example.
| Token Type | CSS Variable |
|---|---|
| Colors | var(--wp--preset--color--primary) |
| Spacing | var(--wp--preset--spacing--20) |
| Typography | var(--wp--preset--font-family--body) |
| Layout | var(--wp--style--global--content-size) |
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience