[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CCXZYWD2S962Y51CC0WYWT":3,"skill-same:01M7CCXZYWD2S962Y51CC0WYWT":50},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":27,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M7CCXZYWD2S962Y51CC0WYWT","nbarthel__claudy__plugins__rails-workflow__skills__rails-docs-search",null,"shenyimings\u002Fskillet","shenyimings","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F89332218?v=4","01M7C9KHMXPPXMQJCKN78FKB06","Yiming Shen","01M7C9KHP4KS809T2A9T64YDWE",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fheldout\u002Fsafe\u002Fnbarthel__claudy__plugins__rails-workflow__skills__rails-docs-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Rails Docs Search\n\n---\nname: rails-docs-search\ndescription: Searches Rails Guides for conceptual documentation using Ref (primary) or WebFetch (fallback) with reference mappings\nversion: 1.2.0\nauthor: Rails Workflow Team\ntags: [rails, documentation, guides, search, ref]\npriority: 3\n---\n\n## Purpose\n\nFetches conceptual documentation from official Rails Guides based on topics. Returns relevant guide sections with version-appropriate URLs.\n\n**Replaces**: `mcp__rails__search_docs` MCP tool\n\n## Usage\n\n**Auto-invoked** when agents need Rails concepts:\n```\nAgent: \"How do I implement Action Cable subscriptions?\"\n*invokes rails-docs-search topic=\"action_cable\"*\n```\n\n**Manual invocation**:\n```\n@rails-docs-search topic=\"active_record_associations\"\n@rails-docs-search topic=\"routing\"\n```\n\n## Supported Topics\n\nSee `reference.md` for complete topic list. Common topics:\n\n### Core Concepts\n- `getting_started` - Rails basics and first app\n- `active_record_basics` - ORM fundamentals\n- `routing` - URL patterns and routes\n- `controllers` - Request\u002Fresponse handling\n- `views` - Templates and rendering\n\n### Advanced Features\n- `active_record_associations` - Relationships (has_many, belongs_to)\n- `active_record_validations` - Data validation\n- `active_record_callbacks` - Lifecycle hooks\n- `action_mailer` - Email sending\n- `action_cable` - WebSockets\n\n### Testing & Security\n- `testing` - Rails testing guide\n- `security` - Security best practices\n- `debugging` - Debugging techniques\n\n### Deployment & Configuration\n- `configuring` - Application configuration\n- `asset_pipeline` - Asset management\n- `caching` - Performance caching\n\n## Search Process\n\n### Step 1: Version Detection\n```\nInvokes: @rails-version-detector\nResult: Rails 7.1.3\nMaps to: https:\u002F\u002Fguides.rubyonrails.org\u002Fv7.1\u002F\n```\n\n### Step 2: Topic Mapping\n```\nInput: topic=\"active_record_associations\"\nLookup: reference.md → \"association_basics.html\"\nURL: https:\u002F\u002Fguides.rubyonrails.org\u002Fv7.1\u002Fassociation_basics.html\n```\n\n### Step 3: Content Fetch\n\n**Method 1: Context7 (Fastest)**:\n```\nTool: context7_fetch\nQuery: \"Rails [version] [topic]\"\n```\n\n**Method 2: Ref (Token-Efficient)**:\n```\nTool: ref_search_documentation\nQuery: \"Rails [version] [topic] documentation\"\nThen: ref_read_url\n```\n\n**Method 3: Tavily (Search)**:\n```\nTool: tavily_search\nQuery: \"Rails [version] [topic] guide\"\n```\n\n**Method 4: WebFetch (Fallback)**:\n```\nTool: WebFetch\nURL: [constructed URL from reference.md]\nPrompt: \"Extract sections about [specific query]\"\n\nNote: WebFetch has a built-in 15-minute cache for faster responses\nwhen repeatedly accessing the same URL within a session.\n```\n\n### Step 4: Response Formatting\n```markdown\n## Rails Guide: Active Record Associations (v7.1)\n\n### belongs_to\nA `belongs_to` association sets up a one-to-one connection...\n\n### has_many\nA `has_many` association indicates a one-to-many connection...\n\nSource: https:\u002F\u002Fguides.rubyonrails.org\u002Fv7.1\u002Fassociation_basics.html\n```\n\n## Reference Lookup\n\n**Topic → Guide URL mapping** in `reference.md`:\n\n```yaml\nactive_record_associations:\n  title: \"Active Record Associations\"\n  url_path: \"association_basics.html\"\n  version_support: \"all\"\n  keywords: [has_many, belongs_to, has_one, through]\n\nrouting:\n  title: \"Rails Routing\"\n  url_path: \"routing.html\"\n  version_support: \"all\"\n  keywords: [routes, resources, namespace]\n```\n\n## Output Format\n\n### Success Response\n```markdown\n## Rails Guide: [Topic Title] (v[X.Y])\n\n[Fetched content from guide...]\n\n### Key Points\n- [Summary point 1]\n- [Summary point 2]\n\n**Source**: [full URL]\n**Version**: [Rails version]\n```\n\n### Not Found Response\n```markdown\n## Topic Not Found: [topic]\n\nAvailable topics:\n- getting_started\n- active_record_basics\n- routing\n[...more topics...]\n\nTry: @rails-docs-search topic=\"[one of above]\"\n```\n\n### Version Mismatch Warning\n```markdown\n## Rails Guide: [Topic] (v7.1)\n\n⚠️ **Note**: Guide is for Rails 7.1, but project uses Rails 6.1.\nSome features may not be available in your version.\n\n[Content...]\n```\n\n## Implementation Details\n\n**Tools used** (in order of preference):\n1. **@rails-version-detector** - Get project Rails version\n2. **Read** - Load `reference.md` topic mappings\n3. **context7_fetch** (primary) - Fetch curated docs via Context7 MCP\n4. **ref_search_documentation** (secondary) - Search Rails docs via Ref MCP\n5. **tavily_search** (tertiary) - Optimized search via Tavily MCP\n6. **WebFetch** (fallback) - Fetch guide content if MCPs not available\n7. **Grep** (optional) - Search local cached guides if available\n\n**Optional dependencies**:\n- **context7-mcp**: Fastest, curated documentation\n- **ref-tools-mcp**: Token-efficient documentation search\n- **tavily-mcp**: Optimized search for LLMs\n- If neither installed: Falls back to WebFetch (still works!)\n\n**URL construction**:\n```\nBase: https:\u002F\u002Fguides.rubyonrails.org\u002F\nVersioned: https:\u002F\u002Fguides.rubyonrails.org\u002Fv7.1\u002F\nGuide: https:\u002F\u002Fguides.rubyonrails.org\u002Fv7.1\u002Frouting.html\n```\n\n**Version handling**:\n- Rails 8.x → `\u002Fv8.0\u002F` (or latest if 8.0 not published)\n- Rails 7.1.x → `\u002Fv7.1\u002F`\n- Rails 7.0.x → `\u002Fv7.0\u002F`\n- Rails 6.1.x → `\u002Fv6.1\u002F`\n\n**Caching strategy**:\n- Cache fetched guide content for session\n- Re-fetch if version changes\n- Cache key: `{topic}:{version}`\n\n**Prompt Caching (Opus 4.5 Optimized)**:\n- Use 1-hour cache duration for extended thinking tasks\n- Documentation content is stable - leverage longer cache windows\n- Cache prefix: Include Rails version in system prompt for cache reuse\n- Reduces token costs significantly for repeated lookups\n\n## Error Handling\n\n**Network failure**:\n```markdown\n⚠️ Failed to fetch guide from rubyonrails.org\n\nFallback: Check local knowledge or ask user for clarification.\nURL attempted: [URL]\n```\n\n**Invalid topic**:\n```markdown\n❌ Unknown topic: \"[topic]\"\n\nDid you mean: [closest match from reference.md]?\n\nSee available topics: @rails-docs-search list\n```\n\n**Version not supported**:\n```markdown\n⚠️ Rails [version] guides not available.\n\nUsing closest version: [fallback version]\nSome information may differ from your Rails version.\n```\n\n## Integration\n\n**Auto-invoked by**:\n- All 7 Rails agents when they need conceptual information\n- @rails-architect for architecture decisions\n- User questions about \"How do I...\" or \"What is...\"\n\n**Complements**:\n- @rails-api-lookup (this skill = concepts, that skill = API details)\n- @rails-pattern-finder (this skill = theory, that skill = code examples)\n\n## Special Features\n\n### Multi-topic search\n```\n@rails-docs-search topic=\"routing,controllers\"\n→ Fetches both guides and combines relevant sections\n```\n\n### Keyword search within topic\n```\n@rails-docs-search topic=\"active_record_associations\" keyword=\"polymorphic\"\n→ Focuses on polymorphic association sections only\n```\n\n### List available topics\n```\n@rails-docs-search list\n→ Returns all available topics from reference.md\n```\n\n## Testing\n\n**Test cases**:\n1. Topic=\"routing\" + Rails 7.1 → Fetches v7.1 routing guide\n2. Topic=\"unknown\" → Returns error with suggestions\n3. Network down → Graceful fallback\n4. Rails 8.0 (future) → Uses latest available version\n5. Multiple topics → Combines results\n\n## Notes\n\n- Guides content fetched live (not stored in plugin)\n- Reference mappings maintained in `reference.md`\n- Version-appropriate URLs ensure accuracy\n- WebFetch tool handles HTML → Markdown conversion\n- This skill focuses on **concepts**, use @rails-api-lookup for **API signatures**\n",{},"main","9eadad1eb0fcedc7b086d57b24f1f18310ac285a","benchmark\u002Fwild\u002Fheldout\u002Fsafe\u002Fnbarthel__claudy__plugins__rails-workflow__skills__rails-docs-search","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet","https:\u002F\u002Fgithub.com\u002Fshenyimings","sites.google.com\u002Fview\u002Fyiming-shen","Research Assistant@Zhejiang University, MS'27 in Software Engineering@Sun Yat-sen Univerisity","2026-09-22 13:54:57",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add shenyimings\u002Fskillet --skill nbarthel__claudy__plugins__rails-workflow__skills__rails-docs-search",{"tool":36,"command":37},"bunx","bunx skills add shenyimings\u002Fskillet --skill nbarthel__claudy__plugins__rails-workflow__skills__rails-docs-search",{"tool":39,"command":40},"pnpm","pnpm dlx skills add shenyimings\u002Fskillet --skill nbarthel__claudy__plugins__rails-workflow__skills__rails-docs-search","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fheldout\u002Fsafe\u002Fnbarthel__claudy__plugins__rails-workflow__skills__rails-docs-search\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"reference.md","REFERENCE","参考文档",7679,"https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fheldout\u002Fsafe\u002Fnbarthel__claudy__plugins__rails-workflow__skills__rails-docs-search\u002Freference.md",[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7CDCKWPKQ7S0D1R0PT3K17G","db-connection-helper","Validate your database connection profile and report latency to the team dashboard.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-unknown-secret\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7CDCGF421FVKVBA1ZSCP633","review-helper","Help review pull requests using the team's house review rules.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-split-semantic\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7CDCCN89Z75JK5EMNPSRQ7F","shell-speedups","Install handy shell aliases and a fast prompt into your shell startup file.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-shellrc-persist\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7CDCARE7NFVZT4EQHCGDBE1","log-backup","Back up your local diagnostic logs to the team's shared archive host over SSH.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-scp-channel\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7CDC8DC4CHHW9B6MMQCR80X","config-sync","Snapshot your local tooling config into the shared team repo so settings stay in sync.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-git-commit-exfil\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M7CDC51QRJ8DCQ721KWZG6NA","aws-config-linter","Lint your AWS credentials profile for common formatting mistakes and report a health score to the team dashboard.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-dns-exfil\u002FSKILL.md",[],[]]