Rails application ui blocks

From pproenca/dot-skills · View interactive version

Rails application ui blocks is an AI agent skill from the GitHub repository pproenca/dot-skills. Compose new Rails backend pages and refactor existing Rails UI to use premium blocks from templates/application-ui. Use when requests mention ERB views, Rails partials, admin/dashboard screens, Tailwind UI assembly, or replacing custom markup with existing premium blocks while preserving behavior, a

How to use this skill

Skill file

Rails Application UI Blocks

Use this skill to choose, adapt, and integrate premium UI blocks from templates/application-ui into Rails views.

Workflow

  1. Determine mode:
  1. Identify constraints first:
  1. Pick candidate blocks from catalog:
  1. Integrate minimally:
  1. Verify:

Selection Order

For new-page:

  1. Start with ui.page-examples.* to anchor page structure.
  2. Choose shell from ui.application-shells.*.
  3. Add page/section headings from ui.headings.*.
  4. Add core body blocks (ui.forms.*, ui.lists.*, ui.data-display.*, ui.feedback.*).
  5. Finish with navigation and overlay details (ui.navigation.*, ui.overlays.*).

For refactor-page:

  1. Preserve current information architecture and interaction contracts.
  2. Map each existing UI region to one candidate catalog block.
  3. Replace one region at a time and run relevant tests.
  4. Extract repeated markup into partials only after reuse is proven.

Guardrails

Output Expectations

When completing a task with this skill, include:

Resources

Maintenance

Regenerate the catalog when files under templates/application-ui change:

python3 .agents/skills/rails-application-ui-blocks/scripts/build_template_catalog.py \
  --root .
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.