[WIP] Create Ugotta Codex Codespace template repository#1
Merged
Conversation
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Copilot stopped work on behalf of
JeffreyLovett due to an error
February 6, 2026 16:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementation Plan: Codex/Copilot-Friendly Template
.github/directory.github/copilot-instructions.md- Copilot's constitution for the repo.github/pull_request_template.md- Structured PR templatedocs/CODEX_WORKFLOW.md- Codex usage guidelinesdocs/HANDOFF_PROTOCOL.md- Claude → Codex → Copilot handoff packet.github/workflows/quick-check.yml- Minimal quality gate workflowOriginal prompt
Create Template #2: ugotta-codex-codespace-template
You’ll do this once, then we’ll reuse it forever.
Step 1 — Create the new repo from your existing template
1. Open your template repo on GitHub: JeffreyLovett/claude-github-codespace-template
2. Click Use this template
3. New repo name: ugotta-codex-codespace-template
4. Set it Public template (so you can clone it into new projects fast)
5. Create repo
⸻
Step 2 — Add a “Copilot does the leg work” work order (in-repo)
We’re going to make Copilot (in GitHub + VS Code/Codespaces) do most of the setup by giving it:
• clear files to create
• exact acceptance checks
• a PR workflow
Add these files (Copilot-friendly)
A) .github/copilot-instructions.md
This is Copilot’s “constitution” for this repo.
Copilot Instructions (Ugotta Codex Template)
Goal
This repository is a reusable Codespaces + Codex-ready starter template. Keep changes safe, minimal, and well-documented.
Rules
Required Outputs
When completing tasks, ensure:
Quality Gates
Before marking work complete:
B) .github/pull_request_template.md
Forces structured PRs from Copilot/Codex (and humans).
What changed
Why
How to test
Checklist
C) docs/CODEX_WORKFLOW.md
Codex baton-pass + PR discipline.
Codex Workflow (Ugotta Template)
When to use Codex
Use Codex when implementation work is large, repetitive, or needs PR-based delivery.
Standard Task Packet (paste into Codex)
Output format
Codex should deliver:
D) docs/HANDOFF_PROTOCOL.md
Claude → Codex → Copilot “handoff packet” so nothing stalls at 75%.
Handoff Protocol
Handoff Packet
Rule
If unsure, create a PR draft rather than pushing directly to main.
⸻
Step 3 — Make Copilot do the leg work (two ways)
Option A: Use Copilot Chat in Codespaces / VS Code (recommended)
1. Open the new repo in Codespaces
2. Open Copilot Chat
3. Paste this “work order”:
Copilot Work Order Prompt
You are working in repo: ugotta-codex-codespace-template.
Create the following files exactly (if they don't exist):
Then update README.md with:
Do not add secrets. Keep changes minimal and consistent with existing style.
After edits, provide a short summary of changes.
Option B: Use Copilot directly on GitHub (PR from the web)
If you have Copilot enabled in GitHub web UI:
• Create a branch
• Add/commit the files with Copilot assistance
• Open PR using the PR template
⸻
Step 4 — Add a minimal “quality gate” workflow (optional but smart)
If you want Copilot/Codex to always be forced into “green checks,” add:
.github/workflows/quick-check.yml
This is lightweight and catches broken formatting quickly.
name: quick-check
on:
pull_request:
workflow_dispatch:
jobs:
repo-sanity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Basic file presence
run: |
test -f README.md
test -d docs
test -d .github
echo "OK"
Copilot prompt to add it
Add a minimal GitHub Actions workflow at .github/workflows/quick-check.yml that runs on pull_request and workflow_dispatch and checks README.md exists and docs/ and .github/ directories exist. Keep it simple.
⸻
Step 5 — The scalable “factory” workflow (repeatable process)
Once this repo exists, every new project becomes:
1. Use this template → create repo
2. Open in Codespaces
3. Run “Copilot Work Order Prompt” (customize for the project)
4. If Copilot hits complexity: hand off to Codex using the Handoff Packet
5. Merge PR after checks
⸻
Your immediate next action (1 minute)
Do Step 1 now (create the new repo from template).
Then tell me the repo is created (or paste the repo link), and I’ll...
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.