Rails Pagination Kaminari
This skill implements Rails Kaminari pagination for your API, efficiently handling large datasets and improving performance.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add rails-pagination-kaminari npx -- -y @trustedskills/rails-pagination-kaminari
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"rails-pagination-kaminari": {
"command": "npx",
"args": [
"-y",
"@trustedskills/rails-pagination-kaminari"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides pagination functionality for Rails applications using the Kaminari gem. It simplifies displaying large datasets in manageable chunks, improving user experience and application performance. The skill allows you to easily implement "next" and "previous" buttons, as well as page number links, within your views.
When to use it
- Displaying a list of products on an e-commerce site with hundreds or thousands of items.
- Presenting a long blog post archive where users need to navigate through multiple pages.
- Showing search results in a paginated format when the query returns a large number of records.
- Building admin dashboards that display data tables spanning many rows.
Key capabilities
- Automatic generation of pagination links.
- Support for different page sizes.
- Easy integration with Rails views.
- "Next" and "Previous" button functionality.
Example prompts
- “Generate the Kaminari pagination for a list of users.”
- “Add pagination to my products index view, displaying 10 items per page."
- "Create a link to the next page of results in my Rails application using Kaminari."
Tips & gotchas
- Ensure that the Kaminari gem is installed and configured correctly within your Rails project.
- The skill assumes you have a model with records you want to paginate; it doesn't create models or data itself.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.