docs/reference/application-modernization-plan.md
Move the application toward a cleaner, faster, more maintainable product without breaking current workflows or hiding risk in broad refactors. The work should land as small, reviewable slices with proof for each touched surface.
Inventory the current application before changing it.
Definition of done:
Prioritize visible workflows and remove confusion.
Recommended validation:
Improve maintainability without a broad rewrite.
Required guardrails:
Target measured pain rather than broad theoretical optimization.
Definition of done:
Raise correctness at the boundary points users and plugin authors depend on.
Recommended validation:
pnpm check:changedpnpm build when lazy boundaries, packaging, or published surfaces change.Keep user-facing docs aligned with behavior.
Definition of done:
Start with a scoped Control UI and onboarding pass:
pnpm check:changed.This gives high user value with limited architecture risk.
Use this section to update the frontend-focused SKILL.md supplied with the
modernization task. If adopting this guidance as a repo-local OpenClaw skill,
create .agents/skills/openclaw-frontend/SKILL.md first, keep the frontmatter
that belongs in that target skill, then add or replace the body guidance with
the following content.
# Frontend Delivery Standards
Use this skill when implementing or reviewing user-facing React, Next.js,
desktop webview, or app UI work.
## Operating rules
- Start from the existing product workflow and code conventions.
- Prefer the smallest correct patch that improves the current user path.
- Separate required fixes from optional polish in the handoff.
- Do not build marketing pages when the request is for an application surface.
- Keep actions visible and usable across supported viewport sizes.
- Remove dead affordances instead of leaving controls that cannot act.
- Preserve loading, empty, error, success, and permission states.
- Use existing design-system components, hooks, stores, and icons before adding
new primitives.
## Implementation checklist
1. Identify the primary user task and the component or route that owns it.
2. Read the local component patterns before editing.
3. Patch the narrowest surface that solves the issue.
4. Add responsive constraints for fixed-format controls, toolbars, grids, and
counters so text and hover states cannot resize the layout unexpectedly.
5. Keep data loading, state derivation, and rendering responsibilities clear.
6. Add tests when logic, persistence, routing, permissions, or shared helpers
change.
7. Verify the main happy path and the most relevant edge case.
## Visual quality gates
- Text must fit inside its container on mobile and desktop.
- Toolbars may wrap, but controls must remain reachable.
- Buttons should use familiar icons when the icon is clearer than text.
- Cards should be used for repeated items, modals, and framed tools, not for
every page section.
- Avoid one-note color palettes and decorative backgrounds that compete with
operational content.
- Dense product surfaces should optimize for scanning, comparison, and repeated
use.
## Handoff format
Report:
- What changed.
- What user behavior changed.
- Required validation that passed.
- Any validation skipped and the concrete reason.
- Optional follow-up work, clearly separated from required fixes.