Intelligent Project Management Framework for Gemini CLI
GeminiAutoPM is a powerful Gemini CLI extension that provides AI-powered agent tools for code analysis, test execution, DevOps automation, and agile project management. Built on the Model Context Protocol (MCP), it brings intelligent automation to your development workflow.
- Bug Detection: Trace logic flows and identify potential bugs
- Security Scanning: Detect vulnerabilities and security anti-patterns
- Performance Analysis: Identify bottlenecks and optimization opportunities
- Code Quality: Assess maintainability and best practices adherence
- Test Execution: Run tests with any framework (Jest, Mocha, Pytest, etc.)
- Failure Analysis: Deep-dive into test failures with root cause analysis
- Coverage Assessment: Identify test coverage gaps
- Regression Detection: Compare results with baseline metrics
- Tool Creation: Scaffold new MCP tools following best practices
- Registry Management: Maintain consistent tool catalog
- Validation: Ensure tools follow MCP standards
- Documentation: Generate comprehensive docs with examples
# Install the extension
gemini extensions install rafeekpro/GeminiAutoPM
# Verify installation
gemini extensions listOnce installed, the tools are automatically available in Gemini CLI:
# Start Gemini CLI
gemini
# Use the tools in natural language
> Use the code_analyzer tool to review my authentication module for security issues
> Use the test_runner tool to execute all unit tests and analyze failures
> Use the agent_manager tool to create a new MCP tool for GraphQL developmentPerforms deep code analysis for bugs, security vulnerabilities, and optimization opportunities.
Parameters:
task(required): The code analysis task to performscope(optional): Analysis focus (security, performance, bugs)files(optional): Specific files to analyze
Example:
Use code_analyzer to scan the src/auth directory for security vulnerabilities
Context7 Queries:
mcp://context7/security/code-analysismcp://context7/security/vulnerability-scanningmcp://context7/code-quality/static-analysis
Executes tests and provides comprehensive failure analysis.
Parameters:
task(required): The test execution taskscope(optional): Test type (unit, integration, e2e)testPattern(optional): Test file patternframework(optional): Test framework (jest, mocha, pytest)
Example:
Use test_runner to run all integration tests and analyze any failures
Context7 Queries:
mcp://context7/testing/test-frameworksmcp://context7/testing/jestmcp://context7/testing/test-analysis
Creates and manages MCP tools and agent definitions.
Parameters:
task(required): Management task (create, analyze, update)scope(optional): Management scopeagentType(optional): Type of agent/toolcapabilities(optional): Required capabilities
Example:
Use agent_manager to create a new tool for Docker containerization
Context7 Queries:
mcp://context7/mcp/model-context-protocolmcp://context7/mcp/tool-developmentmcp://context7/typescript/zod-validation
GeminiAutoPM/
βββ src/
β βββ agents/ # Agent implementations
β β βββ code-analyzer.ts
β β βββ test-runner.ts
β β βββ agent-manager.ts
β βββ types/ # TypeScript types
β β βββ agent.ts
β βββ agents-server.ts # Main MCP server
βββ gemini-extension.json # Extension manifest
βββ GEMINI.md # Persistent context
βββ package.json
- Extension Loading: Gemini CLI loads the extension and reads
GEMINI.md - MCP Server Start: The
agents-server.tsstarts via stdio transport - Tool Registration: Three tools are registered with the MCP server
- Tool Invocation: Gemini model can invoke tools based on user requests
- Result Processing: Tool results are returned as structured content
- Node.js >= 20.0.0
- npm >= 10.0.0
- Gemini CLI installed
# Clone the repository
git clone https://github.com/rafeekpro/GeminiAutoPM.git
cd GeminiAutoPM
# Install dependencies
npm install
# Build the project
npm run build
# Link for local development
gemini extensions link .# Run tests
npm test
# Watch mode
npm run test:watch
# Coverage report
npm run test:coveragenpm run build # Compile TypeScript to JavaScript
npm run dev # Watch mode for development
npm test # Run Jest tests
npm run test:coverage # Generate coverage reportAlways query Context7 documentation before implementing:
- Verify API signatures against live documentation
- Apply current best practices
- Follow industry standards
All code follows TDD:
- Write tests FIRST
- Implement functionality
- Refactor while keeping tests green
- Achieve comprehensive coverage
Security is paramount:
- Use
code_analyzerwith security scope before releases - Follow OWASP and CWE standards
- Validate all inputs
- Handle errors gracefully
{
"name": "gemini-autopm",
"version": "0.1.0",
"contextFileName": "GEMINI.md",
"mcpServers": {
"autopm-agents": {
"command": "node",
"args": ["${extensionPath}/dist/agents-server.js"],
"cwd": "${extensionPath}"
}
}
}The extension is automatically configured. No manual settings required.
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Follow TDD - write tests first
- Ensure all tests pass (
npm test) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow TypeScript strict mode
- Use Zod for input validation
- Include Context7 documentation queries
- Write comprehensive tests (80%+ coverage)
- Add usage examples to tool descriptions
- Update documentation
MIT License - see LICENSE file for details
- Built on Model Context Protocol (MCP)
- Powered by Gemini CLI
- Inspired by ClaudeAutoPM
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Wiki
- β MCP server with 3 core agent tools
- β Basic documentation and examples
- β Initial test coverage
- Add 10 more specialized agent tools
- Project management prompts (epic decomposition, task breakdown)
- DevOps automation tools
- Enhanced test analysis features
- Multi-server architecture
- Custom command definitions (TOML)
- Advanced Context7 integration
- Docker sandbox support
- CI/CD integration examples
- Tool allowlisting and security controls
- Performance optimization
- Multi-project support
- Advanced analytics and reporting
If you find GeminiAutoPM useful, please consider giving it a star on GitHub!
Made with β€οΈ for the Gemini CLI community