Skip to content

feat: standardize README structure and add auto-sync workflow#5

Merged
Royal-lobster merged 1 commit intomainfrom
feat/standardize-readme
Jan 27, 2026
Merged

feat: standardize README structure and add auto-sync workflow#5
Royal-lobster merged 1 commit intomainfrom
feat/standardize-readme

Conversation

@Royal-lobster
Copy link
Copy Markdown
Member

Summary

  • Updated README to match standardized structure with badges, overview, features, installation, configuration, tools, development, and resources sections
  • Added auto-generated MCP tools documentation section with tool parameters tables
  • Added sync-tools.yml workflow to automatically update README when tools change on main branch
  • Added generate-mcp-tools action that extracts tool documentation from source code
  • Added zod-to-json-schema dev dependency for converting Zod schemas to JSON Schema

Test plan

  • Build project with pnpm run build - passes
  • Run linting with pnpm run lint - passes
  • Test generate-tools script locally - successfully generates tool documentation

Generated with Claude Code

- Update README to match standardized structure (badges, overview, features, installation, configuration, tools, development, resources)
- Add auto-generated MCP tools documentation section
- Add sync-tools.yml workflow to automatically update README when tools change
- Add generate-mcp-tools action to generate tool documentation from source
- Add zod-to-json-schema dev dependency for tool schema conversion

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jan 27, 2026

⚠️ No Changeset found

Latest commit: 22d8270

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@Royal-lobster Royal-lobster merged commit dd8688f into main Jan 27, 2026
1 check passed
@Royal-lobster Royal-lobster deleted the feat/standardize-readme branch January 27, 2026 20:42
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @Royal-lobster, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the project's documentation and maintainability by restructuring the README.md for better clarity and adding an automated system to generate and update the MCP tools documentation. This automation ensures that the tool parameters and descriptions in the README.md are always accurate and reflect the current state of the source code, streamlining the onboarding and usage experience for developers and AI agents alike.

Highlights

  • Standardized README Structure: The README.md has been completely restructured to follow a standardized format, improving readability and organization with dedicated sections for overview, features, installation, configuration, and development.
  • Automated Tool Documentation: An automated workflow (sync-tools.yml) and a new GitHub Action (generate-mcp-tools) have been introduced to automatically generate and update the 'MCP Tools' section in the README.md based on the source code, ensuring documentation accuracy.
  • Zod Schema to JSON Schema Conversion: The generate-mcp-tools action now utilizes zod-to-json-schema to convert Zod schemas defined for tool parameters into JSON Schema, which is then rendered into clear Markdown tables in the README.md.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/sync-tools.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request successfully standardizes the README structure and introduces an automated workflow to keep the MCP tools documentation up-to-date. The new generate-mcp-tools action is a great addition for maintaining consistency and reducing manual effort. The README itself is much clearer and well-organized now.

Comment on lines +25 to +27
const files = fs
.readdirSync(TOOLS_DIR)
.filter((f) => f.endsWith(".ts") && f !== "index.ts");
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Using synchronous file system operations like fs.readdirSync can block the Node.js event loop. While this script runs in a dedicated environment (GitHub Action), it's generally a best practice to use asynchronous versions (fs.promises.readdir) to prevent potential blocking issues, especially if the script's scope were to expand or be integrated into a larger application. This also aligns with modern Node.js practices.

const files = (await fs.promises.readdir(TOOLS_DIR))
		.filter((f) => f.endsWith(".ts") && f !== "index.ts");


async function main() {
try {
const readme = fs.readFileSync(README_PATH, "utf8");
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Similar to the previous comment, fs.readFileSync is a synchronous operation. It's recommended to use fs.promises.readFile for asynchronous file reading to maintain non-blocking behavior.

const readme = await fs.promises.readFile(README_PATH, "utf8");

}

const updated = updateReadme({ readme, tools });

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Using fs.writeFileSync is a synchronous operation. For better practice and non-blocking I/O, consider using fs.promises.writeFile.

await fs.promises.writeFile(README_PATH, updated);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant