al-pr-prepare

al-pr-prepare is a command for Claude Code from javiarmesto/ALDC-AL-Development-Collection. It costs 39 tokens per session (1,763 once invoked), scanned A, original, MIT.

A pull request draft assistant for AL code changes. A pull request is a proposed set of changes submitted for review before it is added to the main codebase.

In plain words
What is it for?
Use it to summarize branch differences, commits, files, tests, security checks, related work, and configuration or documentation changes before preparing a pull request draft.
Why use it?
It helps reviewers understand what changed, which tests and checks were run, and whether the branch is ready for review.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Part of the aldc plugin — 10 commands, 1 hook shipped together

Good fit Use it to summarize branch differences, commits, files, tests, security checks, related work, and configuration or documentation changes before preparing a pull request draft.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/javiarmesto/aldc-al-development-collection/al-pr-prepare
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/javiarmesto/ALDC-AL-Development-Collection

Made for: Claude Code.

Or install aldc, the plugin that ships this one along with the rest of its 10 commands, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for al-pr-prepare

README.md
[![agentmods](https://agentmods.dev/badge/commands/javiarmesto/aldc-al-development-collection/al-pr-prepare/github.svg)](https://agentmods.dev/commands/javiarmesto/aldc-al-development-collection/al-pr-prepare)
Your own site
<a href="https://agentmods.dev/commands/javiarmesto/aldc-al-development-collection/al-pr-prepare"><img src="https://agentmods.dev/badge/commands/javiarmesto/aldc-al-development-collection/al-pr-prepare/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for al-pr-prepare

Your own site · 80×15
<a href="https://agentmods.dev/commands/javiarmesto/aldc-al-development-collection/al-pr-prepare"><img src="https://agentmods.dev/badge/commands/javiarmesto/aldc-al-development-collection/al-pr-prepare.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,763 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.01763
Opus 5 $0.00019 $0.00881
Sonnet 5 $0.00008 $0.00353
Haiku 4.5 $0.00004 $0.00176

Measured today against content hash 0e2bcae8cab1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

al-pr-prepare scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-plugin/commands/al-pr-prepare.md · 338 lines

How it starts

The opening of the file, as written. The whole thing — 338 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AL Pull Request Preparation

Your goal is to prepare a pull request draft for the branch ${input:Branch} summarizing all modifications, test evidence, and validation steps.

🔒 Human Gate: Pre-PR Review

Before generating PR draft document:

  1. Review code changes - Present summary of all modifications
  2. Security check - Confirm no sensitive data in commits
  3. Quality validation - Verify tests pass and build succeeds
  4. Human approval required - Obtain confirmation before creating PR draft

Process

1. Change Analysis

Inspect Branch Differences

Compare the branch against main with Bash:

git diff main...${input:Branch} --stat
git log main..${input:Branch} --oneline

Gather:

  • Modified files and line counts
  • New files added
  • Deleted files
  • Commit messages and references
  • Related issues or work items
Classify Changes

Categorize into:

  1. New Features - New AL objects, functionality, APIs
  2. Bug Fixes - Corrections, refactors, optimizations
  3. Tests - Test codeunits, scenarios, data
  4. Configuration - app.json, permissions, dependencies
  5. Documentation - README, comments, API docs

2. Extract Metadata

Find References: Scan commit messages for:

  • Issue references (#123)
  • Work item IDs
  • Requirement numbers

Pattern matching:

  • Fixes #123
  • Closes #456
  • Related to WORK-789

Identify Reviewers: If ${input:Reviewer} is specified, include in the draft.

3. Generate PR Draft

Create /reports/pr-draft.md with this structure:

# Pull Request: [Feature/Fix Title]

**Branch:** `${input:Branch}`
**Target:** `main`
**Author:** [Author Name]
**Date:** [Current Date]

## Overview

[2-3 sentence description of changes]

**Type of Change:**
- [ ] New Feature
- [ ] Bug Fix
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Documentation
- [ ] Configuration Change

## Related Issues

- Closes #[issue-number]
- Relates to #[issue-number]

## Changes Summary

### File Changes

| Category | Files | +Lines | -Lines |
|----------|-------|--------|--------|
| New Features | [#] | [#] | [#] |
| Bug Fixes | [#] | [#] | [#] |
| Tests | [#] | [#] | [#] |
| Docs | [#] | [#] | [#] |
| **Total** | **[#]** | **[#]** | **[#]** |

### AL Objects Modified

#### New Objects

| Type | ID | Name | Purpose |
|------|----|----- |---------|
| Table | [ID] | [Name] | [Purpose] |
| Page | [ID] | [Name] | [Purpose] |
| Codeunit | [ID] | [Name] | [Purpose] |

#### Modified Objects

| Type | ID | Name | Changes |
|------|----|----- |---------|
| TableExt | [ID] | [Name] | [Description] |
| PageExt | [ID] | [Name] | [Description] |

#### Deleted Objects

| Type | ID | Name | Reason |
|------|----|----- |-------|
| [Type] | [ID] | [Name] | [Reason] |

## Technical Details

### Architecture Changes
[Describe design pattern or architecture changes]

### Dependencies
**New:** [List new dependencies]
**Modified:** [old version → new version]
**Removed:** [List removed dependencies]

### Database Changes
- [ ] New tables
- [ ] New fields
- [ ] Modified fields
- [ ] New keys

**Migration Notes:** [Any data migration needed]

### API Changes
**New Endpoints:**
- `GET /api/[endpoint]` - [Description]

**Modified Endpoints:**
- `[Method] /api/[endpoint]` - [Changes]

**Breaking Changes:** [List breaking changes]

### Events
**Published:** [New events and purpose]
**Subscribed:** [New subscribers and purpose]

## Testing

### Test Scenarios

1. **Scenario:** [Description]
   - **Steps:** [How to test]
   - **Expected:** [Expected result]
   - **Result:** ✅ Pass / ❌ Fail

### Automated Tests

- ✅ Unit Tests: [X/Y passed]
- ✅ Integration Tests: [X/Y passed]
- ✅ Code Coverage: [X]%

### Performance Impact

- [ ] No impact
- [ ] Improvement: [Details]
- [ ] Potential impact: [Mitigation]

## Review Checklist

### Code Quality
- [ ] Follows AL naming conventions
- [ ] Follows AL style guidelines
- [ ] No compiler warnings
- [ ] Error handling implemented
- [ ] Logging adequate

### Security
- [ ] No hardcoded secrets
- [ ] Permissions reviewed
- [ ] Input validation
- [ ] No SQL injection risks

### Testing
- [ ] All tests pass
- [ ] New code has tests
- [ ] Edge cases tested
- [ ] Manual testing done

### Documentation
- [ ] Code comments added
- [ ] API docs updated
- [ ] README updated
- [ ] Help text added

### BC Specific
- [ ] Object IDs in range
- [ ] Event patterns correct
- [ ] Page layouts user-friendly
- [ ] Translations handled

### Deployment
- [ ] Build succeeds
- [ ] Package creates
- [ ] Deployment steps documented
- [ ] Rollback plan ready

## Deployment Notes

### Steps
1. [Deployment instructions]
2. [Configuration changes]
3. [Verification steps]

### Prerequisites
[Requirements for deployment]

### Rollback Plan
[How to rollback if needed]

## Screenshots

### Before
[Previous state]

### After
[New state]

## Additional Notes

### Known Issues
[Limitations or known issues]

### Future Enhancements
[Potential improvements]

### Breaking Changes
[Breaking changes affecting existing functionality]

## Reviewer Notes

**Suggested Reviewers:**
- ${input:Reviewer} - [Reason]

**Focus Areas:**
1. [Area to review carefully]
2. [Another focus area]

**Questions:**
[Specific questions or concerns]

---
---

**Generated by:** AL PR Preparation Workflow
**Generated on:** [Timestamp]

Read the full file on GitHub · 338 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · -4 lines 0e2bcae8cab1
  2. 12d ago First seen · 342 lines · 39 tokens per session scan A ac6f9d46402e

Subscribe to this mod's changes

al-pr-prepare is a command published in the GitHub repository javiarmesto/ALDC-AL-Development-Collection (104 stars, last pushed today), licensed MIT. It adds 39 tokens to every session and 1,763 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.