code-agent

Automate repository-wide code investigation, implementation, and verification.

186|56|Updated Aug 13, 2025
One-click install
npx skills add https://github.com/aws-samples/sample-strands-agent-with-agentcore --skill code-agent
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: code-agent
Source: https://github.com/aws-samples/sample-strands-agent-with-agentcore/tree/main/chatbot-app/agentcore/skills/code-agent
Command: npx skills add https://github.com/aws-samples/sample-strands-agent-with-agentcore --skill code-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the friction of diagnosing, implementing, and verifying code changes across a repository by autonomously exploring the workspace, proposing a plan, making changes, and running verification steps so maintainers can focus on intent and decisions rather than low-level investigation.

Core Features & Use Cases

  • Repository-wide exploration: Reads project files to understand architecture, dependencies, and patterns before making changes.
  • Phased implementation: Splits work into explore, implement, integrate, and verify phases with checkpoints for review.
  • Automated verification: Runs tests, reports results, and iterates until correctness criteria are met.
  • Use Case: Triage a failing CI test, identify the root cause across multiple modules, propose a fix, implement it, and confirm the test suite passes.

Quick Start

Ask the code-agent to investigate the hanging stop button issue by exploring the relevant files, proposing a plan, and implementing a verified fix.

Frequently Asked Questions about code-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate a multi-file bug fix across my repository?▼

Automating a multi-file bug fix requires autonomous workspace exploration, scoped phased implementation, and iterative test verification. The code-agent reads project files to understand architecture, proposes a plan, implements changes across modules, and runs the test suite until correctness criteria are met.

What is the best way to refactor code across multiple modules autonomously?▼

Autonomous multi-module refactoring works best when split into explore, implement, integrate, and verify phases with checkpoints. This approach reads project dependencies and patterns before making changes, ensuring the refactor aligns with existing architecture while running automated tests to confirm correctness.

Can I automate test suite repair and CI test triage for my project?▼

Automating test suite repair and CI test triage is possible by autonomously investigating hanging or failing tests across multiple modules. The agent identifies the root cause, proposes a scoped fix, implements the changes, and iteratively runs verification steps until the failing test suite passes.

Does autonomous code investigation work for adding new features to an existing workspace?▼

Autonomous code investigation supports feature additions within a project's workspace by first reading project files to understand dependencies and patterns. It then proposes a phased implementation plan, applies the feature changes, and executes automated verification steps to ensure integration succeeds.

How does automated code verification handle iterative test execution?▼

Automated code verification handles iterative test execution by running tests, reporting results, and iterating through changes until correctness criteria are met. This ensures that multi-file bug fixes, refactors, and feature additions are validated within the workspace before completion.

When should I avoid using an autonomous agent for repository tasks?▼

You should avoid using an autonomous agent for repository tasks when low-level manual investigation is preferred over intent-based decisions, or when a project's workspace lacks automated tests. The agent relies on running test suites to iteratively verify correctness, which is essential for its phased implementation approach.