Skip to content

Install the controller-patterns skill in core_setup - #232

Merged
OutlawAndy merged 3 commits into
masterfrom
feat/core-setup-controller-patterns-skill
Dec 2, 2026
Merged

OutlawAndy merged 3 commits into
masterfrom
feat/core-setup-controller-patterns-skill

Conversation

@OutlawAndy

@OutlawAndy OutlawAndy commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

rolemodel:core_setup now installs the controller-patterns agent skill, alongside polymorphic-parent-resources and rake-tasks.

Depends on RoleModel/skills#105. That PR adds the skill to RoleModel/skills. Until it merges, install_skill 'controller-patterns' will fail, because npx skills add can't find the skill. This PR stays a draft until then.

Also updated:

  • The generator's say line is now "Installing agent skills". Controller shapes aren't a rolemodel_rails utility.
  • The core_setup README and USAGE list the new skill.
  • The RuboCop template enforces it block parameters, endless single-line methods, and trailing commas in multiline arrays and hashes. All four are autocorrectable and run at refactor severity.
  • The RuboCop template disables Rails/LexicallyScopedActionFilter, so the skill's parent and child setters can keep their inverted index new create conditions.

🤖 Generated with Claude Code

Every new app gets RoleModel's controller shapes alongside the
polymorphic-parent-resources and rake-tasks skills.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@OutlawAndy
OutlawAndy marked this pull request as ready for review December 2, 2026 00:15
OutlawAndy and others added 2 commits December 1, 2026 18:16
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Generated apps now prefer `it`, endless single-line methods and trailing
commas in multiline literals, all autocorrectable. Rails/LexicallyScopedActionFilter
is off so controller-patterns' parent and child setters can keep their
inverted index/new/create conditions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@OutlawAndy
OutlawAndy merged commit 9e88016 into master Dec 2, 2026
2 checks passed
OutlawAndy added a commit that referenced this pull request Dec 2, 2026
New apps start with AGENTS.md, a conventions index with 14 convention
files, Copilot instructions pointing at them, and the surface_conventions
hook that shows Claude Code the conventions matching each file it edits.
The conventions were filtered from the Compass agent-docs port down to
the rules every RoleModel app should start with.

The hook is downloaded from RoleModel/skills' scaffold-docs skill so
there is one copy to maintain. Also lists controller-patterns in the
README's skills table, which #232 missed.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant