CommunityProductivity & Collaborationgithub.com

EastDong314/agent-skills

Investigate a bug, regression, flaky behavior, or unclear backend failure with an evidence-first debugging workflow before jumping into fixes. Use when Codex should establish a reproducible feedback loop, rank hypotheses, inspect the real failing path, and only then propose or apply changes.

What is agent-skills?

agent-skills is a Codex agent skill that investigate a bug, regression, flaky behavior, or unclear backend failure with an evidence-first debugging workflow before jumping into fixes. Use when Codex should establish a reproducible feedback loop, rank hypotheses, inspect the real failing path, and only then propose or apply changes.

Works with~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/EastDong314/agent-skills/tree/HEAD/skills/workflow-diagnose

Installed? Explore more Productivity & Collaboration skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Workflow Diagnose

Diagnose first. Fix second.

Read First

Read the highest-signal context before changing code:

  • .ai-workflow/GOAL.md if present
  • .ai-workflow/PLAN.md if present
  • .ai-workflow/ACCEPTANCE.md if present
  • .ai-workflow/IMPLEMENTATION_LOG.md if present
  • AGENTS.md
  • CONTEXT.md if present
  • relevant docs, ADRs, and architecture contracts
  • the concrete failing code path, tests, logs, or runtime evidence

Core Behavior

  1. Build a stable feedback loop before proposing the fix.
  2. Prefer evidence over guessing.
  3. Rank hypotheses instead of following the first plausible story.
  4. Keep diagnosis separate from large opportunistic refactors.
  5. When the root cause is clear, hand off into planning or implementation with explicit evidence.

Workflow

1. Define the failure

Write down:

  • what is failing
  • expected behavior
  • actual behavior
  • whether the failure is deterministic, flaky, data-dependent, or environment-dependent
  • the smallest surface where feedback can be observed

2. Establish a feedback loop

Prefer:

  • a failing automated test
  • a reproducible command
  • a narrow local scenario
  • a targeted log or metric trace

If no stable loop is possible yet, say so explicitly and record the best available proxy evidence.

3. Rank hypotheses

List the most likely causes in order.

Each hypothesis should connect:

  • symptom
  • suspected layer or component
  • what evidence would confirm or disprove it

4. Inspect and instrument

Use the minimum instrumentation needed to separate the hypotheses:

  • targeted logs
  • assertions
  • temporary probes
  • test adjustments
  • state snapshots

Do not immediately rewrite architecture just because the code is ugly.

5. Record the diagnosis

Update .ai-workflow/IMPLEMENTATION_LOG.md with a diagnosis-first pass when you are in an active workflow task. Include:

  • feedback loop
  • hypotheses considered
  • evidence gathered
  • confirmed or rejected causes
  • next fix focus

If there is no active .ai-workflow task, provide the diagnosis in the response and recommend creating or refreshing one before implementing.

6. Hand off cleanly

If a fix is needed:

  • use workflow-plan-acceptance when the repair needs a scoped implementation plan
  • use workflow-implement when the active task already has an approved plan

Backend-specific rules

If backend code is involved, test hypotheses against architecture boundaries:

  • controller
  • application/service
  • orchestrator/domain service
  • repository
  • persistence
  • infrastructure adapter/provider/background/streaming

Explicitly check whether the bug is actually caused by:

  • mixed responsibilities
  • HTTP concerns leaking into service logic
  • repository-owned business logic
  • entity/DTO/domain model confusion
  • missing centralized exception or validation handling
  • missing traceability or audit dimensions

Final response format

At the end, respond in Chinese with exactly these top-level sections:

## 工作流结果
- 技能: `workflow-diagnose`
- 状态: `completed`
- 产物: `IMPLEMENTATION_LOG.md` 或诊断结论

## 诊断摘要
- 问题现象: ...
- 反馈回路: ...
- 主要假设: ...
- 已确认原因: ...
- 排除项: ...

## 下一步
- ...

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

EastDong314/agent-skills

查询《中华人民共和国民法典》条文原文(1260 条 / 7 编 84 章 / 附则)。当用户询问民法典的任何条文或制度时使用,例如「第 1042 条」「离婚冷静期」「居住权」「保证合同」「高空抛物」「诉讼时效」「夫妻共同债务」;也用于需要引述、比对、解释民法典原文的场景。回答必须逐字引用条文原文并标注条号,不做改写。 | Look up verbatim articles of the PRC Civil Code (中华人民共和国民法典). Use when the user asks about any Civil Code article, needs the exact statutory text, or wants to cite, quote, or compare provisions.

EastDong314/agent-skills

管理 Ricky 的本地 Obsidian 知识库(默认 $HOME/workspace/notes):创建、读取、更新、删除、搜索、重构、入库(ingest)、体检(lint)、建索引与整理笔记。当用户要求管理 Obsidian 笔记、知识库内容、日记、项目笔记、资料入库(source-to-wiki)、backlinks、tags、YAML frontmatter、Properties、Bases、Dataview 字段或查询、wiki 链接、嵌入、callout、canvas、网页剪藏,或用本地 Obsidian 应用/CLI 打开笔记时使用。 | Create, read, update, delete, search, refactor, ingest, lint, index, and organize Ricky's local Obsidian vault at $HOME/workspace/notes (override with OBSIDIAN_VAULT). Use when an AI coding agent is asked to manage Obsidian notes, knowledge-base content, daily notes, project notes, source-to-wiki ingestion, backlinks, tags, YAML frontmatter, Properties, Bases, Dataview fields or queries, wiki links, embeds, callouts, canvases, web clipping, or to open notes in the local Obsidian app/CLI.

EastDong314/agent-skills

专注过度设计的代码审查。找出可删除的内容:重复造轮子的标准库、不必要的依赖、投机性抽象、无用的灵活性。每个发现一行:位置、要删什么、用什么替代。当用户说「review for over-engineering」「what can we delete」「is this over-engineered」「simplify review」或调用 /ponytail-review 时使用。作为专注正确性的审查的补充,本技能只追查复杂度。 | reinvented standard library, unneeded dependencies, speculative abstractions, dead flexibility. One line per finding: location, what to cut, what replaces it. Use when the user says "review for over-engineering", "what can we delete", "is this over-engineered", "simplify review", or invokes /ponytail-review. Complements correctness-focused review, this one only hunts complexity.

EastDong314/agent-skills

Develop against ruoyi-vue-pro/Yudao projects, including backend modules, Vue3 admin UI, uni-app UI, SQL, permissions, and data-integration boundaries.

Related Skills