Skip to content

Conversation

@Shreyanshsingh23
Copy link
Contributor

Add API Documentation Generator Prompt

📋 Summary

This PR adds a new beginner prompt to the Goose Prompt Library: API Documentation Generator. This prompt helps engineering teams generate comprehensive API documentation from their code, filling a gap in the current prompt library.

🎯 Issue Reference

Closes #4995 - Beginner Prompt Submission #3

✨ What This Prompt Does

The API Documentation Generator prompt analyzes API code and generates comprehensive documentation including:

  • API Overview - Base URL, authentication, versioning
  • Endpoint Documentation - Detailed request/response schemas
  • Interactive Examples - cURL, JavaScript, Python code samples
  • Error Handling - Complete error codes and responses
  • Testing Resources - Postman collections and SDK examples
  • Rate Limiting - API limits and headers
  • Changelog - Version history and updates

🔧 Technical Details

Requirements Met ✅

  • Uses exactly 1 extension - Developer (built-in MCP server)
  • Solves clear, straightforward task - Generate API documentation
  • Includes all required fields - id, title, description, category, example_prompt, example_result
  • JSON validates correctly - Structure tested and validated
  • Unique filename - api-documentation-generator.json
  • Title matches filename - "API Documentation Generator"

Extension Used

{
  "name": "Developer",
  "command": "developer",
  "is_builtin": true,
  "environmentVariables": []
}

📝 Example Usage

Input Prompt:

Analyze my Express.js API code and generate comprehensive documentation. I have a REST API with endpoints for user management, authentication, and data operations. Create interactive documentation with examples for each endpoint, including request/response schemas, error codes, and authentication requirements.

Output: Comprehensive API documentation with:

  • Complete endpoint specifications
  • Request/response examples in multiple formats
  • Error handling documentation
  • SDK examples for JavaScript, Python, and cURL
  • Postman collection for testing
  • Rate limiting and authentication details

🎯 Why This Prompt is Valuable

  1. Fills a Gap - No existing prompts generate comprehensive API documentation
  2. High Impact - Essential tool for engineering teams
  3. Beginner-Friendly - Single extension, clear task, practical output
  4. Comprehensive - Covers all aspects of API documentation
  5. Real-World Ready - Provides actionable, production-ready documentation

🔍 Uniqueness Check

This prompt is unique in the library:

  • api-endpoints-analysis.json - Analyzes routing configuration (different purpose)
  • generate-toc.json - Generates markdown table of contents (different scope)
  • No other comprehensive API documentation generation prompts exist

📊 Content Quality

  • Example Prompt: 311 characters, clear and specific
  • Example Result: 8,071 characters of detailed, realistic documentation
  • Category: Technical (appropriate for engineering)
  • Job: Engineering (matches target audience)

🧪 Testing

  • ✅ JSON structure validated
  • ✅ All required fields present
  • ✅ Extension format correct
  • ✅ No naming conflicts
  • ✅ Comprehensive example content
  • ✅ Follows beginner prompt guidelines

📁 Files Changed

  • documentation/src/pages/prompt-library/data/prompts/api-documentation-generator.json (new file)

🚀 Ready for Review

This prompt is ready for immediate use and provides significant value to the Goose community. It addresses a real need in engineering workflows and follows all submission guidelines perfectly.


Prompt ID: api-documentation-generator
Category: Technical
Job: Engineering
Extension: Developer (built-in)
Status: Ready for merge ✅

@Shreyanshsingh23 Shreyanshsingh23 requested a review from a team as a code owner October 3, 2025 21:29
@taniandjerry
Copy link
Contributor

Thank you for your contribution, @Shreyanshsingh23 ! As we approach the weekend, wanted to let you know to expect review from the team come Monday, Eastern time. Appreciate your patience in that time!

@taniandjerry taniandjerry added the hacktoberfest Issues awarding points for Hacktoberfest 2025! label Oct 3, 2025
@Shreyanshsingh23
Copy link
Contributor Author

Thank you for your contribution, @Shreyanshsingh23 ! As we approach the weekend, wanted to let you know to expect review from the team come Monday, Eastern time. Appreciate your patience in that time!

Sadly but I will wait till the right time @taniandjerry :) Till then I will make sure to make any left changes so that my PR is ready to be merged.

@taniandjerry taniandjerry added the small Weight label for Hacktoberfest 2025 issues label Oct 8, 2025
@taniandjerry
Copy link
Contributor

Thank you so much for sharing your contribution! The DCO check is failing, so this link will tell you how to fix it~

Then the team will finish review!

@iandouglas
Copy link
Contributor

The prompt looks great and very thorough!

- Add beginner prompt for generating comprehensive API documentation
- Uses single Developer extension as required for beginner prompts
- Includes detailed example with Express.js API documentation
- Provides interactive examples, schemas, and SDK code samples
- Fills gap in prompt library for API documentation generation

Closes block#4995

Signed-off-by: Shreyansh Singh Gautam <[email protected]>
@Shreyanshsingh23 Shreyanshsingh23 force-pushed the feature/api-documentation-generator-prompt branch from 363ac75 to 7536bba Compare October 9, 2025 19:01
@Shreyanshsingh23
Copy link
Contributor Author

The prompt looks great and very thorough!

Thanks @iandouglas and @taniandjerry for the support. I have made the DCO successful. I think we are ready to go.

@iandouglas
Copy link
Contributor

running the final checks then we'll merge, thanks again!

@iandouglas iandouglas merged commit 1562ad8 into block:main Oct 10, 2025
11 checks passed
zanesq added a commit that referenced this pull request Oct 13, 2025
…sion-streaming

* 'main' of github.com:block/goose: (37 commits)
  Clear deeplinks after use (#5128)
  Revert "Fix gpt-5 input context limit (#4619)" (#5135)
  fix: missing cmake and protobuf for windows build, deduplicate sh/pws… (#5028)
  Fix bedrock tool input schema (#5064)
  Add self-test recipe for goose validation (#5111)
  fix: modifies openai request logic for reasoning models (#4221) (#4294)
  Fix race condition threat when set_param and set_secret of c… (#5109)
  Clean room implementation of the chat process (#5079)
  Bump rmcp (#5096)
  set version in an env variable for testing (#5100)
  fix : enhance fuzzy file search in goose desktop (#5071)
  Make async (#5126)
  docs: unlist tutorials for extensions with archived or moved servers (#5116)
  Add API Documentation Generator prompt (#5001)
  Add flag for enabling eleven labs voice dictation (#5095)
  force re-render fields to pick up custom params usage in instructions (#5112)
  Remove isUserInputDisabled (#5115)
  Improve Rust analysis output for `analyze` tool (#5072)
  Remove duplicate prepare_reply_context call (#5063)
  install react dev tools in development (#4979)
  ...

# Conflicts:
#	ui/desktop/src/components/BaseChat2.tsx
#	ui/desktop/src/hooks/useChatStream.ts
@alexhancock alexhancock mentioned this pull request Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest Issues awarding points for Hacktoberfest 2025! hacktoberfest-accepted small Weight label for Hacktoberfest 2025 issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

💡 Beginner Prompt Submission #3

3 participants