# Daa Review

> Use when reviewing existing test code for DAA compliance, identifying anti-patterns, or suggesting improvements to automation test architecture

- **Type:** Skill
- **Install:** `agentstack add skill-gigayaya-daa-master-daa-review`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [gigayaya](https://agentstack.voostack.com/s/gigayaya)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [gigayaya](https://github.com/gigayaya)
- **Source:** https://github.com/gigayaya/DAA-Master/tree/main/plugins/DAA-Master/skills/daa-review
- **Website:** https://medium.com/@gigayaya/declarative-action-architecture-a-scalable-pattern-for-e2e-automation-1f9a10d24ee0

## Install

```sh
agentstack add skill-gigayaya-daa-master-daa-review
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# DAA Code Reviewer

**REQUIRED BACKGROUND:** You MUST understand `daa:daa-core` before using this skill.

## Overview

Review automation test code against DAA principles. Classify each violation by severity and provide actionable fix suggestions.

## Review Process

```dot
digraph review {
    rankdir=TB;
    "Read the code" [shape=box];
    "Classify into layers" [shape=box];
    "Check Test Layer rules" [shape=box];
    "Check Action Layer rules" [shape=box];
    "Check Physical Layer rules" [shape=box];
    "Check cross-layer boundaries" [shape=box];
    "Assign severity" [shape=box];
    "Report findings" [shape=doublecircle];

    "Read the code" -> "Classify into layers";
    "Classify into layers" -> "Check Test Layer rules";
    "Check Test Layer rules" -> "Check Action Layer rules";
    "Check Action Layer rules" -> "Check Physical Layer rules";
    "Check Physical Layer rules" -> "Check cross-layer boundaries";
    "Check cross-layer boundaries" -> "Assign severity";
    "Assign severity" -> "Report findings";
}
```

## Quick Review Checklist (Top 10)

Run through these checks in order. Stop and flag immediately on any CRITICAL finding.

### Test Layer

1. **[CRITICAL]** Does any test method contain `if`, `for`, `while`, or `try/catch`?
2. **[CRITICAL]** Does any test method make direct API/UI/DB calls (bypassing Action Layer)?
3. **[WARNING]** Does any test method contain `assert` statements (should be in Action Layer)?

### Action Layer

4. **[CRITICAL]** Does any action method lack self-verification (no assertion after operation)?
5. **[CRITICAL]** Does any action method call the underlying library directly (bypassing Physical Layer)?
6. **[WARNING]** Are there Composite Actions that call Physical Layer directly instead of composing Atomics?
7. **[WARNING]** Do action names follow the `verb_object_and_verify_outcome` pattern?

### Physical Layer

8. **[CRITICAL]** Does the Physical Layer contain any assertions or business logic?
9. **[WARNING]** Does any Physical Layer method perform multiple operations instead of one?

### Cross-Layer

10. **[CRITICAL]** Does any layer skip the adjacent layer (e.g., Test → Physical directly)?

→ Full detailed checklist: `checklist.md`

## Severity Classification

| Level | Meaning | Action Required |
|-------|---------|-----------------|
| **CRITICAL** | Breaks DAA fundamentals — causes false positives or destroys test trust | Must fix before merge |
| **WARNING** | Hurts maintainability or violates DAA best practices | Should fix; acceptable to defer with justification |
| **SUGGESTION** | Improvement opportunity for readability or consistency | Nice to have; fix when convenient |

→ Full severity guide with examples: `severity-guide.md`

## Report Format

Every report MUST start with a **DAA Score** (1-10, where 10 = full compliance). Score is calculated by deducting from 10 based on findings severity.

→ Full scoring rubric, rules, and report template: `scoring.md`

## Common Patterns to Watch For

1. **"It works so it's fine"**: Code that passes tests but violates DAA is technical debt that will cause false positives later
2. **Gradual erosion**: One `if` in a test method → two → tests become procedural scripts
3. **"Just this once"**: Direct Physical Layer calls in tests "just for this special case" — there are no exceptions
4. **Assertion-free actions**: Methods named `click_save()` without `_and_verify_*` suffix — likely missing verification

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [gigayaya](https://github.com/gigayaya)
- **Source:** [gigayaya/DAA-Master](https://github.com/gigayaya/DAA-Master)
- **License:** Apache-2.0
- **Homepage:** https://medium.com/@gigayaya/declarative-action-architecture-a-scalable-pattern-for-e2e-automation-1f9a10d24ee0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-gigayaya-daa-master-daa-review
- Seller: https://agentstack.voostack.com/s/gigayaya
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
