Architecture Map
Start with the shape before touching code.
Top-Level Tree
./.github/workflows/lint.yml ./README.md ./function/README.md ./function/backend/package-lock.json ./function/backend/package.json ./function/eslint.config.js ./function/index.html ./function/package-lock.json ./function/package.json ./function/public/vite.svg ./function/src/app.js ./function/src/index.css ./function/src/index.js ./infra/bin/cdk.json ./infra/bin/index.js ./infra/lib/repo-creator-stack.js ./infra/package-lock.json ./infra/package.json ./package-lock.json ./package.json ./repo-ui/README.md ./repo-ui/package-lock.json ./repo-ui/package.json ./repo-ui/public/favicon.ico ./repo-ui/public/index.html ./repo-ui/public/logo192.png ./repo-ui/public/logo512.png ./repo-ui/public/manifest.json ./repo-ui/public/robots.txt ./repo-ui/src/App.css ./repo-ui/src/App.js ./repo-ui/src/App.test.js ./repo-ui/src/index.css ./repo-ui/src/index.js ./repo-ui/src/logo.svg ./repo-ui/src/reportWebVitals.js ./repo-ui/src/setupTests.js
Agent Reading Order
These files are the first tour stops.
function/backend/frontend/src/index.js
Core execution surface likely to coordinate the main behavior.
18 linesfunction/src/index.js
Core execution surface likely to coordinate the main behavior.
39 linesinfra/bin/index.js
Core execution surface likely to coordinate the main behavior.
16 linesrepo-ui/src/index.js
Core execution surface likely to coordinate the main behavior.
12 linesREADME.md
Human-facing overview. Read this before touching code.
1 linespackage.json
Node scripts, package metadata, and workflow clues.
7 linesfunction/src/app.js
Implementation surface likely to contain core behavior.
45 linesGuardrails
Where an agent should slow down.
Risk Areas
CI/workflow automation can publish, deploy, or mutate external state.
.github/workflows/lint.yml
Safe First Tasks
- Read README and agent instruction files before editing.
- Run the cheapest available verification command before and after changes.
- Start with docs, examples, or tests before touching core implementation.
Exact Code, Plain English
Use real snippets as the trust anchor.
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
This snippet is a likely implementation anchor. Read it with nearby imports and callers before changing it.
const { Octokit } = require("@octokit/rest");
exports.handler = async (event) => {
const repoName = event.queryStringParameters?.repo;
if (!repoName) {
return {
statusCode: 400,
body: JSON.stringify({ error: "Missing 'repo' parameter" }),
};
}
This snippet is a likely implementation anchor. Read it with nearby imports and callers before changing it.
const cdk = require('aws-cdk-lib');
const { RepoCreatorStack } = require('../lib/repo-creator-stack');
// Create a new CDK app
const app = new cdk.App();
// Instantiate your RepoCreatorStack
new RepoCreatorStack(app, 'RepoCreatorStack', {
// Uncomment and set env if you want to lock deployment region/account
// env: {
// account: process.env.CDK_DEFAULT_ACCOUNT,
// region: process.env.CDK_DEFAULT_REGION
This snippet is a likely implementation anchor. Read it with nearby imports and callers before changing it.
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
This snippet is a likely implementation anchor. Read it with nearby imports and callers before changing it.
function App() {
const [name, setName] = useState("");
const [result, setResult] = useState("");
const createRepo = async () => {
try {
const res = await fetch(
`https://abc123.execute-api.us-east-1.amazonaws.com/prod/create?name=${encodeURIComponent(
name
)}`,
{ method: "POST" }
);
This snippet is a likely implementation anchor. Read it with nearby imports and callers before changing it.