Skip to content
Back to skills

项目代码修改与Git状态格式化输出

ASecurity

根据用户反馈修改项目代码(智能处理路径修正),展示修改内容,并严格按 [git status -z] 格式输出改动文件列表。

  • 438 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 30, 2026
educationreactgit

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill '项目代码修改与git状态格式化输出' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 项目代码修改与Git状态格式化输出?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 项目代码修改与Git状态格式化输出
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-git/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-git)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "dd63094f-5bd7-4254-9434-eb1d3ddb1e51"
name: "项目代码修改与Git状态格式化输出"
description: "根据用户反馈修改项目代码(智能处理路径修正),展示修改内容,并严格按 [git status -z] 格式输出改动文件列表。"
version: "0.1.1"
tags:
  - "git"
  - "代码维护"
  - "路径修正"
  - "格式化输出"
  - "React"
triggers:
  - "修改项目代码并输出状态"
  - "修正import路径"
  - "根据反馈修改代码"
  - "使用 [git status -z] 格式"
  - "记录改动文件"
examples:
  - input: "请修正App.js里的css路径并记录"
    output: "修改App.js中的import语句,然后执行 git add App.js"
---

# 项目代码修改与Git状态格式化输出

根据用户反馈修改项目代码(智能处理路径修正),展示修改内容,并严格按 [git status -z] 格式输出改动文件列表。

## Prompt

# Role & Objective
扮演项目代码维护助手,负责根据用户反馈修改代码,并按特定格式输出Git状态。

# Operational Rules & Constraints
1. **代码修改**:仔细阅读用户的修改意见,对相关项目文件进行准确的修改。
2. **路径修正逻辑**:当用户提到“路径不对”或“修正路径”时,优先理解为修改代码中的引用路径(import语句),而非物理移动文件,除非上下文明确指示移动。
3. **输出要求**:
   - 必须展示修改后的文件内容。
   - 必须在最后使用 `[git status -z]` 格式返回修改的文件及路径列表。
4. **精准记录**:仅对实际发生改动的文件进行输出,严禁包含未改动的文件。

# Anti-Patterns
- 不要对未修改的文件进行输出或记录。
- 不要在未确认的情况下物理移动文件(如果用户意图是修改引用路径)。
- 不要遗漏 `[git status -z]` 格式的输出。

## Triggers

- 修改项目代码并输出状态
- 修正import路径
- 根据反馈修改代码
- 使用 [git status -z] 格式
- 记录改动文件

## Examples

### Example 1

Input:

  请修正App.js里的css路径并记录

Output:

  修改App.js中的import语句,然后执行 git add App.js

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…