AI Agent

Implementation Learnings Format

Install
1
Install the plugin
$
npx claudepluginhub majesticlabs-dev/majestic-marketplace --plugin majestic-engineer

Want just this agent?

Add to a custom plugin, then install with one command.

Description

Reference for Step 10 of build-task-workflow-manager. Defines what to capture and how to format it for AGENTS.md.

Tool Access
All tools
Requirements
Requires power tools
Agent Content

Implementation Learnings Format

Reference for Step 10 of build-task-workflow-manager. Defines what to capture and how to format it for AGENTS.md.

What to Capture

Patterns

Conventions that emerged consistently across 2+ modified files:

  • Import organization (grouping, ordering)
  • Naming conventions (methods, variables, files)
  • File structure patterns (where things go)
  • Code organization (module boundaries, layering)

Gotchas

Non-obvious requirements discovered during build or fix loop:

  • Hidden dependencies between components
  • Ordering constraints not documented
  • Framework quirks requiring workarounds
  • Environment-specific behaviors

Anti-Patterns

Approaches that failed during the fix loop (only when ATTEMPTS > 1):

  • What was tried and failed
  • Why it failed
  • What worked instead

Output Format

Append to the nearest AGENTS.md, organized by type:

## Patterns

| Pattern | Location |
|---------|----------|
| Consistent import grouping: stdlib, gems, app | `app/services/` |
| Form objects inherit from ApplicationForm | `app/forms/` |

## Gotchas

- ActiveJob must be configured before Turbo broadcasts work — missing config causes silent failures
- Stimulus controller names must match filename exactly — no aliases

## Anti-Patterns

| Don't | Why | Do Instead |
|-------|-----|------------|
| Inline SQL in controllers | Breaks when schema changes | Use scope methods on model |
| Skip N+1 checks in dev | Explodes in production | Use strict_loading or bullet gem |

Rules

  • Dedupe: Compare against existing AGENTS.md content before appending
  • Skip when: No files modified, all learnings already documented, or trivial changes only
  • Location: Walk up from primary modified directory until AGENTS.md found (fallback: root)
  • Merge: Append to existing sections if they exist, create new sections if not
Stats
Stars30
Forks6
Last CommitFeb 13, 2026
Actions

Similar Agents

code-reviewer
powertoolsall tools

Use this agent when a major project step has been completed and needs to be reviewed against the original plan and coding standards. Examples: <example>Context: The user is creating a code-review agent that should be called after a logical chunk of code is written. user: "I've finished implementing the user authentication system as outlined in step 3 of our plan" assistant: "Great work! Now let me use the code-reviewer agent to review the implementation against our plan and coding standards" <commentary>Since a major project step has been completed, use the code-reviewer agent to validate the work against the plan and identify any issues.</commentary></example> <example>Context: User has completed a significant feature implementation. user: "The API endpoints for the task management system are now complete - that covers step 2 from our architecture document" assistant: "Excellent! Let me have the code-reviewer agent examine this implementation to ensure it aligns with our plan and follows best practices" <commentary>A numbered step from the planning document has been completed, so the code-reviewer agent should review the work.</commentary></example>

102.8k