Narrative tests

From aevatarAI/aevatar-agent-framework · View interactive version

Narrative tests is an AI agent skill from the GitHub repository aevatarAI/aevatar-agent-framework. Help the author write narrative unit tests (rules/constraints) and interpret failures with a concrete fix roadmap.

How to use this skill

Skill file

When to use

Test writing principles

Recommended categories

Output files

v1 Test Format (deterministic)

当前实现(v1)支持在 narrative_tests.md 中嵌入一个 `json 代码块:

{
  "suiteId": "default",
  "cases": [
    {
      "id": "no-spoiler-before-1",
      "severity": "ERROR",
      "type": "must_not_contain_before_chapter",
      "untilChapter": 1,
      "pattern": "SPOILER",
      "message": "Chapter 1 must not contain SPOILER."
    }
  ]
}

支持的 type(v1):

Failure handling (must produce options)

For each failure, provide:

1) where it breaks (chapter/beat/excerpt)

2) why it breaks (rule violated, drift introduced by what change)

3) routes (choose 1):

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.