aiwg-regenerate-codex
SolidRegenerate Codex context file (CODEX.md or ~/.codex/instructions.md) with AIWG framework content
AI & Automation 146 stars
21 forks Updated today MIT
Install
Quality Score: 87/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Regenerate Codex Context
Regenerate the Codex context file (`CODEX.md` or `~/.codex/instructions.md`) for OpenAI Codex integration. Performs an **intelligent merge** — preserving team-written content while updating AIWG context.
## Core Principle
**Team content is preserved. AIWG content is updated. Full injection used (Codex does not support @-link directives).**
## Important: No @-Link Support
Codex context files do not support `@filename` style includes. AIWG content is embedded directly using injection markers:
```markdown
<!-- BEGIN AIWG -->
[AIWG content]
<!-- END AIWG -->
```
This is different from other providers that use the hook file approach.
## Parameters
| Flag | Description |
|------|-------------|
| `--no-backup` | Skip creating backup file |
| `--dry-run` | Preview changes without writing |
| `--user-level` | Update `~/.codex/instructions.md` instead of project-level `CODEX.md` |
| `--migrate` | Extract injection to `AIWG-codex.md` and reference from CODEX.md (future-proofing) |
## Context File Locations
| Scope | Path | Use case |
|-------|------|----------|
| Project-level | `CODEX.md` | Project-specific AIWG context |
| User-level | `~/.codex/instructions.md` | User-wide context across all projects |
Default: project-level `CODEX.md`. Use `--user-level` for user-wide context.
## Execution Steps
### Step 1: Create Backup
Unless `--no-backup` specified, create `CODEX.md.backup-{YYYYMMDD-HHMMSS}`.
### Step 2: Analyze Existing Content
Read `C...
Details
- Author
- jmagly
- Repository
- jmagly/aiwg
- Created
- 10 months ago
- Last Updated
- today
- Language
- TypeScript
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
codex
Configure and use OpenAI Codex CLI. Use when user mentions codex, wants to set up Codex, or asks about Codex config (.codex/config.toml). Trigger: /codex, codex config, set up codex, .codex/config.toml
0 Updated today
mattbutlerengineering AI & Automation Listed
codex-vscode
Configure and troubleshoot OpenAI Codex in VS Code and VS Code-compatible IDEs. Use when adding Codex project instructions, installing standards for the Codex VS Code extension, explaining Codex instruction discovery, or aligning Codex with this repository's AI-Agent-Standards workflow.
0 Updated yesterday
JunMystery AI & Automation Listed
auditcodex
Send recent work to OpenAI Codex CLI for an independent audit/review
202 Updated 2 months ago
sterlingcrispin