SO

source-command-write-code

Migrates slash-command coding workflows into Codex-native procedures.

Install

mkdir -p .claude/skills/source-command-write-code && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18657" && unzip -o skill.zip -d .claude/skills/source-command-write-code && rm skill.zip

Installs to .claude/skills/source-command-write-code

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Converted Codex workflow from Claude slash command `write-code`. Use when the user asks to run the equivalent command or describes this workflow.
145 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Maintain project documentation synchronization
  • Enforce policy gates for deployments
  • Enforce policy gates for Git actions
  • Ensure Claude-compatible workflows function in Codex
  • Run `code-writing` skill

How it works

The skill synchronizes project documentation changes between `.claude/**` and `.codex/**` files and applies policy gates for deployments and Git actions.

Inputs & outputs

You give it
Changes to project-local `.claude/**` files
You get back
Synchronized `.codex/**` files and execution of `code-writing` skill

When to use source-command-write-code

  • Executing write-code commands
  • Syncing project documentation
  • Maintaining Codex workflow compliance

About this skill

<!-- Generated by sync-to-codex v1. Do not edit directly. -->

Command Workflow: write-code

Treat Claude-only tool names as conceptual workflow steps and use available Codex tools/policies.

Codex Policy Gates

  • Ask before external actions such as GitHub repository creation, git push, deploys, or sending messages unless the user explicitly requested that exact action.
  • Deployments must go through GitHub CI/CD; direct server access is only for emergency debugging of broken production.
  • Never ask the user to paste secrets in chat. Direct them to .env files or GitHub Actions secrets.

Instructions

Project Documentation Autosync

If this command changes any project-local .claude/** file, immediately run:

~/.claude/scripts/sync-to-codex.sh --project "$PWD" --apply

If sync reports a conflict, stop and report it. Include generated .codex/** changes in the same commit as the .claude/** source change.

Use the code-writing skill.

When not to use it

  • When performing external actions without explicit user request
  • When deploying without GitHub CI/CD
  • When asking the user to paste secrets in chat

Limitations

  • Deployments must go through GitHub CI/CD
  • Direct server access is only for emergency debugging
  • Cannot ask the user to paste secrets in chat

How it compares

This skill adapts Claude-specific workflows to a Codex environment by synchronizing documentation and enforcing Codex policy gates, unlike direct execution of Claude commands.

Compared to similar skills

source-command-write-code side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
source-command-write-code (this skill)026dReviewIntermediate
resolve-conflicts818moReviewIntermediate
openspec-onboard105moReviewBeginner
codex-cli-bridge99moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry