xiaohongshu
xiaohongshu
plutonium-connect-resource
Connect existing resources to portals for web access
Full skill instructions
Use the pu:res:conn generator to connect resources to portals. This is required to expose resources through a portal's web interface.
rails g pu:res:conn RESOURCE [RESOURCE...] --dest=PORTAL_NAME
Always specify resources directly - this avoids interactive prompts. The --src option is only needed for interactive mode and can be ignored.
rails g pu:res:conn PropertyAmenity --dest=admin_portal
rails g pu:res:conn Post Comment Tag --dest=dashboard_portal
Use the full class name:
rails g pu:res:conn Blogging::Post --dest=admin_portal
rails g pu:res:conn Blogging::Post Blogging::Comment --dest=admin_portal
rails g pu:res:conn Property PropertyAmenity Unit Tenant --dest=admin_portal
For a resource Post connected to admin_portal:
packages/admin_portal/
├── app/
│ ├── controllers/admin_portal/
│ │ └── posts_controller.rb # Portal controller
│ ├── policies/admin_portal/
│ │ └── post_policy.rb # Portal policy (if needed)
│ └── definitions/admin_portal/
│ └── post_definition.rb # Portal definition (if needed)
└── config/
└── routes.rb # Updated with register_resource
class AdminPortal::PostsController < ::PostsController
include AdminPortal::Concerns::Controller
end
class AdminPortal::PostPolicy < ::PostPolicy
include AdminPortal::ResourcePolicy
def permitted_attributes_for_create
[:title, :content, :user_id]
end
def permitted_attributes_for_read
[:title, :content, :user_id, :created_at, :updated_at]
end
def permitted_associations
%i[]
end
end
# In packages/admin_portal/config/routes.rb
register_resource ::Post
# 1. Create resources (always specify --dest)
rails g pu:res:scaffold Post user:belongs_to title:string 'content:text?' --dest=main_app
# 2. Run migrations
rails db:migrate
# 3. Connect resources to portal (always specify --dest)
rails g pu:res:conn Post --dest=admin_portal
--src neededxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience