{
  "markdown": "# Web Accessibility Gemini CLI Extension\n\nThe Web Accessibility extension is an open-source Gemini CLI extension that is designed to enhance your development workflow by connecting Gemini CLI with accessibility expertise. This integration aims to automate web accessibility testing and remediation directly within your command line, with the goal of streamlining the creation of more inclusive software.\n\n**Note:** Gemini can make mistakes and may not catch all accessibility issues. Please use responsibly and review results with care.\n\n## Features\n\n-   **Accessible Code Writing Mindset:** Write code considering accessibility from the start, making it an integral part of the development workflow.\n-   **Finds Accessibility Issues:** Designed to run an accessibility audit on your local web application using the powerful `axe-core` engine and generate a clear `ACCESSIBILITY_REVIEW_TODO.md` file listing certain types of violations.\n-   **Fixes Violations Automatically:** Reads the generated `ACCESSIBILITY_REVIEW_TODO.md` file and attempts to fix the identified violations in your codebase.\n-   **Works Within Your Terminal:** The entire process, from auditing to fixing, happens in your command line using [Gemini CLI](https://github.com/google-gemini/gemini-cli), so you don't have to switch between different tools.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following:\n\n- [Gemini CLI](https://github.com/google-gemini/gemini-cli) installed with version **+v0.6.0**.\n\n## Installation\n\nInstall the web-accessibility extension by running the following command from your terminal (requires Gemini CLI v0.4.0 or newer):\n\n```bash\ngemini extensions install https://github.com/gemini-cli-extensions/web-accessibility\n```\n\nThe extension comes with platform-specific browser binaries pre-installed, so it's ready to use immediately after installation.\n\n## Usage Workflow\n\nThis extension adds two new commands to Gemini CLI, `/accessibility:review` and `/accessibility:fix`. Here’s a typical workflow for using these commands to help improve the accessibility of your web application:\n\n### Step 1: Navigate to Your Project\n\nOpen your terminal and change the directory to the root of your web application's project.\n\n```bash\ncd /path/to/your-web-app\n```\n\n### Step 2: Start Your Development Server\n\nRun your local development server as you normally would. For example:\n\n```bash\nnpm run dev\n```\n\nMake sure your application is running and accessible.\n\n### Step 3: Run the Accessibility Review\n\nUse the `review` command to audit your running application. You must provide the URL where your application is being served (e.g., `http://localhost:3000`).\n\n```bash\n/accessibility:review <url>\n```\n\nThe extension will perform an audit and create a file named `ACCESSIBILITY_REVIEW_TODO.md` in your project's root directory. This file contains a checklist of accessibility violations identified.\n\n**Important:** It is recommended to run this command from the root directory of your web application's codebase, as the generated `ACCESSIBILITY_REVIEW_TODO.md` file is looked for and used by the `fix` command to work on your codebase and resolve the accessibility violations.\n\n### Step 4: Automatically Fix Violations\n\nAfter the review is complete, you can use the `fix` command to automatically correct the issues listed in the `ACCESSIBILITY_REVIEW_TODO.md` file.\n\n```bash\n/accessibility:fix\n```\n\nThe extension will go through the checklist, apply fixes, and provide explanations for each change. Once the process is complete, it will update the `ACCESSIBILITY_REVIEW_TODO.md` file to mark the resolved issues.\n\n**Important:** This command must be run from the root directory of your web application's codebase. The Gemini CLI extension operates on the current working directory, and it is the user's responsibility to ensure the command is executed in the correct location for the agent to have the proper codebase context.\n\n## Uninstallation\n\nTo remove the extension:\n\n```bash\ngemini extensions uninstall web-accessibility\n```\n\nThis removes the extension and all bundled browser binaries from `~/.gemini/extensions/web-accessibility` (macOS/Linux) or `%USERPROFILE%\\.gemini\\extensions\\web-accessibility` (Windows).\n\n## Powered by Open Source\n\nThis extension is built upon the work of several powerful open-source libraries:\n\n-   **[@axe-core/playwright](https://github.com/dequelabs/axe-core-npm)** and **[axe-core](https://www.deque.com/axe/)**: The accessibility analysis is powered by the `axe-core` engine for identifying accessibility violations.\n-   **[playwright](https://playwright.dev)**: Used for browser automation to run the accessibility audits on your web application.\n-   **[color-contrast-picker](https://github.com/abelmcelroy/color-contrast-picker)**: Helps in automatically finding compliant color contrasts to fix accessibility issues.\n-   **[@modelcontextprotocol/sdk](https://modelcontextprotocol.io)**: The underlying SDK for building Gemini CLI extensions.\n\nWe are grateful to the maintainers and contributors of these projects for their invaluable work.\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch: `git checkout -b feature/amazing-feature`\n3. Commit changes: `git commit -m 'Add amazing feature'`\n4. Push to branch: `git push origin feature/amazing-feature`\n5. Open a Pull Request\n\nSee [CONTRIBUTING.md](docs/contributing.md) for more information about contributing to this project.\n\n## License\n\nThis project is licensed under the Apache 2.0 License. See the [LICENSE](LICENSE) file for more details.",
  "bytes": 5554,
  "sha": "4f6e8504104708a2978d0c4f42745885ac6e6074624c15d7d9f1f9539467e308",
  "repo_slug": "gemini-cli-extensions/web-accessibility",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_gemini_cli_extensions_web_accessibility_84621ebd/readme"
}