gitnexus-impact-analysis
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "gitnexus-impact-analysis":https://skillpi.com/zh/skills/deepskill-48bd8d6917c30a02c9743365f76eedcb0d9491c056ba8a754a7e4eb01a5032e6。安装前核对上游来源和版本:https://github.com/ceilf6/FrontAgent。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于在修改代码或配置前评估变更影响和安全性:当用户想知道更改某些内容会导致什么后果,或需要进行安全/影响分析时使用。例如,“更改 X 是否安全?”、“这依赖于什么?”、“会破坏什么?”
介绍来源: third_party · ceilf6 · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: gitnexus-impact-analysis
description: "Use when the user wants to know what will break if they change something, or needs safety analysis before editing code. Examples: \"Is it safe to change X?\", \"What depends on this?\", \"What will break?\""Impact Analysis with GitNexus
When to Use
- "Is it safe to change this function?"
- "What will break if I modify X?"
- "Show me the blast radius"
- "Who uses this code?"
- Before making non-trivial code changes
- Before committing — to understand what your changes affect
Bind the repository first
Impact analysis is the gate that authorizes an edit, so it must answer for the repository you are about to edit.
Call list_repos {} before the first tool call. With one indexed repository,
use the examples below as written. With more than one, pass repo on every
call: an omitted repo normally errors, but under an MCP policy with a
configured default it resolves to that default silently. If you cannot tell
which repository is meant, stop and ask — every result below an ambiguous
identity inherits the ambiguity. list_repos is paginated, so page with
offset: pagination.nextOffset until hasMore is false before concluding a
repository is absent.
detect_changes takes worktree when your changes are in a linked worktree
the MCP server was not launched from. The server auto-detects a worktree only
when it was launched from inside one; otherwise git diff runs in the wrong
checkout and reports zero changed symbols — a false clean check that carries
none of the degradation flags described below. In the CLI fallbacks, --repo .
means the current checkout; pass the intended repository path instead when you
are not standing in it.
State the bound identity with your risk report:
Repository: <name> (<path>) Worktree: <path> Index: <commit>, <n> behind HEAD
Workflow
0. list_repos {} → Bind repo (and worktree)
1. impact({target: "X", direction: "upstream"}) or `node .gitnexus/run.cjs impact "X" --direction upstream --repo .`
2. READ gitnexus://repo/{name}/processes → Check affected execution flows
3. detect_changes({scope: "all"}) or `node .gitnexus/run.cjs detect-changes --scope all --repo .`
4. Assess risk and report to user, echoing repo/worktree/index identity
If "Index is stale" → run
node .gitnexus/run.cjs analyzein terminal. Hot-toolstalenessnames which index answered (branch/lastCommit) and how fresh it is (status). Re-analyze only forbehindordiverged—currentis identity,unknownis unmeasurable. If.gitnexus/run.cjsis missing, replacenode .gitnexus/run.cjswithnpx gitnexusin the fallback commands.
Checklist
- [ ] list_repos {} — bind repo; explicit repo when >1 indexed, ask if ambiguous
- [ ] impact({target, direction: "upstream"}) or CLI fallback to find dependents
- [ ] Review d=1 items first (these WILL BREAK)
- [ ] Check high-confidence (>0.8) dependencies
- [ ] READ processes to check affected execution flows
- [ ] detect_changes({scope: "all"}) or CLI fallback for pre-commit check
- [ ] Confirm the checkout you edited is the checkout that was diffed
- [ ] Assess risk level and report, stating repo/worktree/index identity
Understanding Output
| Depth | Risk Level | Meaning |
|---|---|---|
| d=1 | WILL BREAK | Direct callers/importers |
| d=2 | LIKELY AFFECTED | Indirect dependencies |
| d=3 | MAY NEED TESTING | Transitive effects |
Risk Assessment
| Affected | Risk |
|---|---|
| <5 symbols, few processes | LOW |
| 5-15 symbols, 2-5 processes | MEDIUM |
| >15 symbols or many processes | HIGH |
| Critical path (auth, payments) | CRITICAL |
| Zero callers found | UNKNOWN |
UNKNOWN is not a low rung on this scale — it means the walk could not answer.
An empty caller set is equally consistent with "genuinely unused" and "the
callers are not resolvable by the index" (plain-object property access, dynamic
dispatch, cross-language calls), so few-callers ⇒ LOW does not apply. The
result carries a riskNote saying so. Confirm with a text search before
treating the symbol as safe to change or delete.
risk is the edit gate: warn on HIGH/CRITICAL and stop on UNKNOWN until the
uncertainty is resolved. Within single-repo mode, compare File and symbol
targets with local riskSharedAxes (direct/total only). Within group mode,
compare only group results: their riskSharedAxes overlays resolved
cross-repo crossings on that local value. Never use either field to waive the
edit gate. Check riskScale.unusedAxes before comparing kinds: MCP File walks
omit process/module axes, while web Graph-RAG expands File targets to in-file
symbols before enrichment.
Tools
impact — the primary tool for symbol blast radius. If MCP is unavailable, use node .gitnexus/run.cjs impact <symbol> --direction upstream --repo . instead:
impact({
target: "validateUser",
repo: "my-app", // required once >1 repository is indexed
direction: "upstream",
minConfidence: 0.8,
maxDepth: 3
})
→ d=1 (WILL BREAK):
- loginHandler (src/auth/login.ts:42) [CALLS, 100%]
- apiMiddleware (src/api/middleware.ts:15) [CALLS, 100%]
→ d=2 (LIKELY AFFECTED):
- authRouter (src/routes/auth.ts:22) [CALLS, 95%]
detect_changes — git-diff based impact analysis. If MCP is unavailable, use node .gitnexus/run.cjs detect-changes --scope all --repo . instead:
detect_changes({scope: "all"})
→ Changed: 5 symbols in 3 files
→ Affected: LoginFlow, TokenRefresh, APIMiddlewarePipeline
→ Risk: MEDIUM
Add repo once more than one repository is indexed, and worktree: "<abs path>" when your changes are in a linked worktree the server was not launched
from.
partial: true (a graph query failed) or truncated: true (the changed-symbol
listing was capped) means the result is short of the truth, and reads like
UNKNOWN above: a zero there means unseen, not unaffected. Re-run it rather
than tick the pre-commit check.
A wrong-worktree zero carries neither flag and is shape-identical to a genuine clean result, so confirm the checkout you edited is the one that was diffed before treating an empty change set as a passed check.
Example: "What breaks if I change validateUser?"
0. list_repos {}
→ total: 2 (my-app, billing-api) — both define validateUser, so bind explicitly
1. impact({target: "validateUser", repo: "my-app", direction: "upstream"}) or `node .gitnexus/run.cjs impact "validateUser" --direction upstream --repo .`
→ d=1: loginHandler, apiMiddleware (WILL BREAK)
→ d=2: authRouter, sessionManager (LIKELY AFFECTED)
2. READ gitnexus://repo/my-app/processes
→ LoginFlow and TokenRefresh touch validateUser
3. Risk: 2 direct callers, 2 processes = MEDIUM
Repository: my-app (/abs/path/my-app) Worktree: same Index: current
With a single indexed repository, step 0 returns total: 1 and the repo
argument drops out of every call above.
版本历史
-
v2.2.0
GitHub ↗
原版更新说明
# FrontAgent v2.2.0 FrontAgent v2.2.0 is a minor release after v2.1.1. It ships the new Electron desktop client, headless non-interactive CLI mode, session resume, lifecycle hooks, declarative permission rules, context zone budgets, the `@frontagent/mcp-web-fetch` adapter, a reproducible SDD ablation evaluation framework, and a set of correctness and security fixes across the CLI entry path, the hallucination guard, and the LLM provider layer. ## Highlights - New Electron desktop client with a typed IPC contract, Task Console + Settings UI, accessibility semantics, and multi-platform zip archives attached to GitHub Releases. - Headless non-interactive CLI mode with a validated JSON output contract exposing artifacts and security denials. - Session resume with schema-validated session records and cross-step file context hydration. - Lifecycle hooks with explicit project-hook opt-in and hardened hook plumbing. - Declarative permission rules and context zone budgets on the core execution path. - Reproducible SDD ablation benchmark: frozen 30-task set, two-arm orchestrator, machine-checkable acceptance, published negative findings with reproduction guide. - Global `fa` bin invocations work again (symlinked entry-path fix), and `hallucinationGuard.checks` is genuinely honored on the executor path without weakening the project-root security boundary. ## Added - **Desktop client**: typed IPC contract + execution reducer, Task Console and Settings renderer (React + Vite), main-process runtime bridge + settings store, IPC-failure degraded states, ARIA live regions and navigation semantics, electron-builder packaging publishing multi-platform zips to GitHub Releases, and desktop documentation. - **Headless CLI**: `--output` validation, artifacts and security denials in the JSON payload, stdout interception during JSON runs, top-level error classification. - **Session resume**: full step schema, order-independent resume unlock, cross-step file context hydration, session records validated on load. - **Lifecycle hooks**: explicit opt-in for project hooks, per-tool outcome observation in postToolUse, log-callback failure isolation. - **Permissions**: declarative permission rules; in-session derived allow rules with literal-wildcard escaping; bare tool rules never derived from always-allow approvals. - **Context**: zone budgets with guaranteed postconditions and a single compaction summary; AGENTS.md project instructions with byte-capped reads. - **MCP**: `@frontagent/mcp-web-fetch` adapter package wired into the agent registry and planner. - **Prompts**: external-knowledge, security-engineering, and code-minimalism disciplines in codegen/planner; security review dimension in the code-quality sub-agent. - **Evaluation**: frozen 30-task ablation set, typecheck-clean fixture project, two-arm orchestrator with resume, acceptance check runner, results report and reproduction guide. - **Docs**: verifiable npm downloads counter with daily refresh. ## Fixed - **CLI entry**: global bin symlinks (`fa` via npm/pnpm/homebrew) no longer exit silently; the direct-entry guard resolves the symlinked argv path. (#396) - **Hallucination guard**: `hallucinationGuard.checks` is honored by `validateFilePath` / `validateCode` on the executor path; project-root containment remains enforced when `fileExistence` is disabled. (#386) - **LLM provider**: AI SDK migrated to the v5 line (clears GHSA-rwvc-j5jr-mgvh); OpenAI provider pinned to Chat Completions for OpenAI-compatible base URLs. - **Planner**: `web_fetch` actions preserved in generated plans. - **Agent**: dependency recovery uses the project package manager. - **Desktop**: default-workspace setting takes effect; telemetry auto-scroll only at bottom; no demo content in TaskComposer; settings saves announced to assistive tech. - **Runtime**: session ids constrained to the sessions dir with atomic writes; real taskId on failed taskComplete hooks; win32 process-tree kill. - **Workflow gates**: workflow-rules test accepts the vars-based self-hosted Repo Guard runner. (#397) ## Changed - **CI**: Repo Guard on a self-hosted Claude Code engine with allowlisted fork actors under `pull_request_target`; catch-all CODEOWNERS; OpenRouter provider order passthrough. - **Dependencies**: ts-morph ^28; AI SDK v5 line. ## Known Issues - `hallucinationGuard.enabled` is still dead config on the agent path; only `checks` is consulted. Tracked in #400. ## Verification - `pnpm quality:precommit` (lint, typecheck, workspace tests, workflow rules) green at release. - CLI symlink invocation verified against the packaged bundle (`fa --version` via a bin symlink). ## Compatibility - CLI package version: `[email protected]`. - VS Code extension version: `[email protected]`. - Node.js requirement: `>=20.0.0`. - VS Code requirement: `^1.120.0`.
-
v2.1.1
GitHub ↗
原版更新说明
# FrontAgent v2.1.1 FrontAgent v2.1.1 is a patch release after v2.1.0. It focuses on maintainability, security hardening, workflow reliability, and test coverage across the agent execution path, Filesense, hybrid RAG, memory persistence, runtime MCP handling, and the VS Code webview. ## Highlights - Decomposed the core agent and executor orchestration paths into smaller, focused helpers. - Split Filesense engine responsibilities for helpers, indexing, notes, query, and schema orchestration. - Extracted memory persistence writers and preload/recall helpers. - Extracted semantic search orchestration from the hybrid RAG knowledge-base path. - Hardened VS Code webview nonce generation and split webview renderers. - Restored and hardened local GitNexus contract gates and worktree bootstrap checks. - Expanded focused unit coverage across CLI, runtime MCP, executor, agent, context, Filesense, memory, RAG, and VS Code webview behavior. ## Changed - **Executor orchestration**: Tool-call handling, validation skip handling, progress enforcement, step feedback, and step trace recording now live in focused modules. This keeps execution behavior stable while reducing the size of the central executor implementation. - **Agent orchestration**: Context gathering, facts update flushing, project prescan preparation, task execution setup, and execution callback wiring were extracted from the main FrontAgent flow. - **Context management**: Fact serialization, facts merging, filesystem fact updates, and module dependency graph updates were split out of `ContextManager`. - **Planner phases**: Planner phase helper logic was split into dedicated modules with additional tests. - **Filesense engine**: Engine helper logic, index persistence, notes generation, query result handling, and schema orchestration were separated into focused modules. - **Memory store**: Memory preload/recall behavior and persistence writer behavior were extracted from `MemoryStore`. - **Hybrid RAG**: Semantic search orchestration was extracted from the knowledge-base implementation. - **Runtime MCP**: MCP task invocation setup was split from the runtime MCP server handler path. - **VS Code extension**: Webview body, script, style, and template rendering were decomposed into smaller helpers. - **Code quality subagent**: Prompt policy logic was split into a dedicated helper. - **Tooling**: The temporary GitNexus release-candidate patch was removed and the Biome schema version was aligned. ## Fixed - **VS Code security**: Hardened webview nonce generation. - **Filesense query**: Preserved relative path semantics in query results. - **Filesense notes**: Preserved notes schema path ownership. - **Workflow contracts**: Restored the local GitNexus contract gate. - **Bootstrap checks**: Resolved relative core worktree paths and guarded bootstrap against mismatched worktrees. ## Tests - Added focused CLI command router coverage. - Added runtime MCP contract tests and schema assertion coverage. - Added hybrid RAG knowledge-base coverage. - Added executor tests for validation skipping, progress enforcement, step feedback, tool-call handling, and trace recording. - Added agent tests for context gathering, facts flushing, project prescan preparation, execution callbacks, and task execution setup. - Added ContextManager tests for fact serialization, facts merging, filesystem fact updates, and module dependency graph behavior. - Added Filesense tests for engine helpers, indexing persistence writes, notes generation, query behavior, and schema orchestration. - Added memory tests for preload/recall helpers and persistence writers. - Added VS Code webview tests for body, script, style, and template renderer extraction. - Cleaned Biome warnings in executor, shared utility, and LLM service tests. ## Dependencies - Updated production dependency lockfile entries from the Dependabot production dependency group. ## Compatibility - CLI package version: `[email protected]`. - VS Code extension version: `[email protected]`. - Node.js requirement: `>=20.0.0`. - VS Code requirement: `^1.120.0`.
-
v2.1.0
GitHub ↗
原版更新说明
# FrontAgent v2.1.0 FrontAgent v2.1.0 is a minor release after v2.0.0. It adds Open Memory Gateway integration, publishes the OSS Harness workflow assets, expands test coverage across core runtime paths, and tightens CI, dependency, and maintainer workflow checks. ## Highlights - Added opt-in Open Memory Gateway integration for managed long-term memory. - Added OSS Harness assets for contributions, PR review, GitNexus contracts, local hooks, and repository workflow checks. - Expanded focused unit coverage for FrontAgent, Executor, PhaseRunner, ContextManager, LLM service, planner, memory, security, SDD workflow, mcp-filesense, and workflow rules. - Upgraded the development and runtime dependency set, including Biome 2.x, TypeScript 6.x, Vitest 4.x, Playwright 1.60.x, Turbo 2.9.x, AI SDK, MCP SDK, and LangChain-related packages. - Updated CI to run the full quality gate on Node 20 and Node 22 with one aggregate status check. - Packaged the VS Code extension as `frontagent-2.1.0.vsix`. ## Added - **Open Memory Gateway**: FrontAgent can now use an opt-in Gateway adapter to write Gateway-compatible Markdown memories, keep draft and active memories separate, and recall active memories while retaining the existing `.frontagent/memory` fallback path. - **OSS Harness**: Added contributor guidance, workflow documentation, GitNexus knowledge contracts, CODEOWNERS, issue templates, PR template, git hooks, and workflow rule tests. - **Local workflow scripts**: Added `agent:bootstrap`, `quality:predev`, `quality:precommit`, `quality:ci`, `quality:local`, `contract:*`, and `test:workflows`. - **Dependency maintenance**: Added `.env.example` and Dependabot configuration. ## Changed - Extracted `PhaseRunner` from `Executor` and step callback handling from `FrontAgent`. - Split Skill Lab behavior benchmarking, trigger benchmarking, improvement, reporting, and scaffolding into focused modules. - Introduced structured logging and migrated core debug output to shared logger utilities. - Tightened source type safety with stricter `noExplicitAny` coverage. - Raised the VS Code extension engine requirement to `^1.120.0`. ## Fixed - Patched high-severity dependency vulnerabilities through dependency upgrades and pnpm overrides. - Fixed Biome formatting and stricter typing failures introduced by merged test and Skill Lab changes. - Unified Node 20 and Node 22 CI matrix results under a single aggregate CI status. ## Test And CI - Added broad focused unit coverage for core, memory, planner, security, executor, LLM, ContextManager, mcp-filesense, SDD, shared logger, and workflow rules. - Added Contract Guard for PRs targeting `develop`. - Added Repo Guard workflow support for PR, issue, and issue-comment review paths with fork and actor safeguards. - Upgraded GitHub Actions dependencies to `actions/checkout@v6`, `actions/setup-node@v6`, and `pnpm/action-setup@v6`. ## Compatibility - CLI package version: `[email protected]`. - VS Code extension version: `[email protected]`. - Node.js requirement: `>=20.0.0`. - VS Code requirement: `^1.120.0`.
-
v2.0.0
GitHub ↗
原版更新说明
## Highlights - **Architecture Refactoring**: All large monolithic source files decomposed into focused, single-responsibility modules - **565 Unit Tests**: Coverage increased from near-zero across the monorepo - **Biome**: Project-wide linter and formatter replacing ad-hoc ESLint configs - **Performance**: Lazy-load ts-morph (~400ms cold-start savings), async file I/O in RAG modules, 2MB bundle reduction - **Type Safety**: Eliminated all `as any` assertions across CLI, shared, and core packages ## Breaking Changes - Internal module paths changed due to refactoring. Public API from each package's `index.ts` remains unchanged. - Minimum Node.js version is now 18+. See [CHANGELOG.md](./CHANGELOG.md) for full details.
-
v1.0.9
GitHub ↗
原版更新说明
## Bug Fixes - **mcp-shell**: Enforced the `timeout` parameter that was previously accepted but never used, preventing runaway commands from hanging indefinitely (default 60s with SIGTERM/SIGKILL escalation) - **mcp-shell**: Added a 10MB output size cap to prevent OOM when commands produce excessive stdout/stderr - **shared**: Fixed `matchGlob` to escape regex metacharacters (`.`, `(`, `)`, `[`, `]`, `+`, `{`, `}`) before glob-to-regex conversion — previously `src/utils.ts` would incorrectly match `src/utilsXts` - **shared**: Fixed `deepMerge` to skip `undefined` source values instead of overwriting existing target values - **mcp-file**: Fixed `isRegularFile` and `isDirectory` to return `false` for non-existent paths instead of throwing `ENOENT` ## Improvements - **shared**: Extracted `DEFAULT_LLM_TEMPERATURE` (0.2) and `DEFAULT_LLM_MAX_TOKENS` (4096) as shared constants, fixing inconsistent model behavior between CLI (0.2) and runtime-node (0.7) ## Install ```bash npm install -g [email protected] ``` **Full Changelog**: https://github.com/ceilf6/FrontAgent/compare/v1.0.8...v1.0.9
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供代码变更影响分析,解决开发者修改代码前评估风险的明确痛点
- 支持多仓库、工作树、索引状态管理,覆盖复杂开发场景
- 风险分级清晰(WILL BREAK/LIKELY AFFECTED/MAY NEED TESTING)
亮点
- 触发词精准完整,覆盖多种变体(如“Is it safe to change X?”、“What will break?”)
- 边界清晰,不易与其他 Skill 重叠
待提升项
-
文档过长 原报告严重程度:轻微
Skill 文档内容超过500行,可能影响可读性
改进建议:考虑将部分详细说明移至独立文档或通过链接引用
亮点
- 结构完整,包含 When to Use、Workflow、Checklist、Understanding Output、Risk Assessment、Tools、Example 等章节
- 步骤清晰,有端到端示例,frontmatter 完整
亮点
- 工具来源明确(impact、detect_changes、list_repos),参数说明详细
- 覆盖主要异常(如 Index is stale、wrong worktree、partial/truncated results)
- 不可逆操作有确认机制(如 edit gate、risk assessment)
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 57 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。