AGENT SKILL

gitnexus-area-cli

Skill for the Cli area of slopgate. 195 symbols across 42 files.

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

01 前言 Front Matter

name
gitnexus-area-cli
description
Skill for the Cli area of slopgate. 195 symbols across 42 files.

03 SKILL.md 正文

Cli

195 symbols | 42 files | Cohesion: 76%

When to Use

  • Working with code in src/
  • Understanding how cmd_add, cmd_completions, cmd_list work
  • Modifying cli-related functionality

Key Files

File Symbols
src/slopgate/search/cli/__init__.py _bool_arg, _build_add_args, _embed_token_in_url, _resolve_token, _run_add_repository (+14)
src/slopgate/cli/parsers.py _add_config_parsers, add_details_argument, add_optional_path_argument, build_parser, _add_command_parser (+11)
src/slopgate/search/cli/init.py _print_discovered, _bool_arg, _guard_overwrite, _print_init_summary, _print_next_steps (+9)
src/slopgate/cli/main.py _bool_attr, _normalize_isx_argv, _normalize_search_argv, _search_subcommands, _string_attr (+9)
src/slopgate/cli/js_ts_tests.py _git_submodule_roots, _group_tests_by_package_root, _nearest_package_root, _parent_recorded_submodule_ref, _prefixed_submodule_changes (+8)
src/slopgate/cli/commands.py cmd_version, _string_tuple_arg, cmd_test, _bool_arg, _int_arg (+6)
src/slopgate/cli/changed_tests.py _execute_default_selected_tests, changed_files_since, execute_selected_tests, normalize_changed_files, project_root (+4)
src/slopgate/search/runtime.py choose_litellm_model, current_islands_config_path, embedding_like, fetch_models, fetch_runtime_models (+2)
src/slopgate/cli/parsers_lint.py _add_lint_analysis_parser, _add_lint_analysis_parsers, _add_lint_init_parser, _add_lint_path_subcommand, _add_lint_path_subcommands (+2)
src/slopgate/cli/hook_runtime.py _daemon_socket_path_arg, _daemon_socket_path_for_handle, _positive_int_arg, cmd_daemon, _try_handle_via_daemon (+2)

Entry Points

Start here when exploring this area:

  • cmd_add (Function) — src/slopgate/search/cli/__init__.py:208
  • cmd_completions (Function) — src/slopgate/search/cli/__init__.py:267
  • cmd_list (Function) — src/slopgate/search/cli/__init__.py:177
  • cmd_models (Function) — src/slopgate/search/cli/__init__.py:134
  • cmd_reindex (Function) — src/slopgate/search/cli/__init__.py:247

Key Symbols

Symbol Type File Line
cmd_add Function src/slopgate/search/cli/__init__.py 208
cmd_completions Function src/slopgate/search/cli/__init__.py 267
cmd_list Function src/slopgate/search/cli/__init__.py 177
cmd_models Function src/slopgate/search/cli/__init__.py 134
cmd_reindex Function src/slopgate/search/cli/__init__.py 247
cmd_remove Function src/slopgate/search/cli/__init__.py 224
cmd_search Function src/slopgate/search/cli/__init__.py 215
cmd_sync Function src/slopgate/search/cli/__init__.py 241
cmd_use Function src/slopgate/search/cli/__init__.py 154
string_arg Function src/slopgate/search/cli/__init__.py 28
cmd_doctor Function src/slopgate/search/cli/doctor.py 72
print_completion Function src/slopgate/search/completions.py 127
load_config Function src/slopgate/search/config.py 127
choose_litellm_model Function src/slopgate/search/runtime.py 59
current_islands_config_path Function src/slopgate/search/runtime.py 196
embedding_like Function src/slopgate/search/runtime.py 47
fetch_models Function src/slopgate/search/runtime.py 26
fetch_runtime_models Function src/slopgate/search/runtime.py 210
islands_binary Function src/slopgate/search/runtime.py 187
run_islands Function src/slopgate/search/runtime.py 219

Execution Flows

Flow Type Steps
Select_tests_for_changed_files → Object_dict cross_community 10
Cmd_stats → Object_list cross_community 10
Evaluate_hook_request → _locked_file cross_community 9
Evaluate_hook_request → _path_lock_for cross_community 9
Cmd_stats → Is_third_party_or_virtualenv_path cross_community 9
Select_tests_for_changed_files → _coerce_path_entries cross_community 8
Select_tests_for_changed_files → _resolve_path_entries cross_community 8
Cmd_daemon → _session_index_context cross_community 8
Cmd_daemon → _marker_signature cross_community 8
Cmd_daemon → _encode_frame cross_community 8

How to Explore

  1. context({name: "cmd_add"}) — see callers and callees
  2. query({search_query: "cli"}) — 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