Skip to content

docs: add agent instructions and vmsan skill reference#80

Open
Jelloeater wants to merge 1 commit into
angelorc:mainfrom
Jelloeater:main
Open

docs: add agent instructions and vmsan skill reference#80
Jelloeater wants to merge 1 commit into
angelorc:mainfrom
Jelloeater:main

Conversation

@Jelloeater
Copy link
Copy Markdown

@Jelloeater Jelloeater commented May 19, 2026

Add comprehensive documentation for AI agents and developers:

  • AGENTS.md: Critical build order, development commands, Go agent workflow, testing guidance, changeset requirements, architecture overview, and common mistakes to avoid. Essential for new contributors and AI agents working on the codebase.

  • SKILL.md: Complete vmsan CLI reference with 1100+ lines covering all commands, flags, workflows, examples, and best practices. Serves as comprehensive skill documentation for AI agents to properly use and recommend vmsan.

  • .gitignore: Remove AGENTS.md from ignore list to make it part of the repository for all contributors to benefit from standardized guidance.

These files provide essential context for:

  • Correct build order (agent before CLI)
  • Non-standard tooling (oxlint/oxfmt instead of eslint/prettier)
  • PR requirements (changesets for non-exempt files)
  • CI workflow matching (lint → typecheck → build → test)
  • Complete CLI command reference with real-world examples

Breaking changes: None
Impact: Documentation only, no code changes

Summary by CodeRabbit

  • Documentation
    • Added comprehensive CLI reference guide covering installation, all commands with flags, common workflows, troubleshooting, security best practices, and scripting examples.
    • Added agent instructions documentation detailing build/install sequence, command workflows, testing expectations, changeset requirements, and release procedures.

Review Change Stack

Add comprehensive documentation for AI agents and developers:

- AGENTS.md: Critical build order, development commands, Go agent workflow,
  testing guidance, changeset requirements, architecture overview, and
  common mistakes to avoid. Essential for new contributors and AI agents
  working on the codebase.

- SKILL.md: Complete vmsan CLI reference with 1100+ lines covering all
  commands, flags, workflows, examples, and best practices. Serves as
  comprehensive skill documentation for AI agents to properly use and
  recommend vmsan.

- .gitignore: Remove AGENTS.md from ignore list to make it part of the
  repository for all contributors to benefit from standardized guidance.

These files provide essential context for:
- Correct build order (agent before CLI)
- Non-standard tooling (oxlint/oxfmt instead of eslint/prettier)
- PR requirements (changesets for non-exempt files)
- CI workflow matching (lint → typecheck → build → test)
- Complete CLI command reference with real-world examples

Breaking changes: None
Impact: Documentation only, no code changes
Copilot AI review requested due to automatic review settings May 19, 2026 04:38
@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

@Jelloeater is attempting to deploy a commit to the BitSong Team Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 19, 2026

📝 Walkthrough

Walkthrough

This PR adds comprehensive documentation for the vmsan Firecracker microVM toolkit. It introduces AGENTS.md for developer contributors covering build sequencing and architecture, and SKILL.md as a complete CLI reference with commands, workflows, and troubleshooting. A .gitignore line is removed to include the new agent guide.

Changes

vmsan documentation suite

Layer / File(s) Summary
Developer setup and contribution guide
.gitignore, AGENTS.md
.gitignore is updated to stop ignoring AGENTS.md. The new guide documents Go in-VM agent build/install order, standard and CI command workflows, architecture maps, tooling constraints (oxlint, obuild, Bun ≥ 1.2), common mistakes, and release processes tied to changesets.
CLI overview and command reference
SKILL.md (intro, core commands, snapshot/doctor)
SKILL.md establishes the CLI purpose, command hierarchy, and global flags, then provides detailed usage for all lifecycle and interaction commands (create, list, start, stop, remove, exec, connect, upload, download, network), followed by snapshot subcommands and the doctor health-check tool, including per-command flags, examples, and sample JSON/output formats.
Workflows and scripting patterns
SKILL.md (workflows section)
Practical end-to-end workflows cover quick start, Python/Node.js scripting, snapshot-based build/test, CI/CD scripts, air-gapped environments, and multi-VM orchestration; plus JSON output patterns and environment variable reference.
Limitations, troubleshooting, and security
SKILL.md (reference section)
Known limitations, diagnostic walkthroughs for startup/connection/file transfer/permissions issues, security considerations, best practices, and reference links including an examples repository pointer.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

