Token导航 LogoToken导航TokenDH.com
开发只读github未标认证来源可访问许可证需确认审计通过

as-fix作为修复

Agent Skill

as-fix 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,521

周安装

104

GitHub Stars

45

下载量

824
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:as-fix(作为修复)
来源仓库:https://github.com/buiducnhat/agent-skills
仓库路径:skills/as-fix
安装命令:
npx skills add https://github.com/buiducnhat/agent-skills --skill as-fix
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/buiducnhat/agent-skills --skill as-fix

简介

针对明确 bug 执行最小化修复与安全验证流程。

  • 要求具备错误复现证据且影响范围可控才可启动。
  • 强调诊断优先原则,拒绝大规模重构或跨系统修改。
  • 最终必须通过回归测试才能关闭工单流转。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • as-fix 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Fix

Purpose

Resolve concrete bugs safely through structured diagnosis, minimal fixes, and verification.

This skill is for bug-fix execution when scope is clear and risk is manageable.

Scope Gate (Required Before Starting)

Use this skill only when all conditions below are true:

  1. Concrete issue signal exists

- Clear failing behavior, error, or regression is identified - Enough evidence exists to begin diagnosis (logs, stack trace, failing test, or reproducible steps)

  1. Likely localized fix path

- Issue appears constrained to a small area - No expected cross-system redesign or migration

  1. Low-to-moderate architectural risk

- Fix can be made without foundational changes - No phased rollout/feature-flag strategy is expected

  1. Straightforward verification path

- Reproduction and post-fix checks can be run in practical scope - Success criteria can be validated directly

If any condition fails, escalate to brainstorm or write-plan.

Hard Stop Escalation Criteria

Immediately stop and switch to planning if any of these occur:

  • Root cause remains unclear after focused investigation
  • Fix requires cross-cutting architectural or data-model changes
  • Scope expands into large refactor or multi-module migration
  • Security/compliance-sensitive behavior is involved
  • Verification reveals broad regressions requiring phased mitigation
  • Multiple fix attempts fail without converging on a root cause

Escalation action:

  1. Stop all implementation activities.
  2. Output the exact message: "This fix exceeds safe single-pass debugging limits. Ask, Recommend brainstorm or write-plan first to define phased diagnosis, implementation, and risk controls."

Workflow

Step 1: Intake and Contextualize

  1. Understand the reported bug and define explicit expected behavior.
  2. Collect/confirm minimum bug report fields:

- Title - Expected behavior - Actual behavior - Reproduction steps - Evidence (logs, trace, screenshot, failing test output) - Environment (branch/OS/runtime/version if relevant) - Impact/severity

  1. Load project context per the shared Context Loading Protocol.

Step 2: Reproduce and Diagnose

  1. Reproduce the issue consistently.
  2. Locate the failure point (file/function/line range/subsystem).
  3. Trace control/data flow to identify the root cause.
  4. Form a fix hypothesis and confirm it explains observed behavior.

Guidelines:

  • Read surrounding code, not only the failing line.
  • Prefer root-cause correction over symptom patching.
  • Add temporary diagnostics only when needed; remove them after use.

Step 3: Decide Small vs Bigger Fix

Classify the work before coding:

Small fix (continue in this skill)

Most are true:

  • Root cause is clear and validated
  • Change surface is narrow (typically a few files)
  • Regression risk is limited and testable quickly

Bigger/risky fix (escalate to brainstorm or write-plan)

Any are true:

  • Root cause is uncertain
  • Multiple subsystems must change together
  • Requires migration, rollout sequencing, or broad refactor
  • Risk cannot be reasonably controlled in a single pass

If it is a bigger fix, follow Hard Stop Escalation Criteria.

Step 4: Implement (Small Fix Path)

  1. State a brief 1-3 bullet implementation plan.
  2. Apply the smallest targeted change that resolves the root cause.
  3. Keep scope strict; avoid unrelated refactors.
  4. Add/update regression tests when applicable.

Step 5: Verify

Run validation in increasing scope:

  1. Focused checks for the changed behavior/module
  2. Nearby regression checks
  3. Relevant project checks (lint/typecheck/tests/build) as needed

Fix is complete only when:

  • Reproduction no longer fails
  • Expected behavior is confirmed
  • No critical regressions are introduced

If verification indicates broader impact, escalate to brainstorm or write-plan.

Step 6: Complete and Report

Provide a concise completion report with:

  • Root cause
  • What changed
  • Why this fix works
  • Verification performed and results
  • Residual risks / follow-ups

If behavior or documentation-relevant rules changed, update the minimal relevant docs. If architecture changed, this should have been escalated.

Rules

  • Do not guess when key context is missing; ask via Question Tool.
  • Always prioritize root-cause fixes.
  • Keep blast radius minimal.
  • Do not mark done without verification.
  • Escalate early when scope/risk exceeds this skill.

Optional Bug Report Template

Use when the report is incomplete:

  • Title:
  • Expected behavior:
  • Actual behavior:
  • Reproduction steps:
  • Error logs/stack trace:
  • Environment:
  • Impact/severity:
  • Additional context:

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.16%
按下载量换算314

Claude

29.11%
按下载量换算240

Cursor

19.68%
按下载量换算162

Gemini CLI

8.34%
按下载量换算69

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills