Skip to content

Commit 1d2310a

Browse files
Add agent skill install to post-install message and README
1 parent d3f691d commit 1d2310a

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ The install generator will:
8080
- Create `app/assets/tailwind/layered_ui_overrides.css` for your theme customisations (never overwritten on re-install)
8181
- Add `import "layered_ui"` to your `application.js`
8282

83+
To let AI coding agents work with `layered-ui-rails` in your project, install the included [agent skill](#agent-skill):
84+
85+
```bash
86+
bin/rails generate layered:ui:install_agent_skill
87+
```
88+
8389
Then update your application layout to render the engine layout. Place any `content_for` blocks **above** the render call - the engine layout reads them when it renders, so they must be defined first:
8490

8591
```erb

layered-ui-rails.gemspec

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,10 @@ Gem::Specification.new do |spec|
5656
• Add `import "layered_ui"` to your app/javascript/application.js (just after `import "@hotwired/turbo-rails"`, if present)
5757
5858
If these imports already exist, they will not be duplicated.
59+
60+
To let AI coding agents work with layered-ui-rails in your project, install
61+
the included agent skill:
62+
63+
bin/rails generate layered:ui:install_agent_skill
5964
MSG
6065
end

0 commit comments

Comments
 (0)