cc-best-practice-adoption

Use when onboarding new Codex features, reviewing external best-practice repos, or expanding the daily learning catalog. Covers: gap analysis against native CC capabilities, tips catalog expansion, daily-learning script, native .Codex/ structure (agents, commands, settings).

5 stars

Best use case

cc-best-practice-adoption is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Use when onboarding new Codex features, reviewing external best-practice repos, or expanding the daily learning catalog. Covers: gap analysis against native CC capabilities, tips catalog expansion, daily-learning script, native .Codex/ structure (agents, commands, settings).

Teams using cc-best-practice-adoption should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/cc-best-practice-adoption/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/workspace-hub/cc-best-practice-adoption/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/cc-best-practice-adoption/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How cc-best-practice-adoption Compares

Feature / Agentcc-best-practice-adoptionStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Use when onboarding new Codex features, reviewing external best-practice repos, or expanding the daily learning catalog. Covers: gap analysis against native CC capabilities, tips catalog expansion, daily-learning script, native .Codex/ structure (agents, commands, settings).

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# CC Best Practice Adoption

Workflow for analyzing external Codex best-practice sources, distilling actionable
gaps in our ecosystem, and wiring daily learning into the session lifecycle.

## When to Use

- New Codex version ships with features to evaluate
- Reviewing an external repo (e.g., shanraisshan/Codex-best-practice)
- Expanding the daily learning tip catalog
- Bootstrapping native .Codex/ structure (agents, commands, skills)

## Gotchas

### 1. Native vs Custom — Check Before Building
**Critical lesson learned:** `/powerup`, `/insights`, `/stats`, `/context`, `/simplify`,
`/batch`, `/debug`, `/diff`, `/security-review` are all **native CC commands** (v2.1.90+).
We wasted effort planning to build custom versions before discovering they exist.

**Rule:** Before creating any slash command, run `/help` or check
[Codex-best-practice/best-practice/Codex-commands.md](https://github.com/shanraisshan/Codex-best-practice/blob/main/best-practice/Codex-commands.md)
for the 64 native commands.

### 2. Hermes Skills vs Native CC Skills
Our ecosystem has 691 Hermes-style skills but ZERO native CC format. They are different:
- **Native CC skills**: `.Codex/skills/<name>/SKILL.md` with CC frontmatter (`context: fork`, `paths`, `model`, `effort`, `hooks`)
- **Hermes skills**: `~/.hermes/skills/<name>/SKILL.md` with Hermes frontmatter
- Both can coexist. Native CC skills show in `/skills` menu and support auto-discovery.

### 3. Tips Catalog YAML Is Not Standard YAML
`config/workflow-tips/tips-catalog.yaml` uses a minimal structure parsed by
`daily-learning.py` without PyYAML. Don't add complex YAML features (anchors, flow
sequences in values). Keep entries as simple `key: value` pairs.

### 4. Deterministic Daily Seed
`daily-learning.py` uses `md5(YYYY-MM-DD)` as seed so the same 2 tips show all day.
Running it multiple times won't cycle tips — that's intentional (spaced repetition).

## Workflow Steps

### Step 1: Clone and Analyze External Source
```bash
cd /tmp && git clone --depth 1 <repo-url>
```
Key files to read first:
- README.md (feature catalog, tip index)
- best-practice/Codex-commands.md (native commands list)
- best-practice/Codex-skills.md (native skills + frontmatter fields)
- best-practice/Codex-subagents.md (native agent frontmatter fields)
- best-practice/Codex-settings.md (60+ settings, 170+ env vars)

### Step 2: Gap Analysis
Compare external catalog against:
1. `config/workflow-tips/tips-catalog.yaml` — what tips are we missing?
2. `.Codex/settings.json` — what settings are we not using?
3. `.Codex/agents/` — do we have native agent definitions?
4. `.Codex/commands/` — do we have native command definitions?

