agentleFS
thoughtbotthoughtbot/generate-postman-collection/SKILL.md

SKILL.md

Skill8 starsChanged 10 months agoMITView on GitHub

Automatically generate or update the Postman API collection by analyzing the Rails application routes, controllers, and test specs. You are tasked with generating or updating the Postman collection file postman_collection.json based on the current state of the Rails API. Follow these steps: If there is no existing Postman collection file postman_collection.json, skip to Step 2. After completing the update, provide a summary of: If changes have been made notify the user to commit them.

200 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use crypto-intelligence, heart and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Arcanea-LabsSkill

    crypto-intelligence

    Vertical-tier skill for Crypto Intelligence Domain Sub-Stack. Auto-activates inside verticals/crypto-intelligence/ or on /crypto-* commands. Enforces R5 non-advisory clause, voice (architect), refusal patterns, composition with Wealth IS umbrella per Board 2026-05-17. Loads verticals/crypto-intelligence/SKILL.md wrapper for full doctrine.

    Also in 3 projects that use this

  • Arcanea-LabsSkill

    heart

    Ops health monitor for the machine substrate. Checks Memory Bus, brain_watchdog, Voice Operator, dashboard, audit-log freshness, and scheduled tasks. Cross-cutting skill that any repo can invoke when daemons feel off or before starting a heavy work session.

    Also in 3 projects that use this

  • +10 more from Arcanea-Labs

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 11 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 120 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If there is no existing Postman collection file postman_collection.json, skip to Step 2.

    line 11
  2. Distinctive:

    Use git diff to check if there are any changes to API-related files compared to the main branch

    line 15
  3. Very specific:

    Check these paths: config/routes.rb, app/controllers/api/, spec/requests/api/

    line 16
  4. Distinctive:

    If NO changes are found in any of these locations, output "No API changes detected - skipping Postman collection update"

    line 18
  5. Distinctive:

    If changes ARE found, continue to step 2

    line 19
  6. Distinctive:

    All API endpoints organized in logical folders

    line 37
  7. Distinctive:

    Test scripts that auto-save the API token after successful login

    line 45
  8. Distinctive:

    Keep the same collection name: "postman_collection"

    line 48
  9. Distinctive:

    Keep the login test script that auto-saves the token

    line 51
  10. Very specific:

    Every route in config/routes.rb should have a corresponding request

    line 54
  11. Distinctive:

    Use the RSpec tests as the source of truth for request/response examples

    line 63
  12. Distinctive:

    Ensure all JSON is properly formatted and valid

    line 65
  13. Distinctive:

    After completing the update, provide a summary of:

    line 69
  14. Distinctive:

    If changes have been made notify the user to commit them.

    line 78

“Common” is measured: kept by at least 6 in 10 of the 120 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Generate Postman Collection

Automatically generate or update the Postman API collection by analyzing the Rails application routes, controllers, and test specs.

Task Instructions

You are tasked with generating or updating the Postman collection file postman_collection.json based on the current state of the Rails API.

Follow these steps:

If there is no existing Postman collection file postman_collection.json, skip to Step 2.

  1. Check for API-related changes first (to avoid unnecessary work):
    • Use git diff to check if there are any changes to API-related files compared to the main branch
    • Check these paths: config/routes.rb, app/controllers/api/, spec/requests/api/
    • Also check for staged and unstaged changes in the current working directory
    • If NO changes are found in any of these locations, output "No API changes detected - skipping Postman collection update"
    • If changes ARE found, continue to step 2
  2. Read the Rails routes from config/routes.rb to identify all API endpoints
  3. Analyze each API controller in app/controllers/api/ to understand:
    • Request parameters (required and optional)
    • Request body structure
    • Response format
    • Authentication requirements
    • Status codes returned
  4. Review RSpec test files in spec/requests/api/v1/ to extract:
    • Example request bodies
    • Example responses
    • Valid parameter values
    • Edge cases and validation rules
  5. Generate or update the Postman collection with:
    • All API endpoints organized in logical folders
    • Complete request examples with proper HTTP methods
    • Request body examples in JSON format
    • Query parameters where applicable
    • Headers (especially Authorization header for authenticated endpoints)
    • Example responses
    • Clear descriptions for each endpoint
    • Variables for {{base_url}} and {{api_token}}
    • Test scripts that auto-save the API token after successful login
  6. Maintain the existing structure:
    • Keep the same collection name: "postman_collection"
    • Preserve the variables: base_url and api_token
    • Maintain folder organization
    • Keep the login test script that auto-saves the token
  7. Ensure completeness:
    • Every route in config/routes.rb should have a corresponding request
    • Each request should have accurate parameters and examples
    • Descriptions should explain what each endpoint does
    • Authentication requirements should be clearly indicated
  8. Write the updated collection to postman_collection.json

Important Notes

  • Use the RSpec tests as the source of truth for request/response examples
  • Maintain proper Postman collection v2.1 format
  • Ensure all JSON is properly formatted and valid

Output

After completing the update, provide a summary of:

  • Number of endpoints documented
  • Any new endpoints added
  • Any endpoints removed or modified
  • Any issues or ambiguities found

Completion

If changes have been made notify the user to commit them.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.