App Structure
Build or rebuild application pages, workspace tools, and menu entries that fit the host app's existing shell, authority boundaries, and layout conventions.
Editor's Note
Before implementation, identify the repository and host machine, inspect working-tree changes, read project instructions and relevant path-scoped rules, then trace the existing route, shell, navigation source, and nearest comparable page.
When to Use It
- Adding a new application page that aligns with the host app's architecture and design language
- Rebuilding an existing workspace tool while preserving the host app's identity and conventions
- Implementing a menu entry that integrates with the host app's navigation and authority system
- Designing a feature surface that uses existing design tokens and component primitives
SKILL.md
SkillsHunter provides this listing for informational purposes only. Review the skill’s source, license, and required permissions before use. You are responsible for deciding whether to install or run it. Terms of Use
App structure
Use this skill when adding or substantially rebuilding an application page, workspace tool, menu entry, or feature surface. Fit the existing product architecture and interaction model. Keep the host app's identity, conventions, and design language; do not transplant another product's shell or impose a generic template. This skill does not replace the host project's design system or path-specific safety rules.
Discover before shaping
Before implementation, identify the repository and host machine, inspect working-tree changes, read project instructions and relevant path-scoped rules, then trace the existing route, shell, navigation source, and nearest comparable page. Read the project's current design guide and token/component sources. Find the actual equivalents for:
- route registration and route-level access control;
- the app shell and its content/scroll boundary;
- the source of primary and secondary navigation;
- workspace/tenant/account authority and transition handling, if applicable;
- established design tokens, component primitives, and loading/error/empty patterns.
Do not assume React, a specific router, a sidebar, a workspace switcher, or any provider. Apply the host app's actual architecture. If a capability is absent, keep the implementation native to that project instead of importing a component or a second design system from somewhere else. Find and cite the corresponding files before editing.
For a new menu item, determine its user job and place it in the existing information architecture. Preserve current role, tenant, plan, feature-flag, and customizable-navigation behavior. Register and guard the destination using the established route mechanism. Check whether a current route, sub-item, or redirect already serves the job before adding another door.
Bound operational workspaces; choose scroll intentionally
Operational workspaces are bounded application surfaces. Establish a complete sizing chain from the shell to the page, let flex/grid children shrink, and clip the outer operational frame. Assign scrolling to named content regions (for example, a results list, detail pane, or editor body). Keep toolbars and fixed shell controls visible while content grows. Avoid competing page and panel scrollbars, clipped controls, and panes that expand beyond the viewport.
Long-form reading pages, marketing pages, documents, and other content-first surfaces should scroll naturally when that best serves reading. Choose the scroll owner from the user's task and content shape. Do not force all pages into internal scrolling or let an operational canvas grow unbounded. Use existing shell/content wrappers and scroll primitives instead of inventing a competing viewport system.
Preserve authority and isolate state
When data or controls depend on an account, workspace, tenant, or user, identify the authoritative identity and scope source first. A visible selector is presentation; authorization and scope transitions belong to the host app's shared authority layer. Do not create a local selector that bypasses it or treat a URL value as proof of access.
Scope every relevant read and write to the resolved authority. On scope changes, invalidate/reset selections, pagination, cursors, counts, rows, drafts, and pending async callbacks as the feature requires; a repeated A→B→A visit must not revive a stale request from the first A. Preserve identity in deep links when the established routing helpers require it. For dirty drafts, active operations, or other guarded transitions, use the shared transition API and its existing decision flow. Treat missing authority or operation state as unknown, not as permission.
Design the whole state and viewport behavior
Define loading, empty, error, and populated states. Keep “no results/no setup yet” distinct from failed reads; use the host's shared error and retry presentation where available. Give primary regions useful accessible names, preserve heading hierarchy and keyboard operation, show visible focus, associate labels and help text, and announce asynchronous status where needed. Icon-only controls need accessible names. Respect reduced motion and do not use color as the only state signal.
Check desktop and narrow layouts with realistic long content and the actual app shell. Confirm toolbar/actions remain reachable, panes fit without accidental horizontal page overflow, each intended region scrolls independently, focus remains visible, and sticky/fixed navigation does not cover final content. Horizontal navigation may scroll when wrapping would harm its use. Empty and error states should remain usable within the same bounds.
Do not accept a page as finished from its first viewport alone. Inspect the deepest list/detail/editor content, bottom-of-pane actions, responsive behavior, and state changes after switching scope or route. Use checks appropriate to the changed project and report only what was actually checked.
View original Markdown
---
name: app-structure
description: Build or rebuild application pages, workspace tools, and menu entries that fit the host app's existing shell, authority boundaries, and layout conventions.
metadata:
license: AGPL-3.0-or-later
copyright: "2026 DevTribe Labs"
homepage: https://github.com/DevDadTribe/toolbox
---
# App structure
Use this skill when adding or substantially rebuilding an application page, workspace tool, menu entry, or feature surface. Fit the existing product architecture and interaction model. Keep the host app's identity, conventions, and design language; do not transplant another product's shell or impose a generic template. This skill does not replace the host project's design system or path-specific safety rules.
## Discover before shaping
Before implementation, identify the repository and host machine, inspect working-tree changes, read project instructions and relevant path-scoped rules, then trace the existing route, shell, navigation source, and nearest comparable page. Read the project's current design guide and token/component sources. Find the actual equivalents for:
- route registration and route-level access control;
- the app shell and its content/scroll boundary;
- the source of primary and secondary navigation;
- workspace/tenant/account authority and transition handling, if applicable;
- established design tokens, component primitives, and loading/error/empty patterns.
Do not assume React, a specific router, a sidebar, a workspace switcher, or any provider. Apply the host app's actual architecture. If a capability is absent, keep the implementation native to that project instead of importing a component or a second design system from somewhere else. Find and cite the corresponding files before editing.
For a new menu item, determine its user job and place it in the existing information architecture. Preserve current role, tenant, plan, feature-flag, and customizable-navigation behavior. Register and guard the destination using the established route mechanism. Check whether a current route, sub-item, or redirect already serves the job before adding another door.
## Bound operational workspaces; choose scroll intentionally
Operational workspaces are bounded application surfaces. Establish a complete sizing chain from the shell to the page, let flex/grid children shrink, and clip the outer operational frame. Assign scrolling to named content regions (for example, a results list, detail pane, or editor body). Keep toolbars and fixed shell controls visible while content grows. Avoid competing page and panel scrollbars, clipped controls, and panes that expand beyond the viewport.
Long-form reading pages, marketing pages, documents, and other content-first surfaces should scroll naturally when that best serves reading. Choose the scroll owner from the user's task and content shape. Do not force all pages into internal scrolling or let an operational canvas grow unbounded. Use existing shell/content wrappers and scroll primitives instead of inventing a competing viewport system.
## Preserve authority and isolate state
When data or controls depend on an account, workspace, tenant, or user, identify the authoritative identity and scope source first. A visible selector is presentation; authorization and scope transitions belong to the host app's shared authority layer. Do not create a local selector that bypasses it or treat a URL value as proof of access.
Scope every relevant read and write to the resolved authority. On scope changes, invalidate/reset selections, pagination, cursors, counts, rows, drafts, and pending async callbacks as the feature requires; a repeated A→B→A visit must not revive a stale request from the first A. Preserve identity in deep links when the established routing helpers require it. For dirty drafts, active operations, or other guarded transitions, use the shared transition API and its existing decision flow. Treat missing authority or operation state as unknown, not as permission.
## Design the whole state and viewport behavior
Define loading, empty, error, and populated states. Keep “no results/no setup yet” distinct from failed reads; use the host's shared error and retry presentation where available. Give primary regions useful accessible names, preserve heading hierarchy and keyboard operation, show visible focus, associate labels and help text, and announce asynchronous status where needed. Icon-only controls need accessible names. Respect reduced motion and do not use color as the only state signal.
Check desktop and narrow layouts with realistic long content and the actual app shell. Confirm toolbar/actions remain reachable, panes fit without accidental horizontal page overflow, each intended region scrolls independently, focus remains visible, and sticky/fixed navigation does not cover final content. Horizontal navigation may scroll when wrapping would harm its use. Empty and error states should remain usable within the same bounds.
Do not accept a page as finished from its first viewport alone. Inspect the deepest list/detail/editor content, bottom-of-pane actions, responsive behavior, and state changes after switching scope or route. Use checks appropriate to the changed project and report only what was actually checked.
Community Reviews & Field Notes
Tried this skill on your own project? Share the model you used and the results you got.