Skip to content

stella/ai-shared

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stella AI shared

ai-shared

Shared AI skills and sync tooling for Stella repositories.

Layout

modules/
  <module-name>.md      # reusable AGENTS.md fragments
skills/
  <skill-name>/
    SKILL.md            # shared Codex skill source of truth
scripts/sync-ai-skills.sh
scripts/link-codex-skills.sh

Recommended shared planning conventions for consumer repos:

.agents/ARCHITECTURE.md
.agents/GOALS.md
.agents/STATUS.md
.agents/plans/

Consumer repositories are expected to use:

.ai/shared/              # submodule pointing here
.ai/manifest.json        # selected modules and local AGENTS fragment
.ai/local/agents.md      # repo-specific AGENTS.md fragment
.ai/local-skills/        # repo-local Codex-style skills
AGENTS.md                # generated and committed
CLAUDE.md                # generated shim importing AGENTS.md
GEMINI.md                # generated shim importing AGENTS.md
.claude/commands/        # generated flat command files
.agents/skills/          # generated Codex-style skills

Sync behavior

The sync script assembles AGENTS.md from:

  1. .ai/shared/modules/<name>.md, in .ai/manifest.json order
  2. .ai/local/agents.md

It also generates CLAUDE.md and GEMINI.md adapters so the committed root instructions are immediately usable by multiple coding agents. When .ai/manifest.json contains an agents object, these root prompt files are generated even if the module list is empty and the local fragment is absent, so --check still catches stale committed instructions.

The same script overlays skills from:

  1. .ai/shared/skills/
  2. .ai/local-skills/

onto both generated targets:

  • .claude/commands/<skill>.md
  • .agents/skills/<skill>/SKILL.md

If the same skill name exists in both sources, the local skill wins.

The generated directories keep only a .gitignore placeholder when no skills are present. .gitkeep files from source directories are ignored and are not copied into generated outputs.

Use --check in CI to fail when committed generated files are stale:

bash .ai/shared/scripts/sync-ai-skills.sh --check .

Usage from a consumer repo

bash .ai/shared/scripts/sync-ai-skills.sh .

Or add a thin wrapper script in the consumer repo:

#!/usr/bin/env bash
set -euo pipefail
bash .ai/shared/scripts/sync-ai-skills.sh "$@" .

To link generated agent skills into Codex's global skill directory:

bash .ai/shared/scripts/link-codex-skills.sh .

By default this installs namespaced links like stella-open-pr into ${CODEX_HOME:-$HOME/.codex}/skills to avoid cross-repo collisions. Set CODEX_SKILL_PREFIX="" if you explicitly want unprefixed global names.

Current Shared Commands

  • rabbit-round — handle bot PR reviews systematically
  • open-pr — open a clean, verified pull request from the current branch
  • plan — create implementation plans using the shared .agents/plans/ convention
  • regression-hunt — reproduce, isolate, fix, and lock down a regression
  • security-audit — generic security review with repo-specific overlays
  • product-think — shape a feature/problem before implementation
  • update-deps — review and update third-party dependencies

About

Shared AI prompts, skills, and sync tooling for stella repositories

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages