一键导入
page-map
AI Agent skill to read, manage, and manipulate website visual structure using PAGE_MAP.md and BLUEPRINT.md — for both pages and components.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
AI Agent skill to read, manage, and manipulate website visual structure using PAGE_MAP.md and BLUEPRINT.md — for both pages and components.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Companion skill for the /open workflow. Automates workspace diagnostic steps when starting a new session on a project. Collects active session status, project contracts, active task metrics, compact memory presence, roadmap phases, pending brainstorms, and git status.
Sidecar data for /brainstorm workflow — Brainstorm (open), Decision (finalized), and Research document templates loaded just-in-time.
Sidecar data for /docs workflow — document templates loaded just-in-time when generating docs.
Modular HTML rendering engine for PARA Workspace. Converts Markdown documents, code graphs, and standalone files into interactive, self-contained HTML pages with consistent Notion-inspired theming. Triggers when the user asks to compile docs to HTML, render graph visualization, export markdown to HTML, view docs statically, or preview documents.
Sidecar data for /plan workflow — Detail Plan and Roadmap templates loaded just-in-time.
Sidecar data for /qa workflow — Red Team personas, dimension checklists, and QA report templates loaded just-in-time.
| name | page-map |
| description | AI Agent skill to read, manage, and manipulate website visual structure using PAGE_MAP.md and BLUEPRINT.md — for both pages and components. |
Version: 2.0.0
[!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:
- The map content matches the actual code precisely (no outdated info).
- The
pages/andcomponents/directory structures strictly comply with the v2.0.0 spec of this skill.- The repository does not contain redundant testing artifacts — keep only finalized maps.
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.
All maps are stored under .pageel/page-maps/ at the repository root, organized into two subdirectories:
.pageel/page-maps/
├── 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:
.pageel/page-maps/pages/<page-name>/.pageel/page-maps/components/<ComponentName>/Hero, FeatureGrid).index, features, privacy).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.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.section] — e.g., [index.hero], [index.features][Component.Section] — e.g., [Hero.TechStackHeader], [Calculator.ResultCard]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.
When asked to create a new map:
PAGE_MAP.md containing ASCII wireframes that illustrate the layout vision. Use [Section.Subsection] references. For complex components, break down into logical zones (header, body, footer, sidebar, etc.).BLUEPRINT.md to map those tags to the intended component files, props, and implementation notes..pageel/page-maps/components/<ComponentName>/.pageel/page-maps/pages/<page-name>/Page maps and component maps must be linked bidirectionally so navigation between layers is seamless.
In page-level PAGE_MAP.md:
[index.hero] → components/Hero/In page-level BLUEPRINT.md:
PAGE_MAP.md:
| Section | Source | Hydration | Component Map |
| :--- | :--- | :--- | :--- |
| `[index.hero]` | `src/components/Hero.astro` | Static | [`components/Hero/`](../../components/Hero/PAGE_MAP.md) |
client:load, client:visible, or Static).— with a parenthetical note: — (inline: description).Why this matters:
<div> tags shifting sections).PAGE_MAP.md to stay in sync.Create an INDEX.md file at the root of .pageel/page-maps/ to serve as the overall master map of the entire website. This file tracks the page-mapping progress of each page and component.
Vị trí: .pageel/page-maps/INDEX.md
Cấu trúc bắt buộc:
# Site Map Index
> Last updated: YYYY-MM-DD
## Pages
| Route | Source | Status | Map |
| :--- | :--- | :--- | :--- |
| `/` | `src/pages/index.astro` | ✅ Mapped | [pages/index/](pages/index/PAGE_MAP.md) |
| `/features` | `src/pages/features.astro` | ✅ Mapped | [pages/features/](pages/features/PAGE_MAP.md) |
| `/blog` | `src/pages/blog/index.astro` | ⬜ Pending | — |
Pages: `████████░░░░░░░░░░░░` 3/18 (17%)
## Components
| Component | Source | Used by | Status | Map |
| :--- | :--- | :--- | :--- | :--- |
| Navbar | `Navbar.tsx` | All pages | ✅ Mapped | [components/Navbar/](components/Navbar/PAGE_MAP.md) |
| Hero | `Hero.astro` | index | ✅ Mapped | [components/Hero/](components/Hero/PAGE_MAP.md) |
| SEO | `SEO.astro` | All pages (layout) | ⏭️ Skip | — (utility) |
Components: `██████████████████░░` 9/11 (82%)
Status icons:
✅ Mapped — PAGE_MAP.md + BLUEPRINT.md are completed⬜ Pending — Map not created yet⏭️ Skip — Utility component / no visual interface (e.g., SEO, OptimizedImage)Progress bar format:
█ (filled) and ░ (empty), with a total length of 20 characters.filled = round(mapped / total * 20), remaining is ░.X/Y (Z%).Shared components (used across multiple pages):
The Used by column lists the pages utilizing that component (e.g., index, features or All pages).
A component only needs a single map located at components/<Name>/ — do not duplicate maps for each page.
In the page's BLUEPRINT, simply link to the shared component map (as defined in §6).
Always update INDEX.md whenever creating or deleting a page map.
List all pages and components in the source code, including those without maps (to clearly identify the coverage gap).
Calculate the progress bar at the bottom of each table to visualize progress.