Skip to content

Conversation

@marcusquinn
Copy link
Owner

@marcusquinn marcusquinn commented Jan 20, 2026

Summary

  • Add readme-create-update.md subagent in workflows/
  • Add /readme slash command with --sections support for partial updates

Key Features

Three Purposes of a README (from Shpigford's skill):

  1. Local Development - Get running in minutes
  2. Understanding the System - How it works
  3. Production Deployment - Ship and maintain it

aidevops Enhancements:

  • Framework-agnostic stack detection (Node, Python, Rust, Go, Ruby, PHP, .NET, shell)
  • Deployment platform detection (Docker, Fly.io, Vercel, Netlify, Coolify, K8s, etc.)
  • Maintainability-first approach (avoid staleness patterns)
  • AI-CONTEXT blocks for AI-readable documentation
  • Collapsible sections uncollapsed by default
  • Adapts to existing README structure when updating

Usage

# Create/update full README
/readme

# Update specific sections only
/readme --sections "installation,usage"
/readme --sections "troubleshooting"

Files Changed

  • .agent/workflows/readme-create-update.md - Main workflow subagent
  • .agent/scripts/commands/readme.md - Slash command definition

Inspiration

Based on Shpigford's README skill with aidevops conventions and build-agent best practices applied.

Summary by CodeRabbit

  • New Features

    • Added README create/update workflow with commands for full regeneration or selective section updates via a --sections option
    • Section mapping for targeted edits and examples for full and partial updates
  • Documentation

    • Comprehensive workflow spec, quick reference, guidance for exploring projects, templates for common README sections, maintainability tips, and a quality checklist

✏️ Tip: You can customize this high-level summary in your review settings.

- Add readme-create-update.md subagent in workflows/
- Add /readme slash command with --sections support
- Framework-agnostic stack and deployment detection
- Maintainability-first approach (avoid staleness patterns)
- AI-CONTEXT blocks for AI-readable documentation
- Collapsible sections uncollapsed by default
- Adapts to existing README structure when updating

Inspired by Shpigford's README skill with aidevops conventions.
@gemini-code-assist
Copy link

Summary of Changes

Hello @marcusquinn, 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 capabilities by introducing an automated system for creating and updating README.md files. It provides a new /readme command that can either generate a full README from scratch or intelligently update specific sections, preserving existing custom content. The underlying workflow employs advanced codebase analysis to detect project technologies and deployment environments, ensuring that the generated documentation is relevant, accurate, and adheres to best practices for maintainability, including the use of AI-friendly AI-CONTEXT blocks.

Highlights

  • New /readme Command: Introduced a new slash command, /readme, to automate the creation and updating of README.md files for projects.
  • Partial README Updates: The /readme command now supports a --sections flag, allowing users to update specific sections of an existing README (e.g., installation, usage) without regenerating the entire file, preserving custom content.
  • Dedicated Workflow Subagent: A new subagent workflow, readme-create-update.md, has been added. This workflow encapsulates the logic for intelligent README generation and updates, ensuring consistency and adherence to best practices.
  • Intelligent Codebase Exploration: The workflow includes robust steps for deep codebase exploration, automatically detecting project types (e.g., Node.js, Python, Rust) and deployment platforms (e.g., Docker, Vercel, Kubernetes) to tailor the README content accurately.
  • Maintainability-First Approach: The new workflow emphasizes maintainability by avoiding patterns that lead to stale information (like hardcoded counts or versions), promoting references to source files, and incorporating AI-CONTEXT blocks for AI-readable documentation.
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.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 20, 2026

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

Adds two documentation artifacts that define a README create/update capability: a command specification for a README agent command and a detailed workflow describing triggers, step-by-step guidance, section mappings, selective --sections updates, templates, and quality checks.

Changes

Cohort / File(s) Summary
README Command & Workflow
​.agent/scripts/commands/readme.md, ​.agent/workflows/readme-create-update.md
Adds a README management command spec and a comprehensive workflow doc. Defines agent metadata, step sequence (argument parsing, guidance loading, codebase exploration, content generation/update, confirmation), section mapping for partial updates, templates for README sections, usage examples, and a quality checklist.

Sequence Diagram(s)

(omitted — changes are documentation/workflow additions without a multi-component runtime control flow that needs visualization)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Poem

📖 A README blooms where code and notes entwine,
Sections mapped and polished, every line,
Commands to craft or surgically replace,
Doclight guiding every dev's embrace. ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main changes: adding a README workflow and slash command. It directly reflects the two new files introduced in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 317 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Tue Jan 20 23:34:39 UTC 2026: Code review monitoring started
Tue Jan 20 23:34:40 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 317
Tue Jan 20 23:34:40 UTC 2026: Qlty - 0 issues found, auto-formatting applied
Tue Jan 20 23:34:42 UTC 2026: Codacy analysis completed with auto-fixes

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 317
  • VULNERABILITIES: 0

Generated on: Tue Jan 20 23:35:25 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

Copy link

@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

The pull request introduces a valuable feature for README management, including a new slash command and a detailed workflow. The documentation is generally comprehensive, but I've identified a minor clarity improvement for the command's argument description and a more significant inconsistency in the section mapping between the command definition and its associated workflow document. Addressing these will enhance user experience and ensure consistent agent behavior.


Create or update a comprehensive README.md file for the current project.

Arguments: $ARGUMENTS

Choose a reason for hiding this comment

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

medium

The line "Arguments: $ARGUMENTS" appears to be a placeholder. For better clarity and user understanding, especially if this document is intended for direct human consumption, it would be beneficial to either explain what $ARGUMENTS represents or provide a more descriptive sentence about how arguments are handled by the /readme command. For example, "Arguments: This command accepts various flags and values, such as --sections."

Comment on lines 359 to 367
| `--sections` value | Updates |
|--------------------|---------|
| `installation` | Installation, Prerequisites, Quick Start |
| `usage` | Usage, Commands, Examples |
| `config` | Configuration, Environment Variables |
| `architecture` | Architecture, Project Structure |
| `troubleshooting` | Troubleshooting section |
| `deployment` | Deployment, Production Setup |
| `all` | Full regeneration (default) |

Choose a reason for hiding this comment

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

medium

The "Section Mapping" table in this workflow document is inconsistent with the one defined in .agent/scripts/commands/readme.md. Specifically:

  1. The usage section in this document lists "Usage, Commands, Examples", while the command definition includes "API".
  2. This document is missing the badges section entirely, which is present in the command definition.

These inconsistencies could lead to confusion or incorrect behavior if the agent relies on these mappings. It's important for the workflow guidance to accurately reflect the command's capabilities.

Suggested change
| `--sections` value | Updates |
|--------------------|---------|
| `installation` | Installation, Prerequisites, Quick Start |
| `usage` | Usage, Commands, Examples |
| `config` | Configuration, Environment Variables |
| `architecture` | Architecture, Project Structure |
| `troubleshooting` | Troubleshooting section |
| `deployment` | Deployment, Production Setup |
| `all` | Full regeneration (default) |
| --sections value | Updates |
|--------------------|---------|
| `installation` | Installation, Prerequisites, Quick Start |
| `usage` | Usage, Commands, Examples, API |
| `config` | Configuration, Environment Variables |
| `architecture` | Architecture, Project Structure |
| `troubleshooting` | Troubleshooting |
| `deployment` | Deployment, Production Setup |
| `badges` | Badge section only |
| `all` | Full regeneration (default) |

- Add API to usage section mapping for consistency
- Add badges section to workflow section mapping
- Clarify Arguments description in command file
@augmentcode
Copy link

augmentcode bot commented Jan 20, 2026

🤖 Augment PR Summary

Summary: Adds a dedicated README generation/update workflow and a new /readme slash command to standardize README maintenance across projects.

Changes:

  • Introduces .agent/workflows/readme-create-update.md as a subagent workflow for creating/updating comprehensive READMEs
  • Adds .agent/scripts/commands/readme.md to expose the workflow via /readme (full regeneration by default)
  • Supports partial updates via /readme --sections "..." to update only selected sections while preserving custom content
  • Guides stack and deployment detection (common language/build files + deployment configs) before writing docs
  • Provides recommended README section ordering and reusable templates (Quick Start, Architecture, Config, Troubleshooting)
  • Emphasizes maintainability (avoid stale counts/versions, prefer linking to source over duplicating it)
  • Encourages AI-readable AI-CONTEXT blocks and optional <details open> sections for progressive disclosure
  • Includes a quality checklist to validate that README content is runnable and remains accurate over time

Technical Notes: Workflow enables read/write/edit/bash tooling and includes concrete shell commands for quick repository exploration.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 2 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

| `architecture` | Architecture, Project Structure |
| `troubleshooting` | Troubleshooting |
| `deployment` | Deployment, Production Setup |
| `badges` | Badge section only |
Copy link

Choose a reason for hiding this comment

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

The /readme command’s section mapping includes a badges option, but the workflow’s --sections mapping doesn’t document it; this can lead to users/agents having different expectations about which values are supported.

Other Locations
  • .agent/workflows/readme-create-update.md:359

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎

| `--sections` value | Updates |
|--------------------|---------|
| `installation` | Installation, Prerequisites, Quick Start |
| `usage` | Usage, Commands, Examples |
Copy link

Choose a reason for hiding this comment

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

The --sections mapping for usage doesn’t mention API updates, but earlier guidance calls out updating “usage/API” and the /readme command mapping includes API; consider reconciling so partial updates don’t accidentally skip API docs.

Other Locations
  • .agent/workflows/readme-create-update.md:48
  • .agent/scripts/commands/readme.md:84

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎

@sonarqubecloud
Copy link

@github-actions
Copy link

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 317 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Tue Jan 20 23:37:44 UTC 2026: Code review monitoring started
Tue Jan 20 23:37:44 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 317
Tue Jan 20 23:37:45 UTC 2026: Qlty - 0 issues found, auto-formatting applied
Tue Jan 20 23:37:47 UTC 2026: Codacy analysis completed with auto-fixes

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 317
  • VULNERABILITIES: 0

Generated on: Tue Jan 20 23:38:30 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In @.agent/workflows/readme-create-update.md:
- Around line 359-367: Update the section-mapping table in
.agent/workflows/readme-create-update.md so it exactly matches the mapping in
.agent/scripts/commands/readme.md: add a `badges` entry, change the `usage`
mapping to include "API" (e.g., "Usage, Commands, Examples, API"), and normalize
the troubleshooting wording to match the command file (replace "Troubleshooting
section" with the exact phrase used in the command file); ensure the table keys
(`installation`, `usage`, `config`, `architecture`, `troubleshooting`,
`deployment`, `all`, `badges`) and their mapped values are identical to avoid
divergence.
🧹 Nitpick comments (2)
.agent/workflows/readme-create-update.md (1)

96-110: Document jq dependency or provide fallback.

Line 101 uses jq to parse JSON, but jq may not be available in all environments. Since these are example commands for codebase exploration, consider either:

  1. Documenting jq as a recommended tool in the frontmatter or prerequisites
  2. Providing a fallback using basic shell tools (e.g., grep, sed)
Alternative without jq dependency
 # Package info
-cat package.json 2>/dev/null | jq '{name, description, scripts}' 
+cat package.json 2>/dev/null | jq '{name, description, scripts}' || cat package.json 2>/dev/null

Or mention the dependency:

 # Gather Information**:
+
+*Note: Examples use `jq` for JSON parsing. Install via package manager if not available.*
 
 ```bash
.agent/scripts/commands/readme.md (1)

38-44: Path reference may be incomplete.

Line 43 references workflows/readme-create-update.md, but based on the file structure in this PR, the full path should be .agent/workflows/readme-create-update.md. Verify whether the .agent/ prefix is implied in the execution context or should be explicitly stated for clarity.

-Read: workflows/readme-create-update.md
+Read: .agent/workflows/readme-create-update.md

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Fix all issues with AI agents
In @.agent/scripts/commands/readme.md:
- Around line 40-44: Update the hardcoded reference "Read:
workflows/readme-create-update.md" to the actual workflow file path used in this
PR (replace that literal with the correct concrete path from the repo),
preserving the surrounding code block formatting and ensure any other
occurrences of the same literal are updated so operators/agents see the correct
workflow location.

In @.agent/workflows/readme-create-update.md:
- Around line 25-28: Summary: Hyphenate the compound adjective "high-level" in
the README line. Locate the sentence "Understanding the System - How it works at
a high level" (the second list item in the README section) and change "high
level" to "high-level" so the phrase reads "How it works at a high-level" (or
better, "How it works at a high level" → "How it works at a high level" with
hyphenation applied as "high-level" immediately before "overview" if
restructuring; ensure the compound adjective is hyphenated when used
adjectivally).

Comment on lines +40 to +44
Read the full workflow guidance:

```text
Read: workflows/readme-create-update.md
```
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Align workflow path with actual location.
To avoid operator/agent confusion, reference the concrete path shown in this PR.

🔧 Proposed tweak
-Read: workflows/readme-create-update.md
+Read: .agent/workflows/readme-create-update.md
🤖 Prompt for AI Agents
In @.agent/scripts/commands/readme.md around lines 40 - 44, Update the hardcoded
reference "Read: workflows/readme-create-update.md" to the actual workflow file
path used in this PR (replace that literal with the correct concrete path from
the repo), preserving the surrounding code block formatting and ensure any other
occurrences of the same literal are updated so operators/agents see the correct
workflow location.

Comment on lines +25 to +28
**Three Purposes of a README**:
1. **Local Development** - Get running in minutes
2. **Understanding the System** - How it works at a high level
3. **Production Deployment** - Ship and maintain it
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Hyphenate the compound adjective (“high-level”).
Static analysis flagged the compound adjective. Small fix to keep docs A‑grade.

🔧 Proposed tweak
-2. **Understanding the System** - How it works at a high level
+2. **Understanding the System** - How it works at a high-level
🧰 Tools
🪛 LanguageTool

[uncategorized] ~27-~27: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...anding the System** - How it works at a high level 3. Production Deployment - Ship and...

(EN_COMPOUND_ADJECTIVE_INTERNAL)

🤖 Prompt for AI Agents
In @.agent/workflows/readme-create-update.md around lines 25 - 28, Summary:
Hyphenate the compound adjective "high-level" in the README line. Locate the
sentence "Understanding the System - How it works at a high level" (the second
list item in the README section) and change "high level" to "high-level" so the
phrase reads "How it works at a high-level" (or better, "How it works at a high
level" → "How it works at a high level" with hyphenation applied as "high-level"
immediately before "overview" if restructuring; ensure the compound adjective is
hyphenated when used adjectivally).

@marcusquinn marcusquinn merged commit f99d810 into main Jan 20, 2026
21 checks passed
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