flutter-pub
[Flutter] pub.dev package search skill. Quick package search, info lookup, version check, and dependency analysis. (project)
When & Why to Use This Skill
The Flutter pub.dev Package Finder is a specialized Claude skill designed to streamline Dart and Flutter development by providing instant access to the pub.dev ecosystem. It enables developers to search for packages, retrieve detailed version history, analyze dependency trees, and evaluate package health through real-time scores and metrics. By automating the lookup process, it helps developers make informed decisions about third-party libraries and accelerates the project setup phase with ready-to-use configuration snippets.
Use Cases
- Library Discovery: Quickly find and compare the most relevant Flutter/Dart packages for specific functionalities like state management, local storage, or UI components.
- Version & Compatibility Check: Verify the latest stable versions and check platform support (Android, iOS, Web, etc.) to ensure library compatibility with your target environment.
- Package Health Evaluation: Access real-time pub.dev scores, like counts, and download statistics to assess the reliability and popularity of a package before integration.
- Dependency Management: Inspect a package's internal dependencies and generate precise pubspec.yaml snippets for rapid installation and conflict-free dependency resolution.
| name | flutter-pub |
|---|---|
| description | "[Flutter] pub.dev package search skill. Quick package search, info lookup, version check, and dependency analysis. (project)" |
Flutter pub.dev Package Finder
Quick search and lookup for Flutter/Dart packages on pub.dev
When to Use
Use this skill when:
- "Find ~~ package"
- "Search pub.dev for ~~"
- "Tell me about ~~ library"
- Need to check latest version, score, or dependencies
pub.dev API Reference
Package Search
GET https://pub.dev/api/search?q={query}
| Parameter | Description | Example |
|---|---|---|
q |
Search query | state management |
page |
Page number | 1, 2, ... |
Package Details
GET https://pub.dev/api/packages/{package_name}
Response Fields:
name- Package namelatest.version- Latest versionlatest.pubspec- pubspec.yaml contentsversions- All version list
Package Score
GET https://pub.dev/api/packages/{package_name}/score
Response Fields:
likeCount- Number of likesdownloadCount30Days- 30-day download countmaxPoints- Maximum pointsgrantedPoints- Granted pointstags- Platform tags (sdk:flutter, platform:android, etc.)
Publisher Info
GET https://pub.dev/api/packages/{package_name}/publisher
Workflow
1. Package Search
When user asks to find packages:
Call search API via WebFetch
https://pub.dev/api/search?q={query}Extract top 5 packages
- Package name
- Latest version
Present as table
Package Version Description provider 6.1.1 State management
2. Package Details Lookup
When specific package info requested:
Call package info API
https://pub.dev/api/packages/{package_name}Call score API
https://pub.dev/api/packages/{package_name}/scoreSummarize info
- Latest version
- Dependencies list
- Platform support
- Likes/Downloads
- pub.dev link
3. pubspec.yaml Addition Guide
When package installation requested:
dependencies:
{package_name}: ^{version}
Output Format
Search Results
## pub.dev Search: "{query}"
| Package | Version | Score | Description |
|---------|---------|-------|-------------|
| package1 | 1.0.0 | 140 | Description1 |
| package2 | 2.0.0 | 130 | Description2 |
> [See more on pub.dev](https://pub.dev/packages?q={query})
Package Details
## {package_name}
- **Version**: {version}
- **Publisher**: {publisher}
- **Likes**: {likes} | **Downloads (30d)**: {downloads}
- **Score**: {points}/{maxPoints}
- **Platforms**: Android, iOS, Web, ...
### Installation
\`\`\`yaml
dependencies:
{package_name}: ^{version}
\`\`\`
### Dependencies
- dep1: ^1.0.0
- dep2: ^2.0.0
> [pub.dev](https://pub.dev/packages/{package_name}) | [API Docs](https://pub.dev/documentation/{package_name}/latest/)
Examples
Search Example
Input: "Find state management packages"
AI Actions:
- WebFetch
https://pub.dev/api/search?q=state+management - Parse results and create table
- Explain recommended packages
Detail Lookup Example
Input: "Tell me about riverpod"
AI Actions:
- WebFetch
https://pub.dev/api/packages/flutter_riverpod - WebFetch
https://pub.dev/api/packages/flutter_riverpod/score - Format detailed info
Notes
- Consider API rate limits, avoid rapid successive calls
- URL encode search queries
- Package names are case-insensitive
- Flutter packages often have
flutter_prefix