AGENT SKILL

gitnexus-area-installer

Skill for the Installer area of slopgate. 107 symbols across 16 files.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 1
Forks
0

01 前言 Front Matter

name
gitnexus-area-installer
description
Skill for the Installer area of slopgate. 107 symbols across 16 files.

03 SKILL.md 正文

Installer

107 symbols | 16 files | Cohesion: 77%

When to Use

  • Working with code in src/
  • Understanding how install_claude, uninstall_claude, install_codex work
  • Modifying installer-related functionality

Key Files

File Symbols
src/slopgate/installer/_pi.py _pi_contained_root, _pi_user_root, install_pi, pi_project_extension_path, pi_user_extension_path (+14)
src/slopgate/installer/_codex.py _codex_contained_root, _codex_project_hooks_path, _codex_user_hooks_path, _codex_user_root, install_codex (+11)
src/slopgate/installer/_cursor.py _cursor_contained_root, _cursor_user_root, cursor_project_hooks_path, cursor_user_hooks_path, install_cursor (+7)
src/slopgate/installer/_opencode.py _opencode_project_plugin_path, _uninstall_opencode_at, uninstall_opencode, _opencode_install_content, _warn_stale_opencode_identity (+6)
src/slopgate/installer/_claude.py _claude_contained_root, _claude_project_settings_path, _claude_user_root, _claude_user_settings_path, _install_claude_at (+5)
src/slopgate/installer/_suite.py _package_update_command, _sync_autoupdate_facade_dependencies, build_scheduler_plan, current_device_label, discover_install_sites (+5)
src/slopgate/installer/opencode_identity.py _canonical_version, _dependency_version, _json_file, _opencode_identity_status, _opencode_lock_version (+1)
src/slopgate/installer/_install_scope.py normalize_install_scope, resolve_project_root, resolve_scoped_install_paths, scope_paths, warn_residual_install_scope
src/slopgate/installer/_shared/hooks.py load_existing_json_object, prepare_owned_hooks_document, require_json_object
src/slopgate/installer/_shared/writes.py remove_file_with_backup, uninstall_hooks_file, print_binary_install_summary

Entry Points

Start here when exploring this area:

  • install_claude (Function) — src/slopgate/installer/_claude.py:131
  • uninstall_claude (Function) — src/slopgate/installer/_claude.py:196
  • install_codex (Function) — src/slopgate/installer/_codex.py:260
  • uninstall_codex (Function) — src/slopgate/installer/_codex.py:303
  • cursor_project_hooks_path (Function) — src/slopgate/installer/_cursor.py:62

Key Symbols

Symbol Type File Line
install_claude Function src/slopgate/installer/_claude.py 131
uninstall_claude Function src/slopgate/installer/_claude.py 196
install_codex Function src/slopgate/installer/_codex.py 260
uninstall_codex Function src/slopgate/installer/_codex.py 303
cursor_project_hooks_path Function src/slopgate/installer/_cursor.py 62
cursor_user_hooks_path Function src/slopgate/installer/_cursor.py 58
install_cursor Function src/slopgate/installer/_cursor.py 177
uninstall_cursor Function src/slopgate/installer/_cursor.py 214
normalize_install_scope Function src/slopgate/installer/_install_scope.py 45
resolve_project_root Function src/slopgate/installer/_install_scope.py 54
resolve_scoped_install_paths Function src/slopgate/installer/_install_scope.py 77
scope_paths Function src/slopgate/installer/_install_scope.py 63
warn_residual_install_scope Function src/slopgate/installer/_install_scope.py 145
uninstall_opencode Function src/slopgate/installer/_opencode.py 269
install_pi Function src/slopgate/installer/_pi.py 262
pi_project_extension_path Function src/slopgate/installer/_pi.py 82
pi_user_extension_path Function src/slopgate/installer/_pi.py 71
uninstall_pi Function src/slopgate/installer/_pi.py 321
load_existing_json_object Function src/slopgate/installer/_shared/hooks.py 180
prepare_owned_hooks_document Function src/slopgate/installer/_shared/hooks.py 189

Execution Flows

Flow Type Steps
Install_suite → _binary_is_runnable cross_community 8
Uninstall_suite → _binary_is_runnable cross_community 8
Install_suite → Base_invocation cross_community 7
Uninstall_suite → Base_invocation cross_community 7
Install_suite → Is_windows cross_community 7
Uninstall_suite → Is_windows cross_community 7
Main → Is_windows cross_community 6
Install_claude → Is_windows cross_community 6
Install_codex → Is_windows cross_community 6
Install_cursor → Is_windows cross_community 6

How to Explore

  1. context({name: "install_claude"}) — see callers and callees
  2. query({search_query: "installer"}) — find related execution flows
  3. Read key files listed above for implementation details
  4. explain({target: "<file or symbol>"}) — persisted taint findings (source→sink data flows), when indexed with --pdg