🐰 Three docs bloom with care,
A builder's guide and CLI fair,
No code was changed, just words so bright—
The vmsan path is clear and right! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main changes: adding two documentation files (AGENTS.md and SKILL.md). It accurately reflects the primary objective of the PR.
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.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds project agent guidance and a comprehensive vmsan CLI skill reference document, and stops ignoring AGENTS.md so it can be tracked in the repo.

Changes:

  • New AGENTS.md with build, dev, testing, architecture, and release guidance.
  • New SKILL.md with full vmsan CLI reference, workflows, and examples.
  • Removed AGENTS.md from .gitignore so it can be committed.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.

File Description
AGENTS.md New contributor/agent guide describing build order, tooling, testing, and architecture.
SKILL.md New comprehensive CLI reference for vmsan including commands, flags, workflows, and troubleshooting.
.gitignore Removes AGENTS.md from ignore list to allow tracking the new file.

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

Comment thread SKILL.md
Comment on lines +615 to +621
| Policy | Description |
|----------------|--------------------------------------------------|
| `allow-all` | Allow all outbound connections (default) |
| `deny-all` | Block all outbound connections (air-gapped) |
| `allow-list` | Allow only specified domains/IPs |
| `deny-list` | Block specified domains/IPs |

Comment thread SKILL.md
vmsan exec --workdir /app "$VM_ID" npm install

# Create snapshot of clean state
SNAPSHOT=$(vmsan snapshot create --name "clean-install" "$VM_ID" --json | jq -r '.id')
Comment thread SKILL.md

| Flag | Description |
|-----------------------------|------------------------------------------------|
| `--runtime RUNTIME` | Runtime image: base, node22, node24, python3.13 |
Comment thread SKILL.md
Comment on lines +478 to +484
# Connect and run commands
vmsan connect vm-abc123def
# Inside VM:
$ whoami
$ pwd
$ ls -la
$ exit
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
AGENTS.md (1)

71-82: 💤 Low value

Consider adding a language identifier to the code fence.

The architecture diagram is displayed in a fenced code block without a language identifier. Adding text or plaintext would satisfy the markdown linter and make the formatting explicit.

📝 Suggested formatting improvement
-```
+```text
 bin/cli.ts          CLI entry (citty)
 src/
🤖 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 `@AGENTS.md` around lines 71 - 82, Update the fenced code block that contains
the directory listing starting with "bin/cli.ts          CLI entry (citty)" to
include a language identifier (e.g., add `text` or `plaintext` after the opening
```) so the markdown linter recognizes it as plain text and preserves
formatting; ensure only the opening fence is modified (```text) and no other
content in that block is changed.
🤖 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.

Nitpick comments:
In `@AGENTS.md`:
- Around line 71-82: Update the fenced code block that contains the directory
listing starting with "bin/cli.ts          CLI entry (citty)" to include a
language identifier (e.g., add `text` or `plaintext` after the opening ```) so
the markdown linter recognizes it as plain text and preserves formatting; ensure
only the opening fence is modified (```text) and no other content in that block
is changed.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 22062c31-53ef-4aa2-8c30-33af835fa652

📥 Commits

Reviewing files that changed from the base of the PR and between 88c50a0 and 6c0be07.

📒 Files selected for processing (3)
  • .gitignore
  • AGENTS.md
  • SKILL.md
💤 Files with no reviewable changes (1)
  • .gitignore

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