← 返回
未分类 中文

xinywa Coding Helper

Safely implement minimal, well-tested, and local-pattern-consistent code changes in existing codebases with clear understanding, logging, and resumable progr...
在现有代码库中安全、可最小化、经过充分测试且符合本地模式的代码更改,保持清晰的理解、完整的日志记录以及可恢复的进度。
xinyue-wang xinyue-wang 来源
未分类 clawhub v1.0.2 1 版本 100000 Key: 无需
★ 1
Stars
📥 378
下载
💾 0
安装
1
版本
#latest

概述

Skill: Safe Brownfield Code Change

Purpose

Perform safe, minimal, production-quality code changes across large repositories with resumable execution and machine-optimized indexing.


Skill Routing Requirement

This skill MUST only run for COMPLEX_CODE_TASK.


Mandatory Repo Access Check (CRITICAL)

Before execution:

  • identify repo paths
  • verify accessibility
  • verify required files exist

If failed:

[Error]
Type: REPO_ACCESS_FAILURE
Missing: <path>
Reason: <why>
Required: <what needed>

DO NOT proceed.


Execution Visibility (CRITICAL)

  • NEVER run silently
  • ALWAYS output progress per step
  • MUST include status: IN_PROGRESS | BLOCKED | COMPLETED

Fail-Fast Handling

Immediately stop if:

  • repo checkout timeout (e.g. 78K files case)
  • filesystem too large / slow
  • command fails repeatedly

Output:

[Error]
Type: INFRASTRUCTURE_FAILURE
Stage: <stage>
Reason: <message>
Fix: <action>

Phase 1: Progressive Understanding

Rules

  • DO NOT scan full repo blindly
  • DO incremental expansion only
  • ALWAYS log progress
  • ALWAYS resumable

Process

  1. start from entry points
  2. expand to dependencies
  3. stop when change point identified

Mandatory Output

[Understand]
File: <path>
Summary: <short machine summary>
Next: <files to explore>

Resume Rule

  • check progress.log
  • skip already processed files
  • continue from last step

Repository Index (Machine Optimized)

Location

/home/vibe/aksclaw-data/index//


Structure

file_index.json:

{
  "file": {
    "symbols": ["funcA", "typeB"],
    "deps": ["fileX"],
    "last_used": "ts"
  }
}

Rules

  • update index after reading file
  • reuse index before reading
  • prefer index over re-scan
  • DO NOT generate human-readable summaries

Phase 2: Plan

  • minimal change only
  • prefer:
  1. local code
  2. repo pattern
  3. k8s pattern

Phase 3: Implement

  • smallest safe change
  • no refactor

Phase 4: Validate

  • add/update tests
  • coverage target: 80% (if measurable)

Phase 5: Review

check:

  • correctness
  • race conditions
  • retry/idempotency
  • debuggability

Confidence & Early Stop

Compute confidence:

0.0–1.0 based on:

  • correctness
  • validation
  • risk

Stop if:

  • confidence ≥ 0.85
  • no major issue
  • no failing tests

Output

[Confidence]
Score: <0-1>
Reason: <why>
Gaps: <missing>

Run Output (MANDATORY)

/home/vibe/aksclaw-data/runs//

must include:

  • progress.log
  • steps/
  • final_output.md
  • error.log (if failed)

Cleanup

COMPLETED:

  • keep summary only

FAILED:

  • keep all logs

Hard Rules

  • NEVER guess missing info
  • NEVER skip phases
  • NEVER run silently
  • MUST follow Execution Visibility
  • MUST avoid using skill for simple tasks

Mental Model

This is a controlled execution system, not free-form coding.

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-07 05:33 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 686 📥 331,173
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,124
dev-programming

Docker Essentials

arnarsson
核心 Docker 命令和工作流程,包括容器管理、镜像操作和调试。
★ 38 📥 32,696