AGENT SKILL

gitnexus-area-integration

Skill for the Integration area of slopgate. 133 symbols across 18 files.

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

01 前言 Front Matter

name
gitnexus-area-integration
description
Skill for the Integration area of slopgate. 133 symbols across 18 files.

03 SKILL.md 正文

Integration

133 symbols | 18 files | Cohesion: 92%

When to Use

  • Working with code in tests/
  • Understanding how apply_ast_rule_config_overrides, context_with_limits, test_broad_and_silent_exception_rules_report_distinct_findings work
  • Modifying integration-related functionality

Key Files

File Symbols
tests/integration/test_opencode_plugin_control_contract.py _run_plugin_contract, _write_fake_slopgate, _write_plugin_runner, test_file_edited_block_is_logged_without_throwing, test_generated_plugin_allows_unknown_read_only_tool (+14)
tests/integration/test_guard_rule_public_api.py bash_payload, context_for_payload, test_baseline_guard_blocks_populated_baseline_creation, test_config_change_guard_rule_blocks_disable_all_hooks, test_git_no_verify_rule_blocks_hook_bypass (+12)
tests/integration/test_python_ast_rule_public_api.py context_with_limits, test_broad_and_silent_exception_rules_report_distinct_findings, test_complexity_rule_reports_target_function, test_dead_code_rule_reports_unreachable_function, test_deep_nesting_rule_reports_nested_function (+9)
tests/integration/test_opencode_plugin_repair_gate.py _run_pending_repair_file_tool, _write_fake_slopgate, test_opencode_toml_header_comments_preserve_relaxed_repo_mode, test_pending_repair_allows_bootstrap_when_status_is_unavailable, test_pending_repair_allows_direct_file_repair_tool (+5)
tests/integration/test_rule_enrichment_installer_pipeline.py _render_context, _render_findings, _rendered_text, test_adapter_render_request_pipeline_extracts_event_and_findings, test_render_output_pipeline_orders_denial_context_before_advisory_debt (+4)
tests/integration/test_python_ast_staging_public_api.py test_assertion_roulette_rule_reports_bare_assert_run, test_conditional_assertion_rule_reports_control_flow, test_duplicate_call_sequence_rule_reports_shared_sequence, test_eager_test_rule_reports_excess_sut_calls, test_fixture_outside_conftest_rule_reports_fixture_function (+3)
tests/integration/test_cli_hook_runtime.py _run_handle_with_daemon, test_cmd_handle_does_not_fallback_after_daemon_accept_failure, test_cmd_handle_fails_closed_for_accepted_daemon_error, test_cmd_handle_preserves_daemon_request_platform, test_cmd_handle_preserves_daemon_stderr_and_exit_code (+3)
tests/integration/test_stats_improvement_pipeline.py _result, test_integration_comparison_excludes_legacy_rows_from_cohorts, test_integration_comparison_filters_and_builds_matching_sides, test_integration_comparison_supports_rule_and_confidence_cohorts, test_integration_multi_rule_paths_are_rule_local (+3)
tests/integration/test_opencode_plugin_capability_contract.py _run_plugin_with_real_slopgate, test_generated_plugin_allows_declared_remote_effects_in_clean_state, test_generated_plugin_allows_known_read_only_tool, test_generated_plugin_allows_task_delegation, test_generated_plugin_allows_unprojected_read_only_mcp_tool (+2)
tests/integration/test_opencode_tool_capability_parity.py _evaluate_capability_case, _prepare_repo, _runner_source, capability_payload, prepare_repair_state (+2)

Entry Points

Start here when exploring this area:

  • apply_ast_rule_config_overrides (Function) — tests/integration/config_override_support.py:56
  • context_with_limits (Function) — tests/integration/test_python_ast_rule_public_api.py:33
  • test_broad_and_silent_exception_rules_report_distinct_findings (Function) — tests/integration/test_python_ast_rule_public_api.py:49
  • test_complexity_rule_reports_target_function (Function) — tests/integration/test_python_ast_rule_public_api.py:78
  • test_dead_code_rule_reports_unreachable_function (Function) — tests/integration/test_python_ast_rule_public_api.py:102

Key Symbols

Symbol Type File Line
apply_ast_rule_config_overrides Function tests/integration/config_override_support.py 56
context_with_limits Function tests/integration/test_python_ast_rule_public_api.py 33
test_broad_and_silent_exception_rules_report_distinct_findings Function tests/integration/test_python_ast_rule_public_api.py 49
test_complexity_rule_reports_target_function Function tests/integration/test_python_ast_rule_public_api.py 78
test_dead_code_rule_reports_unreachable_function Function tests/integration/test_python_ast_rule_public_api.py 102
test_deep_nesting_rule_reports_nested_function Function tests/integration/test_python_ast_rule_public_api.py 158
test_feature_envy_rule_reports_external_object_bias Function tests/integration/test_python_ast_rule_public_api.py 197
test_flat_sibling_rule_reports_projected_package_sprawl Function tests/integration/test_python_ast_rule_public_api.py 313
test_import_alias_rule_reports_non_standard_alias Function tests/integration/test_python_ast_rule_public_api.py 256
test_import_fanout_rule_reports_excess_from_imports Function tests/integration/test_python_ast_rule_public_api.py 266
test_long_line_rule_reports_executable_line Function tests/integration/test_python_ast_rule_public_api.py 178
test_long_method_rule_reports_function_span Function tests/integration/test_python_ast_rule_public_api.py 119
test_long_parameter_rule_reports_function_signature Function tests/integration/test_python_ast_rule_public_api.py 140
test_private_import_chain_rule_reports_stacked_private_import Function tests/integration/test_python_ast_rule_public_api.py 283
test_thin_wrapper_rule_reports_structural_smell Function tests/integration/test_python_ast_rule_public_api.py 222
test_assertion_roulette_rule_reports_bare_assert_run Function tests/integration/test_python_ast_staging_public_api.py 116
test_conditional_assertion_rule_reports_control_flow Function tests/integration/test_python_ast_staging_public_api.py 151
test_duplicate_call_sequence_rule_reports_shared_sequence Function tests/integration/test_python_ast_staging_public_api.py 43
test_eager_test_rule_reports_excess_sut_calls Function tests/integration/test_python_ast_staging_public_api.py 97
test_fixture_outside_conftest_rule_reports_fixture_function Function tests/integration/test_python_ast_staging_public_api.py 134

How to Explore

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