Skip to content

Bootstrap AI agent environment and repository foundation#8

Merged
TaiChi112 merged 8 commits into
mainfrom
chore/agent-environment-bootstrap
Jun 2, 2026
Merged

Bootstrap AI agent environment and repository foundation#8
TaiChi112 merged 8 commits into
mainfrom
chore/agent-environment-bootstrap

Conversation

@TaiChi112

@TaiChi112 TaiChi112 commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Added and finalized shared AI agent instructions via AGENTS.md
  • Added Claude Code and GitHub Copilot instruction layers
  • Adopted Bun as the canonical package manager and removed stale package-lock.json
  • Updated homepage hero copy
  • Synced README deployment, package-manager, and auth documentation with current repository behavior
  • Added initial Database documentation navigation placeholders

Validation

Review Notes

  • Addressed CodeRabbit feedback by keeping .github/copilot-instructions.md thinner
  • Addressed README auth-version wording
  • Left the literal .github/workflows/deploy.yml path unchanged because it is the correct repository path

Notes

  • This PR does not address Dependabot vulnerabilities
  • Dependency/security remediation should be handled in a separate follow-up branch

Copilot AI review requested due to automatic review settings June 1, 2026 15:26
@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
personal-profile-prototype Ready Ready Preview, Comment Jun 2, 2026 1:34am

@ecc-tools

ecc-tools Bot commented Jun 1, 2026

Copy link
Copy Markdown

Analyzing 200 commits...

@coderabbitai

coderabbitai Bot commented Jun 1, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR adds repository AI/agent guidance, revises README to use Bun and Docker Compose with SSH deploys to GCP/Azure, introduces a new database systems docs subsection with navigation and placeholder pages, and updates a localization string and a docs edit link.

Changes

Repository Governance and Instruction Framework

Layer / File(s) Summary
Agent and AI instruction framework
.github/copilot-instructions.md, AGENTS.md, CLAUDE.md
Introduces Copilot-specific guidance, canonical agent workflow rules, and Claude-specific behavioral constraints including approved modification boundaries, escalation procedures, and validation requirements.

Deployment Architecture and Tooling Documentation

Layer / File(s) Summary
README deployment and tooling architecture
README.md
Redefines deployment narrative from Cloud Run to Docker Compose with SSH-based deploys to GCP/Azure; establishes Bun as canonical package manager; updates local dev setup, CI/CD pipeline, Node.js version to 20.19, integration test commands, and rollback procedures.

Database Systems Documentation

Layer / File(s) Summary
Database systems documentation structure
docs/(computer_science)/systems/db/meta.json, docs/(computer_science)/systems/db/overview/index.mdx, docs/(computer_science)/systems/db/foundations/index.mdx, docs/(computer_science)/systems/db/schema-design/index.mdx, docs/(computer_science)/systems/db/reliability/index.mdx, docs/(computer_science)/systems/db/performance/index.mdx, docs/(computer_science)/systems/db/agentic-applications/index.mdx, docs/(computer_science)/systems/db/labs/index.mdx
Introduces a new database systems documentation subsection with navigation metadata and seven planned section pages (Overview, Foundations, Schema Design, Reliability, Performance, Agentic Applications, Labs), each marked as work-in-progress.

Content and Link Updates

Layer / File(s) Summary
Localization and documentation links
app/models/theme/locales/en.ts, docs/(computer_science)/index.mdx
Updates hero section localization strings and corrects GitHub edit link to point to the current repository.

"A rabbit's note:
I stitched the guides with care and cheer,
Bun boots and Docker near,
Docs planted row by row,
Hoppy updates — off they go! 🐇"

🎯 2 (Simple) | ⏱️ ~12 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title directly and accurately reflects the main objectives: setting up AI agent guidance (AGENTS.md, CLAUDE.md, copilot-instructions.md) and establishing repository foundations (README updates, documentation structure, package manager adoption).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/agent-environment-bootstrap

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ecc-tools

ecc-tools Bot commented Jun 1, 2026

Copy link
Copy Markdown

Analysis Complete

Generated ECC bundle from 7 commits | Confidence: 50%

View Pull Request #9

Repository Profile
Attribute Value
Language TypeScript
Framework Not detected
Commit Convention freeform
Test Directory separate
Changed Files (15)
Metric Value
Files changed 15
Additions 365
Deletions 12183

Top hotspots

Path Status +/-
package-lock.json removed +0 / -12086
AGENTS.md added +180 / -0
README.md modified +73 / -95
.github/copilot-instructions.md added +15 / -0
CLAUDE.md added +14 / -0

Top directories

Directory Files Total changes
. 4 12448
.github 1 15
docs/(computer_science)/systems/db 1 11
docs/(computer_science)/systems/db/agentic-applications 1 10
docs/(computer_science)/systems/db/foundations 1 10
Analysis Depth Readiness (evidence-backed, 29%)

