Skip to content
Back to skills

Docs Authoring Skill

ASecurity

> **目标**:安全地移除一个 SKILL(推荐废弃而非直接删除) > > **完成后**:必须执行 [SYNC_INDEX.md](./SYNC_INDEX.md) 同步索引 ---

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 8, 2026
documentationgobash

Security analysis

A93/100
  • highPerforms destructive filesystem operations

Pro scans all 21 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add tikazyq/agentic-spec-forge --skill _docs_authoring_skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs Authoring Skill?

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

Security grade badge for Docs Authoring Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tikazyq-docs-authoring-skill-agentic-spec-forge/badge)](https://www.skillsdirectory.com/skills/tikazyq-docs-authoring-skill-agentic-spec-forge)

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
# 删除/废弃 SKILL

> **目标**:安全地移除一个 SKILL(推荐废弃而非直接删除)
>
> **完成后**:必须执行 [SYNC_INDEX.md](./SYNC_INDEX.md) 同步索引

---

## 方式一:废弃(推荐)

保留文件但标记为不推荐使用,便于历史追溯。

### Step 1: 更新 SKILL.md frontmatter

```yaml
---
name: old-skill
description: 原有描述...
deprecated: true
deprecated_by: new-skill-name    # 替代方案(如有)
deprecated_reason: "功能已合并"  # 可选
---
```

### Step 2: 添加废弃警告

在正文顶部添加:

```markdown
> **已废弃**:此 SKILL 已被 [new-skill-name](../path/to/new-skill/SKILL.md) 替代。
> 请使用新版本。
```

### Step 3: 更新索引

执行 [SYNC_INDEX.md](./SYNC_INDEX.md)。

两种处理方式:

**A. 保留但标记废弃**(推荐):
```markdown
| old-skill | ~~原有描述~~ (已废弃 → new-skill) | `old-skill/SKILL.md` |
```

**B. 直接从索引移除**

---

## 方式二:直接删除

适用于确定不再需要的 SKILL。

### Step 1: 更新索引

**先更新索引**,再删除文件:

执行 [SYNC_INDEX.md](./SYNC_INDEX.md),从以下文件移除条目:
- 底层索引:`{category}/_INDEX.md`
- 上层索引:`_INDEX_STAGE_*.md`
- 全局索引:`_INDEX_ALL.md`

### Step 2: 删除目录

```bash
rm -rf spec_stage_skill/{category}/old-skill/
```

### Step 3: 验证

执行 [VALIDATE_SKILL_AND_INDEX.md](./VALIDATE_SKILL_AND_INDEX.md) 确认没有悬空引用。

---

## 方式三:归档

保留历史记录但从活跃目录移除。

```bash
# 创建归档目录
mkdir -p _archive/skill/

# 固定时间戳(避免跨午夜)
ARCHIVE_DATE=$(date +%Y%m%d)
ARCHIVE_DATE_DISPLAY=$(date +%Y-%m-%d)

# 移动废弃的 SKILL
mv spec_stage_skill/{category}/old-skill/ \
   _archive/skill/old-skill_${ARCHIVE_DATE}/

# 添加归档说明
echo "归档于 ${ARCHIVE_DATE_DISPLAY},原因:功能已合并" \
  > _archive/skill/old-skill_${ARCHIVE_DATE}/README.md
```

---

## 检查清单

- [ ] 确定处理方式(废弃/删除/归档)
- [ ] 如废弃:更新 frontmatter + 添加警告
- [ ] 从索引中移除或标记
- [ ] 执行 [SYNC_INDEX.md](./SYNC_INDEX.md)
- [ ] 执行 [VALIDATE_SKILL_AND_INDEX.md](./VALIDATE_SKILL_AND_INDEX.md)

---

## AI Coding Agent 命令

```
请帮我废弃 old-skill:
- 替代方案:new-skill
- 废弃原因:功能已合并

请:
1. 更新 old-skill 的 frontmatter(添加 deprecated 标记)
2. 添加废弃警告到正文
3. 更新索引中的条目(标记为废弃)
4. 验证正确性
```

Files in this skill

  • ADD_SKILL.md9.4 KB
  • README.md9.4 KB
  • REMOVE_SKILL.md2.5 KB
  • RENAME_SKILL.md2.3 KB
  • SYNC_INDEX.md8.4 KB
  • VALIDATE_SKILL_AND_INDEX.md6.3 KB
  • _reference/ANTI_PATTERNS.md17.4 KB
  • _reference/PATTERN_LIBRARY.md25.6 KB
  • _reference/PROGRESSIVE_DISCLOSURE.md11.9 KB
  • _reference/QUALITY_CHECKLIST.md3.8 KB
  • _reference/README.md8.6 KB
  • _reference/SKILL_CONTEXT_CONTRACT.md6.4 KB
  • _reference/SPEC_SKILL_BUILD_GUIDE.md28 KB
  • _reference/STRUCTURE.md7.7 KB
  • _reference/YAML_SPEC.md5.4 KB
  • examples/COMPREHENSIVE_SKILL_EXAMPLE.md6.6 KB
  • examples/MINIMAL_SKILL_EXAMPLE.md1.4 KB
  • examples/STANDARD_SKILL_EXAMPLE.md3.6 KB
  • examples/real_samples/1_requirements_us-enrich-context.md12.4 KB
  • examples/real_samples/2_design_vs-coverage-check.md2.2 KB

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…