Ztx8 code quality immutable state

From Realjustawall/Perfect-AI · View interactive version

Ztx8 code quality immutable state is an AI agent skill from the GitHub repository Realjustawall/Perfect-AI. Implement and verify immutable state in code-quality for Perfect_AI Codex. Additive, brand-driven, mobile optimized.

How to use this skill

Skill file

Immutable State — Code Quality

Activation

Use when project request or site audit indicates immutable state. Load relevant previous Perfect_AI Skill(s) first. Do not replace any earlier Skill or overwrite user files.

Concrete implementation contract

Specific technical requirement: Avoid mutated React state and expensive render churn with proper memo boundaries.

Domain execution policy: Use lint + typecheck + build + tests; static scan is advisory only.

Working resource: ../.agents/ztx8-execution-resources/scripts/quality_scan.py once installed. The skill is standalone guidance, but external scripts are copied to .agents/ztx8-execution-resources by installer.

Execution sequence

  1. Read approved brand identity, project stack, lockfile, site type, breakpoints and available evidence. Record missing inputs explicitly.
  2. Map requirements to existing components and find actual source file/selector; capture before-state screenshots or failing test if it exists.
  3. Implement immutable state concretely: Avoid mutated React state and expensive render churn with proper memo boundaries. Avoid speculative redesign, unnecessary new dependencies or disabling existing effects.
  4. Mobile: preserve primary animation while adapting performance at 320/390/768 CSS pixels, low-power GPU; support touch, RTL/LTR, keyboard and reduced motion.
  5. Verify this feature at source and browser levels; capture a specific screenshot path and either measured values or reproducible interaction steps. Use NOT_TESTED if no compatible execution environment.
  6. Run unit/build/browser regression gates and compare with baseline. If visual change is subjective, submit before/after screenshots for brand owner approval.
  7. Report exactly: changed files, behavior implemented, tests run, measured metrics, regressions, known limitations and resources used.

Acceptance gates

Relevant additional materials

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.