Output a structured list: ALREADY DONE / STILL MISSING / NEW TO ADD.

### Step 3: Expand Tips Catalog
Append new tips to `config/workflow-tips/tips-catalog.yaml` following the format:
```yaml
  - id: <prefix>-<slug>      # cc- | eco- | gsd- | bp-
    category: <category>      # Codex | ecosystem | gsd | practice
    name: <Short Name>
    oneliner: "<one sentence>"
    try_it: "<copy-pasteable command>"
    source: "<provenance>"
    tags: [tag1, tag2]
    added: YYYY-MM-DD
```

Prefixes: `cc-` (Codex native), `eco-` (ecosystem), `gsd-` (GSD), `bp-` (best practice).

### Step 4: Update Daily Learning Script
If new tip categories are added, update `scripts/productivity/daily-learning.py`:
- Add category label mapping in `show_daily_tips()`
- Add practice exercises in `generate_practice()` for high-value tips

### Step 5: Bootstrap Native .Codex/ Structure
Create files using native CC frontmatter (not Hermes format):

**Agents** (`.Codex/agents/<name>.md`):
```yaml
---
name: <name>
description: "<when to invoke — use PROACTIVELY for auto-invocation>"
model: haiku|sonnet|opus
tools: Read, Write, Edit, Bash, Glob, Grep
color: cyan|red|green|blue|magenta
memory: project
effort: low|medium|high|max
isolation: worktree    # optional
skills:                # optional — preloaded into context
  - skill-name
---
```

**Commands** (`.Codex/commands/<name>.md`):
```yaml
---
name: <name>
description: "<what it does>"
model: haiku|sonnet|opus
effort: low|medium|high
allowed-tools: Read, Bash, Agent(explorer)
---
Use !`command` for dynamic shell injection — output injected into prompt.
```

**Settings** (`.Codex/settings.json`) — key fields often missed:
- `outputStyle: "Explanatory"` — insight boxes
- `effortLevel: "high"` — default reasoning depth
- `worktree.symlinkDirectories` — fast worktree startup
- `spinnerVerbs` — domain-relevant waiting messages
- `spinnerTipsOverride` — ecosystem tips while spinning

### Step 6: Wire Into Session Lifecycle
Add a SessionStart hook for automatic tip surfacing:
```json
{
  "type": "command",
  "command": "bash .Codex/hooks/daily-learning-tip.sh 2>/dev/null || true",
  "timeout": 3,
  "statusMessage": "Daily learning tip"
}
```

### Step 7: Track Progress
```bash
uv run scripts/productivity/daily-learning.py --progress    # category coverage
uv run scripts/productivity/daily-learning.py --categories  # browse all tips
```

## Key Files

| File | Purpose |
|------|---------|
| `config/workflow-tips/tips-catalog.yaml` | All tips (67+), 4 categories |
| `config/workflow-tips/tip-history.yaml` | Shown-tip tracking, 30-day window |
| `scripts/productivity/daily-learning.py` | Daily tip picker + practice exercises |
| `.Codex/hooks/daily-learning-tip.sh` | SessionStart hook, 1 tip on start |
| `.Codex/agents/*.md` | Native CC agent definitions |
| `.Codex/commands/*.md` | Native CC slash commands |
| `.Codex/settings.json` | CC configuration |

