smorky850612/Aurakit / skills/aura
aura
VerifiedAll-in-one fullstack dev engine. /aura: 46 modes (build/fix/clean/deploy/review/spec/lore/ax/experiment/payment/debug/qa/orchestrate/escalate+), 6-layer security with 32 hooks, tiered models (ZERO/ECO/PRO/MAX), 8 languages, 16 specialized agents, SPEC/EARS/TRUST5/XLOOP/RALF/Autopus absorbed. ~55% token savings.
resources/autopus-lore-commit.md
View on GitHub# Autopus Lore Commit Protocol
> Absorbed from Autopus-ADK. Decision-tracking commit format.
> Every commit is a story ā not just a change, but a record of WHY.
---
## Overview
Lore commits extend conventional commits with 9 structured trailers that capture:
- What was decided and why
- What was rejected
- Confidence level and reversibility
- Test coverage status
---
## Format
```
{type}({scope}): {description}
{optional body ā explain the non-obvious}
Constraint: {constraint that forced this approach}
Rejected: {alternative considered and why discarded}
Confidence: low | medium | high
Scope-risk: local | module | system
Reversibility: trivial | moderate | difficult
Directive: {what this commit directs/implements}
Tested: {test files / scenarios that cover this}
Not-tested: {what was explicitly not tested and why}
Related: SPEC-XXX, #{issue}, {other-commit-sha}
š Autopus
```
---
## Commit Type Taxonomy
| Type | When to Use |
|------|------------|
| `feat` | New feature or capability |
| `fix` | Bug fix |
| `refactor` | Code restructure without behavior change |
| `test` | Test additions or changes |
| `docs` | Documentation only |
| `chore` | Build, tooling, config changes |
| `perf` | Performance improvement |
| `style` | Formatting, whitespace (no logic change) |
| `ci` | CI/CD pipeline changes |
| `lore` | Architecture decision record (no code change) |
| `revert` | Reverts a previous commit |
---
## Trailer Reference
### `Constraint:`
External constraint that limited implementation options.
```
Constraint: PostgreSQL 14 JSON operator not available ā used JSONB cast
Constraint: Rate limit 100 req/s from upstream API
Constraint: Must maintain backward compat with v1 API consumers
```
### `Rejected:`
Alternative approach considered and reason for rejection.
```
Rejected: Redis pub/sub ā adds infra dependency for single-node deployment
Rejected: GraphQL ā over-engineered for 3 endpoints
Rejected: Optimistic UI update ā inconsistency risk with concurrent edits
```
### `Confidence:`
How confident the author is this is the right approach.
```
Confidence: high # Well-understood, tested, proven pattern
Confidence: medium # Some uncertainty, monitored post-deploy
Confidence: low # Experimental, needs follow-up
```
### `Scope-risk:`
How wide the blast radius if this commit breaks something.
```
Scope-risk: local # Single function/component
Scope-risk: module # Affects a feature module
Scope-risk: system # Cross-cutting concern, global state
```
### `Reversibility:`
How hard to undo this change.
```
Reversibility: trivial # git revert, no data migration
Reversibility: moderate # Requires migration or downstream updates
Reversibility: difficult # Data schema change, external API contract
```
### `Directive:`
What requirement, spec, or goal this commit implements.
```
Directive: Implements SPEC-001 AC-02 (JWT refresh flow)
Directive: Addresses SEC-07 (httpOnly cookie requirement)
Directive: Fulfills NFR-01 (p99 < 200ms)
```
### `Tested:`
What testing covers this change.
```
Tested: auth/login.test.ts ā 5 unit tests, 2 integration
Tested: e2e/auth.spec.ts ā happy path + token expiry
Tested: manual ā browser devtools confirm httpOnly flag
```
### `Not-tested:`
What was explicitly NOT tested, with rationale.
```
Not-tested: concurrent token refresh race ā requires load test setup
Not-tested: database failover scenario ā infrastructure concern
Not-tested: IE11 ā dropped from support matrix
```
### `Related:`
Links to related context.
```
Related: SPEC-001, #234, abc1234
Related: ADR-007 (session management decision)
```
---
## `/aura lore:` Mode
```bash
/aura lore:commit [message] ā Write commit with Lore trailers (interactive)
/aura lore:check ā Validate current staged commit has required trailers
/aura lore:validate ā Run lore validation on recent commits
/aura lore:show [sha] ā Display lore trailers for a commit
/aura lore:search [keyword] ā Search commit history by Directive/Constraint
/aura lore:adr ā Generate ADR from recent lore commits
```
---
## Validation Rules
When `/aura lore:check` runs, it enforces:
| Rule | Condition |
|------|-----------|
| LORE-01 | `Confidence` trailer required |
| LORE-02 | `Scope-risk` trailer required |
| LORE-03 | `Tested` OR `Not-tested` required (at least one) |
| LORE-04 | `Rejected` required for `feat` commits (document what you didn't do) |
| LORE-05 | `Directive` required when SPEC exists in `.autopus/specs/` |
| LORE-06 | `š Autopus` sign-off required (auto-appended) |
Violations ā WARN (not blocking by default); `LORE_STRICT=true` ā blocking.
---
## AuraKit Integration
### In BUILD mode (optional, activated with `lore:on` config):
After successful build + verification, Claude prepares lore commit:
```
[LORE] Preparing decision-tracked commit:
Constraint: [detected from implementation notes]
Rejected: [alternatives considered during Discovery]
Confidence: medium ā set based on V2 review result
Scope-risk: [computed from files changed]
Reversibility: [computed from migration files / schema changes]
Tested: [from V3 test results]
```
### Quick Lore (QUICK mode):
```bash
/aura! lore: add login endpoint
# ā minimal trailers: Confidence + Scope-risk only
```
---
## Example Full Commit
```
feat(auth): implement JWT httpOnly cookie session
Replace localStorage token storage with httpOnly cookie to eliminate
XSS token theft vector. Token is set server-side on /api/auth/login
and cleared on /api/auth/logout.
Constraint: Safari ITP requires SameSite=None with Secure for cross-origin
Rejected: SessionStorage ā same XSS vulnerability, short-lived only
Rejected: In-memory token store ā lost on page refresh, bad UX
Confidence: high
Scope-risk: module
Reversibility: moderate
Directive: Implements SPEC-003 AC-01, SEC-02 (no localStorage tokens)
Tested: auth/session.test.ts ā 8 unit tests covering set/clear/validate
Not-tested: Cross-origin iframe scenario ā not in current use cases
Related: SPEC-003, #89
š Autopus
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |