Index of every page on this site: llms.txt
All skills
ganyuanran avatar

/using-aegis

@95d0733
by SeanRanganyuanran/aegis1.5k stars
83
Run it yourself

Use when starting a turn or checking Aegis skill routing.

Use this Skill: https://skilld.dev/gh/ganyuanran/aegis/using-aegis

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencescomplexity-governance.md

≈1.3k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Aegis Complexity Governance Reference

Use this reference when a skill needs the shared interpretation for complexity budgeting, pressure signals, closure, or major-complexity follow-up without repeating the full explanation in every skill body.

Purpose

This reference keeps the Aegis hot and semi-hot skills compact while preserving one shared interpretation of complexity governance across planning, implementation, and completion.

Artifact Classes

At minimum, treat complexity as applying to maintained artifacts, not only production code:

  • Source Complexity: production and library source owners
  • Test Complexity: maintained test source owners, helpers, harnesses, routers, and assertion/build orchestration
  • Decision / Plan Complexity: spec, brief, plan, baseline, and ADR artifacts whose structure affects implementation quality
  • Process Artifact Complexity: checkpoints, evidence, reflections, and other durable work records whose sprawl affects continuity, reviewability, or handoff quality

Do not treat a maintained test source file as a cheap tests-only exception.

Compact Budget Shape

Complexity Budget:
- Artifact class:
- Target files / artifacts:
- Current pressure:
- Projected post-change pressure:
- Budget result: within-budget | at-risk | over-budget
- Planned governance:

Shared Pressure Signals

Typical pressure signals:

  • 800+ line maintained source or maintained test file as a soft pressure signal, not an automatic edit ban
  • 1200+ line maintained artifact, or a touched artifact in the largest 5-10% of the target project, as a strong pressure signal
  • touched cohesive block over roughly 80 lines
  • deep nesting or mixed reasons to change
  • generic owner receiving another responsibility
  • fallback / adapter / guard / compatibility branch growth
  • owner mismatch or duplicate-owner risk
  • plan / process artifact fan-out that harms execution clarity
  • multi-owner sprawl, duplicated decision text, unreadable work-log structure, or handoff-hostile artifact layout

A new file is not automatically better. Prefer a new file only when owner, contract, call path, and retirement story are clearer than add-in-place growth.

For a structural-improvement claim, line reduction alone is insufficient. Joining statements, compressing imports, deleting useful explanation or moving code solely to satisfy a count does not resolve pressure or earn growth allowance. Compare responsibilities, branches, dependencies, duplication and executable statements where available; explain changed dimensions and preserved behavior. Statement counts are optional supporting evidence, not a threshold. Missing measurements stay unknown/inapplicable, never zero or passed. A cohesive extraction may improve ownership with unchanged statement totals or slightly more wiring; check boundaries, callers, dependencies and old-path disposition.

Phase Rules

Planning / pre-edit:

  • If projected result is over-budget, do not silently continue with add-in-place growth.
  • Revise the boundary, add governance work, split the task, or explicitly mark the slice as requiring follow-up.
  • If the target edit file is over-budget or mixed-purpose, classify edit intent before non-trivial source edits: wiring-only, move-out / extract-first, local-fix-without-new-responsibility, new-responsibility, or emergency / compatibility patch.
  • new-responsibility must not be added in place to an over-budget or mixed-purpose owner by default. Reuse or extract the correct owner, split the task, or pause for plan review.
  • move-out / extract-first is allowed when the overloaded owner gets thinner or clearer. wiring-only and local fixes are allowed when they do not add a responsibility.

Completion:

Complexity Closure:
- Budget status: within-budget | exceeded-and-governed | exceeded-unresolved
- Governed now:
- Deferred follow-up:
- Completion impact: complete | needs-follow-up | not-complete
  • If Complexity Closure is exceeded-unresolved, Aegis must not claim the task is complete.
  • If completion-time complexity is over budget, classify the repair decision as govern-now, follow-up-required, or not-complete. govern-now may continue only inside the current authorized slice with a clear verification boundary; otherwise report follow-up or downgrade completion.
  • Prefer a feasible authorized repair: reuse the correct owner or extract a cohesive module; separate mixed responsibilities or simplify duplicated branches/dependencies; narrow the change only while preserving the requested outcome. Continue within existing authority without repeated approval. If no candidate fits, name the limiting constraint and concrete follow-up/decision. Do not silently drop required behavior. These are candidates, not mandatory refactoring, destructive permission or a numeric growth allowance.

Major Complexity Follow-up

When the current slice encounters a materially oversized maintained artifact that it cannot fully govern, emit:

Major Complexity Alert:
- Artifact:
- Why it is materially oversized:
- Why this slice cannot fully govern it:
- Recommended follow-up:

Use this to keep the user aware that a separate complexity-governance slice may be needed.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts6d3 checks · Risk SAFE
  • Gen Agent Trust Hub6d

    This skill provides a comprehensive framework and set of discipline rules for an AI agent to manage codebase tasks and subagent routing. It includes tool mappings for multiple platforms (Claude Code, Copilot CLI, Google Antigravity) and establishes governance for code complexity. No malicious patterns or security risks were identified.

  • Socket7d

    No alerts

  • Snyk6d

    Risk: LOW · No issues

Signed by skilld at 95d0733. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 weeks ago
alwaysApply
true

README badge

README badge for ganyuanran/aegis/using-aegis