## Reference
- https://github.com/shanraisshan/Codex-best-practice (133k+ stars)
- 64 native CC commands, 5 official skills, 5 official agents
- CC frontmatter docs: commands, skills, subagents pages in best-practice repo
- GitHub issues: #1775 (8-week cadence), #1760 (self-improvement commands)
- https://github.com/affaan-m/everything-Codex (50K stars, MIT)
  - Cherry-pick: security guide, pre:config-protection hook, batch-at-Stop pattern,
    context-budget skill, autonomous-loops (6 patterns), continuous-learning-v2 instincts
  - Implemented pattern: add a dedicated Codex `PreToolUse` hook entry in `.Codex/settings.json`
    for `Write|Edit|MultiEdit`, then delegate the decision to a reusable shell checker
    (example: `.Codex/hooks/config-protection-pretooluse.sh` -> `scripts/enforcement/check-config-protection.sh`).
    This keeps policy logic testable outside the hook wrapper.
  - Practical allowlist learned in implementation: permit non-tooling metadata edits in `pyproject.toml`
    and other low-risk config touches, but block broad weakening patterns like `ignore`,
    `extend-ignore`, `per-file-ignores`, `disable`, `skip`, `off`, and block removal of
    core safety-gate text from `AGENTS.md` / `AGENTS.md` unless an explicit env bypass is set.
  - Testing pattern: write focused pytest coverage for the hook wrapper behavior before implementation,
    including non-protected file pass-through, allowlisted metadata edits, blocked risky config edits,
    blocked safety-gate removal, and explicit bypass env (`CONFIG_PROTECTION_APPROVED=1`).
  - MCP servers to evaluate: evalview, insaits, token-optimizer, omega-memory
  - ~80% overlap with our 691 skills — adopt patterns not bulk content

## Version History
- **1.0.0** (2026-04-03): Initial — gap analysis workflow, tips expansion, native CC structure bootstrap

Related Skills

comprehensive-learning

5
from vamseeachanta/workspace-hub

Single fire-and-forget command that runs the full session learning pipeline: insights → reflect → knowledge → improve → action-candidates → report. All machines run local Phases 1–9 against logs/orchestrator/ and commit derived state. dev-primary additionally runs Phase 10a (cross-machine compilation) and Phase 10 (report). Safe for cron scheduling. Use when session ends, nightly cron fires, or you want to harvest learnings from recent sessions. Replaces running 4 skills manually.

openfoam-analysis

5
from vamseeachanta/workspace-hub

End-to-end CFD analysis workflow using OpenFOAM — from problem definition through meshing, solving, and post-processing to calculation report generation. Integrates with calculation-methodology (6-phase structure) and calculation-report (YAML → HTML rendering). Use when performing CFD analyses, not just setting up cases.

openfoam

5
from vamseeachanta/workspace-hub

OpenFOAM AI Interface Skill — case setup, CLI execution, output parsing, failure diagnosis, validation

external-repo-adoption-recon

5
from vamseeachanta/workspace-hub

Clone and analyze an external open-source repo (best practices, frameworks, workflow toolkits) to produce a gap analysis against our ecosystem and an adoption cadence plan. Use when a user shares a GitHub URL of a methodology/tooling repo and wants to extract what's useful.

github-actions-1-security-best-practices

5
from vamseeachanta/workspace-hub

Sub-skill of github-actions: 1. Security Best Practices (+3).

mcp-builder-security-best-practices

5
from vamseeachanta/workspace-hub

Sub-skill of mcp-builder: Security Best Practices.

lead-generation-best-practices

5
from vamseeachanta/workspace-hub

Sub-skill of lead-generation: Best Practices.

meeting-briefing-action-item-best-practices

5
from vamseeachanta/workspace-hub

Sub-skill of meeting-briefing: Action Item Best Practices (+2).

knowledge-management-title-best-practices

5
from vamseeachanta/workspace-hub

Sub-skill of knowledge-management: Title Best Practices (+2).

test-oversized-skill

5
from vamseeachanta/workspace-hub

A test fixture skill that exceeds 200 lines with multiple H2/H3 sections for split testing.

interactive-report-generator

5
from vamseeachanta/workspace-hub

Generate interactive HTML reports with Plotly visualizations from data analysis results. Supports dashboards, charts, and professional styling.

data-validation-reporter

5
from vamseeachanta/workspace-hub

Generate interactive validation reports with quality scoring, missing data analysis, and type checking. Combines Pandas validation, Plotly visualization, and YAML configuration for comprehensive data quality reporting.