Skip to content

Add turbo-modals and soft-destroyable skills; align turbo-fetch with rolemodel_rails - #60

Open
OutlawAndy wants to merge 4 commits into
mainfrom
rolemodel-rails-generator-skills
Open

OutlawAndy wants to merge 4 commits into
mainfrom
rolemodel-rails-generator-skills

Conversation

@OutlawAndy

Copy link
Copy Markdown
Member

Why

rolemodel_rails generators will install these skills into apps alongside the code they generate (companion PR: RoleModel/rolemodel_rails — install-agent-skills), so each skill has to match what its generator actually installs. turbo-fetch had drifted: it told agents to hand-write a turbo-fetch controller, but the generator installs the same controller registered as turbo-form.

What Changed

  • New turbo-modals skill for the modal/panel pattern from rolemodel:turbo:modals (422 on errors, redirect on success, form: on footer buttons, never the layout class method)
  • New soft-destroyable skill for the SoftDestroyable concern (no default scopes, cascade/restore semantics, shared example)
  • turbo-fetch now uses the generator's turbo-form identifier, points to the generator instead of inlining the controller, fixes the claimed URL default (there isn't one), and documents expect_turbo_form_request. The skill name is unchanged so existing installs keep working. It also notes that older apps may register turbo-fetch.

Screenshots

N/A — no UI changes


Pre-merge

  • Have you updated README.md and AGENTS.md? Any new, renamed, or removed skill needs a row in the README table and a bullet in AGENTS.md. Check the box or replace it with N/A if this PR touches no skill.

🤖 Generated with Claude Code

Copilot AI lite review requested due to automatic review settings September 24, 2026 20:37
@OutlawAndy OutlawAndy self-assigned this Sep 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Two moderate turbo-fetch issues and documentation inaccuracies remain unresolved.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity · 3 Low severity

Open (4)
What changed in this PR

Adds generator-aligned Rails skills for Turbo modals, soft deletion, and Turbo Forms.

Changes:

  • Added turbo-modals and soft-destroyable.
  • Updated turbo-fetch to use turbo-form.
  • Registered skills in README.md and AGENTS.md.
File Summary
skills/​turbo-modals/​SKILL.md Adds modal and panel guidance; three nit findings remain.
skills/​soft-destroyable/​SKILL.md Adds soft-delete guidance; two nit findings remain.
skills/​turbo-fetch/​SKILL.md Aligns Turbo Form documentation; two moderate findings remain.
README.md Updates the skill catalog.
AGENTS.md Documents the new skills.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread skills/turbo-fetch/SKILL.md Resolved
Comment thread skills/soft-destroyable/SKILL.md Resolved
Comment thread skills/turbo-modals/SKILL.md Resolved
Comment thread skills/turbo-modals/SKILL.md Resolved
@OutlawAndy

Copy link
Copy Markdown
Member Author

Companion: RoleModel/rolemodel_rails#208

OutlawAndy added a commit that referenced this pull request Sep 29, 2026
- form-auto-save: use the generator-installed turbo-form controller and helper
- turbo-modals: panels render into their own frame; fix invalid Slim comment
- soft-destroyable: state the UnknownAttributeError when _soft_destroy= is missing

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
OutlawAndy and others added 2 commits September 29, 2026 12:21
The rolemodel_rails generators are starting to install these skills into apps
alongside the code they generate, so each skill has to match what its
generator installs.

- turbo-modals: new, covers the modal/panel pattern from rolemodel:turbo:modals
- soft-destroyable: new, covers the SoftDestroyable concern and shared example

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- turbo-modals: panels render into their own frame; fix invalid Slim comment
- soft-destroyable: state the UnknownAttributeError when _soft_destroy= is missing

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
OutlawAndy added a commit that referenced this pull request Sep 29, 2026
- turbo-modals: panels render into their own frame; fix invalid Slim comment
- soft-destroyable: state the UnknownAttributeError when _soft_destroy= is missing

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@OutlawAndy
OutlawAndy force-pushed the rolemodel-rails-generator-skills branch from 108cdc7 to 8326ca7 Compare September 29, 2026 17:23
@justwiebe
justwiebe force-pushed the rolemodel-rails-generator-skills branch from 8326ca7 to eb8bf0a Compare October 7, 2026 21:00
OutlawAndy and others added 2 commits October 18, 2026 12:51
…ator-skills

# Conflicts:
#	AGENTS.md
#	README.md
rails-conventions prescribes 'Successfully Created Widget'.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@OutlawAndy
OutlawAndy requested a review from wesrich October 18, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants