Skill: page-map
Version: 2.1.0 | Scope: Global (All Web Projects)
[!WARNING]
Dogfooding Status: This skill is undergoing live testing (dogfooding) at
Projects/pageel-website/repo/.pageel/page-maps/. The.pageel/directory in that repository currently contains test data for this skill. Before pushing to production, review and complete the page-map files in the repo to ensure:
1. The map content matches the actual code precisely (no outdated info).
2. The
pages/andcomponents/directory structures strictly comply with the v2.1.0 spec of this skill.
3. The repository does not contain redundant testing artifacts — keep only finalized maps.
Intent
Use this skill when attempting to modify page layout, analyze frontend structure, or create new views/components. This skill anchors the AI Agent's structural understanding before analyzing complex source code (.astro, .tsx, etc.).
Scope: Applies to both full pages (e.g., index.astro, features.astro) and individual components (e.g., Hero.astro, Calculator.tsx). A component-level map captures the internal layout of a single reusable unit; a page-level map captures how those components are assembled into a route.
Instructions
1. Directory Structure
All maps are stored under .pageel/page-maps/ (or .para/page-maps/) at the repository root, organized into two subdirectories:
.pageel/page-maps/
├── INDEX.md # Master index & progress tracker
├── pages/ # Full route-level pages
│ ├── index/
│ │ ├── PAGE_MAP.md
│ │ └── BLUEPRINT.md
│ └── features/
│ ├── PAGE_MAP.md
│ └── BLUEPRINT.md
└── components/ # Individual reusable components
├── Hero/
│ ├── PAGE_MAP.md
│ └── BLUEPRINT.md
├── FeatureGrid/
│ ├── PAGE_MAP.md
│ └── BLUEPRINT.md
└── Calculator/
├── PAGE_MAP.md
└── BLUEPRINT.md
Rules:
- Pages →
.pageel/page-maps/pages/<page-name>/ - Components →
.pageel/page-maps/components/<ComponentName>/ - Component directory names use PascalCase matching the component filename (e.g.,
Hero,FeatureGrid). - Page directory names use lowercase matching the route slug (e.g.,
index,features,privacy).
2. Identify Existing Maps
Whenever tasked with analyzing or altering a UI element, search for PAGE_MAP.md and BLUEPRINT.md in this order:
.pageel/page-maps/components/<ComponentName>/— For component-level work..pageel/page-maps/pages/<page-name>/— For page-level work.- Current or target directory — Fallback for legacy or simple setups.
3. Reading Format
The structural layout relies on bracketed section names like [Section.Subsection].
PAGE_MAP.md: ASCII wireframes illustrating the visual layout geometry. Each major zone is labeled with a[Section.Subsection]tag.BLUEPRINT.md: A table mapping those tags to exact source files, props, and notes.
Naming convention for tags:
- Page maps:
[page.section]— e.g.,[index.hero],[index.features] - Component maps:
[Component.Section]— e.g.,[Hero.TechStackHeader],[Calculator.ResultCard]
4. Dual-Wireframe Standard (v2.1.0)
New in v2.1.0: When layout geometry changes significantly between Mobile and Desktop, provide dual ASCII wireframes in
PAGE_MAP.md:
## [Component.Hero] Wireframe
### Desktop View (>= 1024px)
+-------------------------------------------------------------+
| [Hero.Title] | [Hero.IllustrationCard] |
| [Hero.Subtitle] | |
| [Hero.CTAButtonGroup] | |
+-------------------------------------------------------------+
### Mobile View (< 640px)
+-----------------------------------+
| [Hero.Title] |
| [Hero.IllustrationCard] (Scaled) |
| [Hero.Subtitle] |
| [Hero.CTAButtonGroup] (FullWidth) |
+-----------------------------------+
5. Modifying Code
Search within the target source code for inline tags such as {/* [Section.Subsection] */}. Apply your edits contextually near the tags. DO NOT alter sections outside of the designated tags unless specifically requested.
6. Creating New Maps
When asked to create a new map:
- Determine scope: Is this a page or a component?
- Create
PAGE_MAP.mdcontaining ASCII wireframes that illustrate the layout vision. Use[Section.Subsection]references. For complex components, break down into logical zones (header, body, footer, sidebar, etc.). If the component has significantly different mobile vs desktop layouts, use the Dual-Wireframe Standard (§4). - Create
BLUEPRINT.mdto map those tags to the intended component files, props, and implementation notes. Include Responsive Contract and Verification columns (§7). - Store files in the correct subdirectory:
- Component →
.pageel/page-maps/components/<ComponentName>/ - Page →
.pageel/page-maps/pages/<page-name>/
7. Cross-Referencing (Page ↔ Component)
Page maps and component maps must be linked bidirectionally so navigation between layers is seamless.
In page-level PAGE_MAP.md:
- Each section tag should include an arrow referencing its component map:
[index.hero] → components/Hero/ - This tells the reader exactly where to find the detailed internal wireframe.
In page-level BLUEPRINT.md:
- Add a Component Map column with relative links to the component's
PAGE_MAP.md:
```markdown
| Section | Source | Hydration | Responsive Contract | Linter Check | MCP Visual (375px) | Component Map |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| [index.hero] | src/components/Hero.astro | Static | flex-col mobile, grid-cols-2 desktop | ✅ PASS | ✅ PASS |