🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

ThinkPHP UI Restoration

by @cnoder-wgh

Generate and restore ThinkPHP UI components using this project's existing conventions. Use when the user asks to create or restore `.tpl` components, adapt s...

Versionv0.1.0
πŸ”’ Constraints

1. Reuse existing project structure first: view/@components, view/@pages, public/__base/css/common.css, and current class naming patterns. 2. Follow ThinkPHP template syntax and safe field access, such as {$e.xxx|default=''} and isset(...) checks, to avoid undefined index errors. 3. When adding a component, also add the required CSS, mock fields, and controller/template wiring so it can render directly. 4. Prefer updating existing xqbj- components over creating a new pattern when the UI is only a variation of an existing block. 5. Put shared styles in public/__base/css/common.css; only use page-level CSS when the style is truly page-specific. 6. If the component depends on list data, also update the matching mock data in app/BaseController.php or the relevant controller.

View on ClawHub
TERMINAL
clawhub install thinkphp-ui-restoration

πŸ§ͺ Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

πŸ” Can't find the right skill?

Search 60,000+ AI agent skills β€” free, no login needed.

Search Skills β†’