Madr Template EngineSAFE
Overview
An agent skill published by revfactory.
459e1bb8f76eOBSERVED · 2026-10-12What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
---
name: madr-template-engine
description: "A specialized skill for structuring ADRs in MADR (Markdown Any Decision Record) standard format and systematizing status management. Used by the adr-author and impact-tracker agents when writing standard-format ADR documents and tracking decision history. Automatically applied in contexts involving 'MADR format,' 'ADR template,' 'decision status,' 'ADR numbering system,' or 'decision history.' Note: Git commit hook setup and CI/CD pipeline construction are outside the scope of this skill."
---
# MADR Template Engine — ADR Standard Format Tool
A specialized skill that enhances the ADR documentation capabilities of the adr-author and impact-tracker agents.
## Target Agents
- **adr-author** — MADR format ADR document writing
- **impact-tracker** — Inter-ADR dependency tracking, status management
## MADR Standard Template
```markdown
# ADR-{NNN}: {Decision Title}
## Status
{Proposed | Accepted | Deprecated | Superseded by ADR-XXX}
## Date
{YYYY-MM-DD}
## Context
{Background, problem situation, and constraints that led to this decision}
## Decision Drivers
* {Driver 1: e.g., Response time must be under 200ms}
* {Driver 2: e.g., Learning curve for a team of 5}
* {Driver 3: e.g., Monthly budget constraint of $X}
## Considered Alternatives
### Alternative 1: {Name}
{Description}
* Pro: {Benefit, because ...}
* Pro: {Benefit, because ...}
* Con: {Drawback, because ...}
### Alternative 2: {Name}
{Description}
* Pro: {Benefit, because ...}
* Con: {Drawback, because ...}
* Con: {Drawback, because ...}
### Alternative 3: {Name}
{Description — compare at least 3 alternatives}
## Decision
We choose Alternative {N}: {Name}.
### Selection Rationale
{Specific reasons for choosing this alternative}
### Rejection Rationale
* Alternative {X} was rejected because: {Reason}
* Alternative {Y} was rejected because: {Reason}
## Consequences
### Positive Impact
* {Expected positive outcome}
### Negative Impact
* {Tradeoff that must be accepted}
### Follow-up Actions
* [ ] {Required follow-up task 1}
* [ ] {Required follow-up task 2}
## Related ADRs
* ADR-{XXX}: {Related decision}
* ADR-{YYY}: {Decision affected by this one}
```
## ADR Status Management
### Status Transition Diagram
```
[Proposed] -> [Accepted] -> [Deprecated]
|
[Superseded by ADR-XXX]
```
| Status | Meaning | Condition |
|--------|---------|-----------|
| Proposed | Under review | Immediately after writing |
| Accepted | Adopted | Stakeholder consensus |
| Deprecated | No longer valid | Premises changed |
| Superseded | Replaced by new ADR | Alternative re-evaluation |
## ADR Numbering System
### Numbering Rules
```
ADR-{Sequence}: {Category Code}-{Decision Title}
Category Codes:
ARCH - Architecture patterns
DATA - Data storage/processing
INFRA - Infrastructure/deployment
SEC - Security
API - API design
UI - Frontend
PROC - Process/methodology
```
### ADR Directory Structure
```
docs/adr/
├── 0001-arch-monolith-vs-microservice.md
├── 0002-data-postgresql-selection.md
├── 0003-infra-kubernetes-adoption.md
├── 0004-api-rest-vs-graphql.md
├── index.md <- ADR list and status dashboard
└── template.md
```
## ADR Writing Quality Checklist
### Required Elements
- [ ] Does the context sufficiently explain the background?
- [ ] Are the decision drivers clear?
- [ ] Were at least 3 alternatives compared?
- [ ] Are the pros and cons of each alternative specific?
- [ ] Is the selection rationale logical?
- [ ] Are rejection reasons explicitly stated?
- [ ] Are tradeoffs honestly described?
- [ ] Are follow-up actions specific?
### Common Mistakes
| Mistake | Improvement |
|---------|-------------|
| Decision stated without context | Write "why was this decision needed" first |
| Only one alternative described | Always document rejected alternatives too |
| Only pros listed | Honestly record cons and tradeoffs |
| Too long or too short | 1-3 pages recommended |
| Never updated | Always update when status transitions occur |
## ADR Dependency Graph (for impact-tracker)
```markdown
### ADR Dependency Map
ADR-001 (Microservices)
├── ADR-002 (Inter-service communication: gRPC)
├── ADR-003 (Service discovery: Consul)
├── ADR-004 (Distributed tracing: Jaeger)
└── ADR-005 (API Gateway: Kong)
└── ADR-006 (Authentication: OAuth2 + JWT)
Impact Analysis:
If ADR-001 is Deprecated -> ADR-002 through ADR-006 all require re-review
```Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | NA |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (0)
No findings outside the package's declared scope.
Gates applied: no_behavioural_pass.
459e1bb8f76efull audit observations/trust-audit/skill/revfactory__madr-template-engine.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-12 | 459e1bb8f76e | SAFE | B | 89 | first audit |
Questions
Is Madr Template Engine safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Madr Template Engine access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
How current is this page?
The grade is for one exact copy of the source (459e1bb8f76e), read on 2026-10-12. The repository is watched, and a new audit runs when it changes — this is the first audit.