Skip to content

Commit 70fec4d

Browse files
committed
refactor(commands): fix maintenance typo and simplify command descriptions
1 parent e621fc3 commit 70fec4d

9 files changed

Lines changed: 30 additions & 8 deletions

File tree

.gemini/commands/commit.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
description = "Analyze uncommitted changes, group them by feature, and commit them individually using Conventional Commits."
1+
description = "Group and commit uncommitted changes individually using Conventional Commits."
22

33
prompt = """
44
Please analyze all current uncommitted changes (including untracked files).

.gemini/commands/docs.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
description = "Analyze the codebase and update/generate project documentation in the docs/ folder."
1+
description = "Analyze codebase to update or generate project documentation in the docs folder."
22
prompt = """
33
You are a senior technical writer and software engineer. Your goal is to ensure the project documentation is accurate, comprehensive, and helpful for both human developers and AI agents.
44

.gemini/commands/issues.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
description = "Manage project issues with GitHub CLI: list summary, create, update, or plan work."
1+
description = "Manage project issues using GitHub CLI: list, create, update, or plan work."
22

33
prompt = """
44
You are an expert project lead. Your goal is to manage project issues using the `gh` (GitHub) CLI.

.gemini/commands/maintenance.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
description = "Analyze and propose refactoring plans to improve code readability and maintainability."
2+
prompt = """
3+
You are an expert software engineer performing a comprehensive codebase maintenance on the current workspace.
4+
5+
**Phase 1: Deep Analysis & Planning**
6+
Run a deep analysis of the current codebase focusing on performance, security, readability, and overall maintainability.
7+
**Crucial:** Do NOT propose changes that alter existing functionality or fix bugs. This is strictly a maintenance, clean-up, and refactoring operation.
8+
9+
Create a detailed and expressive plan with the following priorities:
10+
1. **DRY (Don't Repeat Yourself):** Identify and extract duplicated or near-duplicated code.
11+
2. **Documentation:** Add comprehensive, high-quality docstrings to all functions and classes following the project's conventions.
12+
3. **Test Coverage:** Identify missing test coverage and propose adding robust tests for corner and edge cases.
13+
4. **Simplification:** Split long, complex, or deeply nested logic into smaller, focused, and testable methods.
14+
15+
Your proposed plan must be highly expressive and detailed. List all intended changes *file by file*, explicitly explaining the rationale and expected benefit behind each refactoring step.
16+
17+
**Phase 2: User Agreement**
18+
Stop and present your complete plan to the user. Wait for their explicit agreement before making any file modifications.
19+
20+
**Phase 3: Step-by-Step Implementation**
21+
Upon user agreement, implement the plan iteratively, step by step. Ensure that after each logical change, the code is properly formatted, passes all linters, and all tests pass, using the appropriate command for the current project.
22+
"""

.gemini/commands/onboard.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
description = "Onboard a new developer to the project by summarizing the architecture, coding standards, and current state."
1+
description = "Summarize architecture, standards, and state to onboard a new developer."
22
prompt = """
33
You are a senior software engineer responsible for onboarding a new developer to this project.
44
Your goal is to provide a clear, concise, and professional orientation that allows the newcomer to understand the codebase and start contributing effectively.

.gemini/commands/release.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
description = "Automate the release process: check workspace, run tests, determine version bump, update CHANGELOG.md, tag, and push."
1+
description = "Automate the release process including testing, versioning, changelog, and tagging."
22

33
prompt = """
44
You are a senior software engineer responsible for the release process of this project.

.gemini/commands/research.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
description = "Perform deep research on a topic in a structured 3-phase workflow: planning, data gathering, and reporting."
1+
description = "Conduct structured research through planning, data gathering, and reporting phases."
22

33
prompt = """
44
You are an expert researcher. Follow this robust 3-phase workflow to conduct exhaustive research on the following topic: {{args}}

.gemini/commands/scaffold.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
description = "Scaffold a new project using modern standard practices and tooling (e.g., Python/uv, JS/npm, Rust, Go, C#)."
1+
description = "Scaffold a new project using modern standard practices and tooling."
22

33
prompt = """
44
You are an expert system architect and project scaffolder. Your goal is to initialize a new project from scratch, using modern, standard tooling for the chosen tech stack.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The `.gemini/commands/` directory defines specialized workflows:
5454
* **/commit**: Analyzes changes, groups them logically, and commits them one-by-one using Conventional Commits.
5555
* **/release**: Automates version bumping, `CHANGELOG.md` updates, and git tagging.
5656
* **/issues**: Manage project issues with GitHub CLI: list summary, create, update, or plan work.
57-
* **/maintainance**: Performs deep analysis and proposes step-by-step refactoring plans.
57+
* **/maintenance**: Performs deep analysis and proposes step-by-step refactoring plans.
5858
* **/docs**: Generates and maintains project documentation.
5959
* **/onboard**: Helps new developers (or the agent itself) understand the project structure.
6060

0 commit comments

Comments
 (0)