04 同仓库更多 Skills

vasceannie
vasceannie/slopgate

type-strictness

Enforce strict type compliance by eliminating `Any` types and `# type: ignore` comments. Use when: (1) Editing code that contains `Any` as a type annotation (2) Code has `# type: ignore` or `# pyright: ignore` comments (3) User requests type fixes or type strictness enforcement (4) Importing from untyped third-party libraries (5) User asks to "fix types", "remove Any", or "add proper typing" (6) Pyrefly or mypy reports type errors that need resolution (7) Code review reveals weak typing patterns Follows hierarchical resolution: codebase inference → type stubs → library inspection → type guards → casting (last resort).

代码审查
★ 1
vasceannie
vasceannie/slopgate

slopgate-test-extender

Extend Python test suites with parametrization, fixture reuse, and quality enforcement. Use when asked to add tests, extend existing tests, improve test coverage, consolidate duplicate tests, fix test quality issues, or when Slopgate reports untested-production-code, missing test references, or coverage gaps. Triggers on requests like "add tests for X", "extend these tests", "parametrize tests", "consolidate tests", "fix test quality", "improve test coverage", "write tests for this function", "test this module", "behavior tests", "integration tests", "missing tests", "coverage holes", "untested code", or when a hook denies with test-related findings.

代码审查测试与质量
★ 1
vasceannie
vasceannie/slopgate

slopgate-intelligent-coding-patterns

Pattern-selection playbook for agents editing code with complex branching, stateful parsers/workflows, duplicated skeletons, policy checks, or ordered transforms. Load before refactoring if/elif dispatch chains, boolean-flag state machines, repeated validation predicates, parallel provider/language implementations, or regex/content transformation pipelines. Also load when asked to "apply a design pattern", "which pattern should I use here", "refactor this switch statement", "replace if-elif chain", "state machine pattern", "strategy pattern", "template method", "pipeline pattern", "specification pattern", "dispatch table", "guard clause refactor", "reduce cyclomatic complexity", or when Slopgate fires PY-CODE-014, PY-CODE-017, PY-CODE-018, QUALITY-LINT-001, or PY-QUALITY-010. Use with behavior-locking tests and avoid pattern theater for simple one-off code.

开发工程师设计师代码审查视觉设计
★ 1
vasceannie
vasceannie/slopgate

slopgate-hygiene-orchestrator

Orchestrate systematic elimination of linter warnings and errors across Python, TypeScript, and Rust codebases. Use when asked to "clean up lints", "fix all warnings", "run hygiene", "eliminate type errors", "orchestrate code quality fixes", "fix lint errors", "resolve quality gate failures", "pass CI checks", "reduce tech debt", "refactor to pass hooks", or when a Slopgate hook denies with QUALITY-LINT-001, PY-CODE-017, PY-CODE-018, or any collector finding. This skill coordinates multiple code-hygiene-enforcer agents working in parallel on non-conflicting file groupings, tracks progress persistently via JSON exports, and loops until all issues are resolved. CRITICAL: Never run linters directly—always use `slopgate lint check` as the primary gate, discover project-specific tools from config files, and export findings to JSON for tracking.

代码审查Skill与智能体开发
★ 1
vasceannie
vasceannie/slopgate

slopgate-code-smell-utility-locator

Autoactivate when code-smell hooks or reviews mention feature envy, thin wrappers, duplicate helpers, duplicate code, scattered helpers, builders/factories/config/constants/dataclass reuse, PY-CODE-012, PY-CODE-013, QUALITY-LINT-001, or repeated slopgate code-quality denials. Also load when asked to "find existing helpers", "consolidate utilities", "search for duplicate code", "where is this already implemented", "reuse existing logic", "don't duplicate this", "find similar functions", "utility inventory", "code smell radar", or before adding new helpers/wrappers so agents can find existing shared utilities and consolidate instead of duplicating.

开发工程师代码审查
★ 1
vasceannie
vasceannie/slopgate

slopgate-code-hygiene-refactor

Recovery playbook for Slopgate and project quality failures. Load after hook/lint denials such as PY-CODE-017 flat sibling modules, PY-CODE-018 oversized modules, QUALITY-LINT-001 post-edit quality backstops, PY-QUALITY-010 magic numbers / repeated literals, PY-CODE-012/PY-CODE-013 smell findings, type-suppression bans, duplicate helpers, or repeated hygiene retry loops. Also load when asked to "refactor this module", "split this file", "extract a class", "reduce complexity", "fix god class", "flatten module hierarchy", "move code to a package", "extract helpers", "consolidate duplicates", "replace magic numbers with constants", or when a hook blocks an edit with structural complaints. Focuses on preserving public APIs while refactoring toward packages, cohesive modules, typed seams, and focused tests.

开发工程师代码审查
★ 1