This repository contains the centralized source of truth (SSOT) for personal AI rules and skills. It defines development standards, review workflows, and tracking mechanisms optimized for agentic coding assistants (like Antigravity).
AGENTS.md: Global behavior guidelines, engineering standards, and execution constraints.skills/: Production-grade, token-efficient engineering skills:resolve-issue/: Goal-driven autonomous issue resolution with upfront PR vs. Merge triage, runtime verification, and manual step disclosure.plan-review/: Audits implementation plans for errors/opportunities and domain skill alignment before coding.peer-review-with-quality/: Senior pre-commit quality gate (surgical diffs, 100% tests, SonarCloud, trace reconciliation).peer-review-with-quality/: Canonical quality review workflow with full automated test enforcement, SonarCloud compliance, and dynamic skill selection.feature-tracking/: Automatically maintains branch-level progress logs in/docs/traces/.create-github-issue/: Issue creation guidelines with project board integration and REST API relationships.git-branch-cleanup/: Synchronizes local branch list by pruning remote-deleted branches.github-commands/: Non-interactiveghCLI and REST API cheatsheet.- Reasoning, Testing & Debugging:
doubt-driven-development-slim/: 5-step adversarial evaluation cycle for non-trivial decisions.test-driven-development-slim/: Red-Green-Refactor loop and boundary-only mocking.debugging-and-error-recovery-slim/: Scientific debugging cycle, falsifiable hypotheses, and regression guards.testing-workflow/: Unit and integration test execution and verification guidelines.sonarqube-review/: SonarCloud quality gate compliance and static analysis triage.
- Frontend & Web Quality:
frontend-ui-engineering-slim/: Modular architecture, zero!important, zero inline styles, layout stability.accessibility-and-a11y-slim/: WCAG 2.2 AA compliance, semantic HTML, keyboard focus trapping.longest-contentful-paint-slim/: Core Web Vitals LCP optimization (TTFB < 800ms, priority hinting, critical CSS).design-review/: Comprehensive UI/UX, aesthetics, copy, and layout verification.
- Backend, Data & Infrastructure:
api-and-interface-design-slim/: RFC 7807 problem details, idempotency keys, boundary validation, and pagination.database-and-migrations-slim/: Zero-downtime expand/contract migrations, non-blocking indexing, connection pool safety.security-and-hardening-slim/: OWASP Top 10 defense, parameterized queries, IDOR defense, and secret hygiene.performance-optimization-slim/: Measurement-first profiling, INP yielding, hot-path optimization, memory leak prevention.ci-cd-and-automation-slim/: Non-interactive pipeline invariants, reusable actions, SemVer release trains.
-
Configure npm registry for
@higherkeyscope: Add a.npmrcfile at the root of your project:@higherkey:registry=https://npm.pkg.github.com(Note: Since
@higherkey/ai-standardsis a public package, downloading does not require private auth tokens). -
Install the package:
npm install --save-dev @higherkey/ai-standards
(Alternative without .npmrc:
npm install --save-dev github:higherkey/ai-standards#v0.3.0) -
Configure scripts in your
package.jsonto automate rules updates on installation:"scripts": { "sync-ai": "ai-standards-sync", "postinstall": "ai-standards-sync" }
Note: The CLI tool runs as a dependency-free copy helper. If run during postinstall, it will automatically fail-safe (warn but exit with 0) in CI/CD environments if permission errors occur.
-
Initialize & Commit: Run
npm run sync-aionce to initialize.agents/, then commit the folder to Git. -
Integrate localization: Create or update
.agents/AGENTS.mdto append project-specific rules. Subsequent syncs will not overwrite your localAGENTS.mdunless you pass the--forceflag.
If you are an AI assistant tasked with setting up or updating these standards in this project, do not write custom download scripts. Instead, run the help menu to view instructions and verify the setup:
npx ai-standards-sync --help- Bootstrap
.agents/from the central repo usingdegit:npx degit higherkey/ai-standards/skills .agents/skills
- Check
.agents/directly into Git. - Integrate localization: Create or update
.agents/AGENTS.mdto append project-specific rules.
If you are contributing to an external codebase and want to use these workflows without polluting the repository:
- Maintain these skills/rules globally on your local machine (
~/.gemini/config/). - To prevent local trace files (e.g.,
docs/traces/,.agents/,task.md,walkthrough.md) from showing up ingit statuswithout editing the repo's.gitignore:
git config --global core.excludesfile ~/.gitignore_globalAdd the following lines to ~/.gitignore_global:
/docs/traces/
/.agents/
/task.md
/walkthrough.md
We provide centralized reusable GitHub Actions workflows to enforce and manage AI traces in your projects.
Enforces that every pull request opened from a conventionally prefixed branch (e.g., feat/, fix/) contains its mandatory trace document under docs/traces/[branch-name]-work-trace.md before it can be merged.
Create .github/workflows/validate-ai-traces.yml in your repository:
name: Validate AI Traces
on:
pull_request:
branches: [main, dev]
jobs:
validate:
uses: higherkey/ai-standards/.github/workflows/validate-trace.yml@mainAutomatically deletes branch trace files from the codebase upon a successful pull request merge, keeping repository history clean.
Create .github/workflows/clean-ai-traces.yml in your repository:
name: Clean AI Traces
on:
pull_request:
types: [closed]
jobs:
cleanup:
if: github.event.pull_request.merged == true
uses: higherkey/ai-standards/.github/workflows/clean-traces.yml@main
with:
base-branch: ${{ github.event.pull_request.base.ref }}
secrets: inheritTo define a new specialized AI skill workflow:
- Create a new directory under
skills/<your-skill-name>/. - Inside that directory, create a
SKILL.mdfile. - The
SKILL.mdmust include YAML frontmatter withnameanddescription:--- name: your-skill-name description: "Brief description of what this skill does" ---
- Keep the body of the
SKILL.mdfile under 250 lines. Place verbose checklists, references, or code templates under a sub-folder (e.g.references/,examples/) to optimize context window usage.