Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

fortifyfortify 自动化

Agent Skill

fortify 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

212

周安装

9

GitHub Stars

7

下载量

74
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/helderberto/skills --skill fortify

简介

fortify 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词或任务场景快速定位候选结果时使用。

  • 适用于研究检索类任务,可结合来源仓库和原始 README 核验具体用法。
  • 通过 npx skills add 命令从 GitHub 安装,需确认权限范围和维护状态。
  • 使用前建议检查是否会触发联网、命令执行或文件读写操作。
  • fortify 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Fortify

Target: $ARGUMENTS (file, directory, or module — if blank, use unstaged changes)

Pre-loaded context

  • Unstaged changes:!git diff --name-only

Before proceeding, use the Read tool to read package.json (for test runner config).

Workflow

1. Scope

Identify target files. If $ARGUMENTS is blank, use unstaged changed files.

  • Read each target file
  • Read its existing test file (co-located *.test.ts or __tests__/)
  • If no test file exists, note it

2. Audit

For each file, list findings in three buckets:

BucketWhat to look for
SplitFunctions > 20 lines, multiple responsibilities, deeply nested logic (> 2 levels), God functions doing I/O + logic
Edge casesMissing null/empty/boundary checks at system boundaries, unhandled error paths, implicit assumptions
Test gapsUntested public functions, branches with no coverage, missing sad-path tests

Present the audit as a checklist. Ask "Which items should I address?" — list each finding as an option, with "All items" as first option marked (Recommended). Use AskUserQuestion (multiSelect) when available; otherwise present as a numbered checklist.

3. Harden (TDD loop per item)

For each approved item, apply red-green-refactor:

RED:    Write a failing test that exposes the gap
GREEN:  Minimal code change to pass
REFACTOR: Extract/simplify if the fix introduced complexity

One item at a time. Run tests after each cycle. Never batch.

Splitting rules:

  • Extract pure logic into named helpers — keep I/O at the edges
  • New functions must be testable through public interface when possible
  • Preserve the original function's signature (no breaking changes)

Test rules:

  • Test behavior, not implementation
  • Each test gets a descriptive name: it('returns empty array when input is null')
  • Prefer real values over mocks; mock only external I/O

4. Verify

  • Run full test suite
  • Confirm no regressions
  • Report summary: items addressed, tests added, functions extracted

Output format

## Fortify Report

### Audit
- [ ] Split: `processOrder` (45 lines, validation + persistence + notification)
- [ ] Edge: `parseConfig` — no handling for missing file
- [ ] Test: `formatOutput` — zero test coverage

### Changes
- Extracted `validateOrder()` from `processOrder()` (+1 fn, +3 tests)
- Added null-guard to `parseConfig` (+2 tests)
- Backfilled `formatOutput` tests (+4 tests)

### Result
Tests: 42 passed (was 35) | 0 failed

Anti-Rationalization

ExcuseRebuttal
"This function is fine at 40 lines"If it has multiple responsibilities, split it. Length is a smell, not the rule.
"No one will pass null here"System boundaries surprise you. Guard at the edges.
"It's internal code, no tests needed"Internal code breaks too. If it has logic, it needs a test.
"Adding tests will slow us down"Backfilling tests now is cheaper than debugging regressions later.
"The happy path covers it"Bugs live in sad paths. Test the errors, the empties, the boundaries.
"I'll harden it in a follow-up"Follow-ups never happen. Harden now or accept the risk explicitly.

Rules

  • Never change external behavior — hardening is internal improvement
  • If splitting a function would require changing its public API, flag it and ask before proceeding
  • Always run tests between items — stop if anything breaks
  • Skip files with zero test infrastructure unless user explicitly asks to set it up

Error Handling

  • If no test runner found → ask user which runner to use before proceeding
  • If test suite fails before hardening → report failures and stop; don't harden broken code
  • If a split introduces a regression → revert that split immediately, note it as blocked
  • If target file has no exports (script/entrypoint) → audit only, skip test backfill unless user confirms

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.05%
按下载量换算27

Claude

27.89%
按下载量换算21

Cursor

18.65%
按下载量换算14

Gemini CLI

8.59%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/helderberto/skills --skill fortify 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills