Skip to content
Back to skills

Update Adr Inventory

ASecurity

Update the ADR inventory table in docs/adrs/README.md by scanning all adr-*.md files, extracting their title, status, and date. Use when a new ADR is added or an existing ADR's status or title has changed.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 13, 2026
ai-agentsbashgit

Security analysis

A100/100

Scanned October 13, 2026

npx -y skills add rust-works/omni-dev --skill update-adr-inventory --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Update Adr Inventory?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Update Adr Inventory
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/rust-works-update-adr-inventory/badge)](https://www.skillsdirectory.com/skills/rust-works-update-adr-inventory)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: update-adr-inventory
description: Update the ADR inventory table in docs/adrs/README.md by scanning all adr-*.md files, extracting their title, status, and date. Use when a new ADR is added or an existing ADR's status or title has changed.
---

# Update ADR Inventory Skill

This skill updates the inventory table in `docs/adrs/README.md` to reflect the current set of ADR files.

## Process

1. **Scan** `docs/adrs/` for all files matching `adr-*.md`
2. **Extract** from each file:
   - **ADR number** from the filename (e.g., `adr-0003.md` -> `ADR-0003`)
   - **Title** from the `# ADR-NNNN: <Title>` heading on line 1
   - **Status** from the first nonblank paragraph under `## Status`:
     - Extract only the status label: `🟑 Proposed`, `βœ… Accepted`,
       `❌ Deprecated`, or `πŸ”„ Superseded`.
     - For a superseded ADR, retain `by [ADR-NNNN](actual-filename.md)`
       when present.
     - Omit dates, amendment notes, and other explanatory prose even when
       they follow a date or wrap onto another line. For example,
       `βœ… Accepted (2026-05-06) β€” supersedes ...` becomes `βœ… Accepted`, and
       `πŸ”„ Superseded by [ADR-0038](adr-0038.md) (2026-06-13) β€” originally ...`
       becomes `πŸ”„ Superseded by [ADR-0038](adr-0038.md)`.
3. **Date**: Use the exact path found in step 1 to find the commit date when the file was first added, including any filename suffix:
   ```bash
   git log --follow --diff-filter=A --format=%as -- "docs/adrs/<actual-filename>.md"
   ```
   If the file is untracked (not yet committed), use today's date.
4. **Rebuild** the inventory table in `docs/adrs/README.md`, sorted by ADR number ascending
5. **Format** the table using the format-table skill for consistent column widths

## Table Format

The inventory table uses this structure:

```markdown
## Inventory

| ADR                      | Status      | Date       | Title                             |
|--------------------------|-------------|------------|-----------------------------------|
| [ADR-0000](adr-0000.md)  | βœ… Accepted | 2026-02-10 | Use Architecture Decision Records  |
```

### Column Details

| Column | Source                                         | Example                                                   |
|--------|------------------------------------------------|-----------------------------------------------------------|
| ADR    | Filename, linked: `[ADR-NNNN](...)`            | `[ADR-0000](adr-0000.md)`                                 |
| Status | Status label, plus successor link when present | `βœ… Accepted` / `πŸ”„ Superseded by [ADR-NNNN](adr-NNNN.md)`  |
| Date   | Git first-commit date or today                 | `2026-02-10`                                              |
| Title  | H1 heading after `ADR-NNNN: `                  | `Use Architecture Decision Records`                       |

## Instructions

1. Read all `adr-*.md` files in `docs/adrs/`
2. For each file, extract the title from line 1 and status from the Status section
3. Look up the git creation date for each file
4. Replace the inventory table section in `docs/adrs/README.md` with the updated table
5. Ensure the table is formatted with consistent column widths

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.