ECC Tools uses this to decide whether recommendations should stay at commit-history/setup guidance or expand into CI, security, harness, reference-set, AI-routing, and team backlog work.

Area Status Evidence / Next Step
Commit history Ready 7 commits sampled
CI/CD signals Missing Add workflow files or CI troubleshooting evidence so ECC Tools can reason about pipeline setup.
Security evidence Missing Add AgentShield, audit, SARIF, SBOM, or security review evidence so recommendations can cover security posture.
Harness configuration Missing Add Claude, Codex, OpenCode, Zed, dmux, MCP, plugin, or cross-harness config evidence for harness-agnostic recommendations.
Reference/eval evidence Missing Add fixtures, golden traces, reference sets, or evaluator benchmarks so deeper recommendations have regression evidence.
AI routing and cost controls Ready CLAUDE.md
Team handoff and project tracking Missing Add roadmap, runbook, project, Linear, or follow-up tracking docs so generated work can land in a team queue.
Reference Set Readiness (0/7, 0%)
Area Status Evidence / Next Step
Deep analyzer corpus Missing Add analyzer fixture, golden, benchmark, or reference-set files that can catch analyzer regressions.
RAG/evaluator comparison Missing Add retrieval or evaluator reference-set comparison fixtures with expected ranking behavior.
PR salvage/review corpus Missing Add stale-PR, review-thread, reopen-flow, or salvage reference cases for queue cleanup automation.
Discussion triage corpus Missing Add public discussion triage fixtures, golden cases, or reference sets for informational, answered, and no-response classifications.
Harness compatibility Missing Add cross-harness, adapter-compliance, or harness-audit evidence for Claude, Codex, OpenCode, Zed, dmux, and agent surfaces.
Security evidence Missing Attach security evidence such as SBOMs, SARIF, audit reports, or AgentShield evidence packs.
CI failure-mode evidence Missing Add captured CI failure logs, dry-run fixtures, or troubleshooting docs for common workflow failure modes.
Likely Future Issues (3)
Severity Signal Why it may show up
HIGH Schema or model changes may ship without migration follow-up 9 schema/model paths changed; 0 migration files changed
HIGH Data-layer changes may ship without integration coverage 8 data-layer paths changed; 0 integration or e2e tests changed
MEDIUM Cost or token-risk changes may ship without budget evidence 1 cost/token-risk paths changed; 0 budget, usage, or cost validation artifacts changed
  • Schema or model changes may ship without migration follow-up: The PR changes schema or model-facing files but does not include any obvious migration artifact.
  • Data-layer changes may ship without integration coverage: The PR changes repository, query, or database-access files without touching any obvious integration or end-to-end tests.
  • Cost or token-risk changes may ship without budget evidence: The PR changes AI routing, usage, token budget, or model-call surfaces without touching obvious budget, usage-limit, or cost regression evidence.
Suggested Follow-up Work (3)
Type Suggested title Targets
PR db: add migration follow-up for app/models/theme/locales/en.ts + docs/(computer_science)/systems/db/agentic-applications/index.mdx app/models/theme/locales/en.ts, docs/(computer_science)/systems/db/agentic-applications/index.mdx
PR test: add data integration coverage for docs/(computer_science)/systems/db/agentic-applications/index.mdx + docs/(computer_science)/systems/db/foundations/index.mdx docs/(computer_science)/systems/db/agentic-applications/index.mdx, docs/(computer_science)/systems/db/foundations/index.mdx
PR test: add budget evidence for CLAUDE.md CLAUDE.md
  • db: add migration follow-up for app/models/theme/locales/en.ts + docs/(computer_science)/systems/db/agentic-applications/index.mdx: Backfill the missing migration artifact before another schema or model change lands on top.
  • test: add data integration coverage for docs/(computer_science)/systems/db/agentic-applications/index.mdx + docs/(computer_science)/systems/db/foundations/index.mdx: Backfill integration coverage before another data-layer change lands on the touched surface.
  • test: add budget evidence for CLAUDE.md: Backfill cost, token, or usage-limit validation before another model-routing change lands on the touched surface.

Copy-ready bodies

db: add migration follow-up for app/models/theme/locales/en.ts + docs/(computer_science)/systems/db/agentic-applications/index.mdx

## Summary
- Add the missing migration or schema rollout step for the recently changed schema surface.

## Why
- Backfill the missing migration artifact before another schema or model change lands on top.

## Touched paths
- `app/models/theme/locales/en.ts`
- `docs/(computer_science)/systems/db/agentic-applications/index.mdx`

## Validation
- Create the migration or schema rollout artifact used by this repo.
- Run the repo migration / schema validation flow and verify the changed models still match production expectations.

