Skip to content

Conversation

@blooop
Copy link
Owner

@blooop blooop commented Jan 17, 2026

Summary

  • Add AGENTS.md with devcontainer and gh cli documentation for AI agents
  • Symlink CLAUDE.mdAGENTS.md for Claude Code compatibility
  • Add /project:fix-issue slash command for GitHub issue workflow
  • Remove .claude/README.md (not part of Claude's memory system per 2026 standards)

Changes

File Change
AGENTS.md New - agent instructions with gh cli usage
CLAUDE.md New - symlink to AGENTS.md
.claude/commands/fix-issue.md New - slash command for fixing GitHub issues
.claude/README.md Deleted - was human docs, not agent memory

Test plan

  • Verify CLAUDE.md symlink works: cat CLAUDE.md
  • Test /project:fix-issue command in Claude Code session

🤖 Generated with Claude Code

Summary by Sourcery

Document agent environment usage and add a command for handling GitHub issues directly from Claude.

New Features:

  • Introduce AGENTS.md documenting agent usage of the devcontainer, pixi tasks, and GitHub CLI.
  • Add a Claude slash command documentation file for fixing GitHub issues via /project:fix-issue, including recommended workflow steps.

Enhancements:

  • Create CLAUDE.md as a symlink-style pointer to AGENTS.md for Claude Code compatibility and centralized agent docs.

Documentation:

  • Add agent-focused documentation for development tooling and command usage, and remove outdated .claude/README.md that is no longer relevant.

- Add AGENTS.md with devcontainer/gh cli documentation
- Symlink CLAUDE.md to AGENTS.md for Claude Code compatibility
- Add /project:fix-issue command for GitHub issue workflow
- Remove .claude/README.md (not part of memory system)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sourcery-ai
Copy link

sourcery-ai bot commented Jan 17, 2026

Reviewer's Guide

Introduces shared agent instructions for the devcontainer/gh CLI, wires them into Claude Code via a CLAUDE.md symlink, and adds a new /project:fix-issue command for GitHub issue handling while cleaning up obsolete Claude docs.

Flow diagram for fix-issue command steps

flowchart TD
  A[Start /project:fix-issue with ARGUMENTS] --> B[Run pixi run gh issue view ARGUMENTS]
  B --> C[Fetch issue details]
  C --> D[Extract issue number from URL for commit message]
  D --> E[Understand problem and locate relevant code]
  E --> F[Implement the fix in code]
  F --> G[Run pixi run ci<br/>format, lint, test, coverage]
  G --> H{CI successful}
  H -- No --> I[Fix issues and rerun pixi run ci]
  I --> G
  H -- Yes --> J[Commit changes with message referencing issue<br/>example Fixes #123]
  J --> K[Run pixi run gh pr create]
  K --> L[PR created on GitHub]
Loading

File-Level Changes

Change Details Files
Document environment and tooling usage for AI agents working in the devcontainer.
  • Added AGENTS.md describing the devcontainer setup and pixi-based environment management.
  • Documented GitHub CLI availability via pixi and login shells.
  • Clarified preferred usage of pixi tasks and how to discover available tasks.
AGENTS.md
Integrate the new agent docs with Claude Code conventions and remove outdated Claude-specific documentation.
  • Added CLAUDE.md as a symlink-style pointer to AGENTS.md for Claude Code compatibility.
  • Removed the obsolete .claude/README.md which contained human-targeted docs not used by the memory system.
CLAUDE.md
.claude/README.md
Add a structured slash command to guide agents through fixing GitHub issues using the project workflow.
  • Introduced .claude/commands/fix-issue.md describing the /project:fix-issue command behavior and its expected argument.
  • Defined a step-by-step workflow for viewing an issue via gh, implementing a fix, running CI, writing an issue-referencing commit message, and opening a PR.
  • Documented accepted input formats (URL or issue number) and expectations around minimal, focused changes and adding tests for bug fixes.
.claude/commands/fix-issue.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • In .claude/commands/fix-issue.md, step 2 about extracting the issue number from the URL could be more concrete (e.g., showing how to handle both numeric IDs and full URLs, or using gh issue view --json number), so agents can reliably construct commit messages without manual parsing ambiguity.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In `.claude/commands/fix-issue.md`, step 2 about extracting the issue number from the URL could be more concrete (e.g., showing how to handle both numeric IDs and full URLs, or using `gh issue view --json number`), so agents can reliably construct commit messages without manual parsing ambiguity.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@blooop blooop merged commit 3d6a51b into main Jan 17, 2026
7 checks passed
@blooop blooop deleted the feature/agent-instructions branch January 17, 2026 13:38
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.

2 participants