test: add data integration coverage for docs/(computer_science)/systems/db/agentic-applications/index.mdx + docs/(computer_science)/systems/db/foundations/index.mdx

## Summary
- Add integration coverage for the recently changed repository, query, or database-access surface.

## Why
- Backfill integration coverage before another data-layer change lands on the touched surface.

## Touched paths
- `docs/(computer_science)/systems/db/agentic-applications/index.mdx`
- `docs/(computer_science)/systems/db/foundations/index.mdx`

## Validation
- Add or extend integration coverage for the changed repository, query, or database-access path.
- Exercise realistic read/write flows or equivalent persistence boundary cases.

test: add budget evidence for CLAUDE.md

## Summary
- Add budget or usage-limit validation for the recently changed AI routing or model-call surface.

## Why
- Backfill cost, token, or usage-limit validation before another model-routing change lands on the touched surface.

## Touched paths
- `CLAUDE.md`

## Validation
- Add or extend budget, token, usage-limit, or model-routing regression coverage for the changed path.
- Verify the route still enforces plan limits, retry caps, fallback behavior, or explicit cost controls.
Detected Workflows (2)
Workflow Description
update-documentation-files Updates or adds documentation files to provide guidance, instructions, or navigation for users and developers.
update-copilot-and-agent-instructions Updates both copilot and agent instruction files to refine guidance for contributors and AI agents.
Generated Instincts (18)
Domain Count
git 3
code-style 9
testing 2
workflow 4

After merging, import with:

/instinct-import .claude/homunculus/instincts/inherited/Personal-Profile-Prototype-instincts.yaml

Files

  • .claude/ecc-tools.json
  • .claude/skills/Personal-Profile-Prototype/SKILL.md
  • .agents/skills/Personal-Profile-Prototype/SKILL.md
  • .agents/skills/Personal-Profile-Prototype/agents/openai.yaml
  • .claude/identity.json
  • .codex/config.toml
  • .codex/AGENTS.md
  • .codex/agents/explorer.toml
  • .codex/agents/reviewer.toml
  • .codex/agents/docs-researcher.toml
  • .claude/homunculus/instincts/inherited/Personal-Profile-Prototype-instincts.yaml
  • .claude/commands/update-documentation-files.md
  • .claude/commands/update-copilot-and-agent-instructions.md

ECC Tools | Everything Claude Code

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Bootstraps the repository's AI-agent guidance and standardizes Bun as the canonical package manager, while updating the README to reflect the current SSH-based GHCR deployment and adding placeholder pages for the Database documentation section. Also updates one hero label in en.ts and refreshes the edit-link URL in the Computer Science docs landing page.

Changes:

  • Add AGENTS.md, CLAUDE.md, and .github/copilot-instructions.md agent instruction layers establishing repository boundaries, critical rules, Bun-only package policy, and validation expectations.
  • Rewrite README sections (Tech Stack, Project Structure, Testing, Setup, Env Vars, CI/CD diagram, Quick Reference scripts) to reflect Bun usage, the new deploy.yml GHCR + SSH pipeline, and Node 20.19 base image.
  • Add docs/(computer_science)/systems/db/meta.json and seven WIP placeholder index.mdx files (overview, foundations, schema-design, reliability, performance, agentic-applications, labs); update the CS docs edit-link URL and tweak one hero label string.

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
AGENTS.md New canonical agent guidance document.
CLAUDE.md Thin Claude Code adapter importing @AGENTS.md.
.github/copilot-instructions.md Concise Copilot baseline pointing to AGENTS.md.
README.md Syncs documentation with Bun, Node 20.19, GHCR/SSH deployment, and current env-var layout.
docs/(computer_science)/systems/db/meta.json Registers the seven Database sub-pages.
docs/(computer_science)/systems/db/{overview,foundations,schema-design,reliability,performance,agentic-applications,labs}/index.mdx WIP placeholder pages with consistent frontmatter and Callout.
docs/(computer_science)/index.mdx Updates edit-link URL to the current repository path.
app/models/theme/locales/en.ts Replaces hero copy with personal introduction (not mentioned in PR description).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

export const EN_LABELS = {
nav: { home: 'Home', feed: 'Feed', projects: 'Projects', library: 'Library', articles: 'Articles', blog: 'Blog', docs: 'Docs', resume: 'Resume', dashboard: 'Analytics', podcast: 'Podcast', contact: 'Contact' },
hero: { titlePrefix: 'Building the', titleHighlight: 'Future (CI/CD Active Auto!)', description: 'Software Engineering crafting scalable applications.', btnProjects: 'View Projects', btnArticles: 'Read Articles' },
hero: { titlePrefix: 'Hi, I\'m Anothai (TaiChi)', titleHighlight: 'Architecting Code. Documenting the Journey.', description: 'Software Engineer. Welcome to my digital garden where I showcase my portfolio and share deep dives into software architecture and development.', btnProjects: 'View Projects', btnArticles: 'Read Articles' },

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/copilot-instructions.md:
- Line 13: The prose line that lists filenames (containing the token
`.github/...` in the sentence that mentions auth.ts, Dockerfile,
docker-compose*.yml, .github/workflows/deploy.yml, next.config.ts, and
source.config.ts) should use the official platform casing “GitHub” instead of
`.github` when referring to the platform; update that sentence to replace the
`.github` platform reference with “GitHub” while leaving the actual file names
unchanged and preserving the list punctuation and casing.
- Around line 7-15: The file contains a duplicated detailed repository policy
block (the bullet list beginning with "Inspect nearby code and conventions
before editing." through "Do not add dependencies...") that should be removed;
replace that block in .github/copilot-instructions.md with a short pointer like
"Refer to AGENTS.md for canonical agent and repository policies" to keep this
adapter thin, and ensure no other unrelated lines are modified and AGENTS.md
remains the canonical source.

In `@README.md`:
- Line 46: The README's authentication entry currently says "NextAuth.js 4" but
AGENTS.md documents "NextAuth.js v5 beta"; update the README table row for
"Authentication" to match the canonical stack by replacing "NextAuth.js 4" with
"NextAuth.js v5 beta" (or vice versa if you prefer AGENTS.md to change) so both
docs consistently state the same NextAuth version; ensure the phrasing
("Pluggable OAuth providers; JWT session strategy with role augmentation")
remains unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 18d34823-1f87-4dde-b08b-66dd0f79c1dd

📥 Commits

Reviewing files that changed from the base of the PR and between a4837ba and 454a947.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (14)
  • .github/copilot-instructions.md
  • AGENTS.md
  • CLAUDE.md
  • README.md
  • app/models/theme/locales/en.ts
  • docs/(computer_science)/index.mdx
  • docs/(computer_science)/systems/db/agentic-applications/index.mdx
  • docs/(computer_science)/systems/db/foundations/index.mdx
  • docs/(computer_science)/systems/db/labs/index.mdx
  • docs/(computer_science)/systems/db/meta.json
  • docs/(computer_science)/systems/db/overview/index.mdx
  • docs/(computer_science)/systems/db/performance/index.mdx
  • docs/(computer_science)/systems/db/reliability/index.mdx
  • docs/(computer_science)/systems/db/schema-design/index.mdx

Comment thread .github/copilot-instructions.md Outdated
Comment on lines +7 to +15
- Inspect nearby code and conventions before editing.
- Keep changes focused and do not modify unrelated files.
- Bun is the canonical package manager. Use `bun.lock` as the dependency lockfile; do not run `npm install` or commit `package-lock.json`.
- Documentation content under `/docs` includes both Markdown and MDX files.
- For application TypeScript/React changes, run `bun run lint` and `bun run build`.
- For approved Prisma schema changes, edit `prisma/schema.prisma`, use the development migration workflow documented in `AGENTS.md`, and never edit or delete applied migrations.
- Treat `auth.ts`, `Dockerfile`, `docker-compose*.yml`, `.github/workflows/deploy.yml`, `next.config.ts`, and `source.config.ts` as sensitive areas. Explain risks and use task-appropriate validation when a user explicitly requests changes there.
- Never read, expose, or modify real secret values from `.env*` unless the user provides a specific security-conscious instruction and the action is strictly necessary.
- Do not add dependencies, skills, hooks, MCP integrations, custom agents, or additional instruction layers without explicit approval.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion | 🟠 Major | ⚡ Quick win

Keep Copilot adapter thin to avoid policy drift.

Lines 7-15 duplicate detailed repository policy that should remain canonical in AGENTS.md. Keep this file as a concise compatibility layer and defer detailed rules to AGENTS.md to prevent divergence.

As per coding guidelines, “Use the canonical repository guidance in AGENTS.md for agent workflows; keep detailed policy in AGENTS.md rather than duplicating across adapter files”.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~13-~13: The official name of this software platform is spelled with a capital “H”.
Context: ..., Dockerfile, docker-compose*.yml, .github/workflows/deploy.yml, next.config.ts`...

(GITHUB)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/copilot-instructions.md around lines 7 - 15, The file contains a
duplicated detailed repository policy block (the bullet list beginning with
"Inspect nearby code and conventions before editing." through "Do not add
dependencies...") that should be removed; replace that block in
.github/copilot-instructions.md with a short pointer like "Refer to AGENTS.md
for canonical agent and repository policies" to keep this adapter thin, and
ensure no other unrelated lines are modified and AGENTS.md remains the canonical
source.

Comment thread .github/copilot-instructions.md Outdated
Comment thread README.md Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants