A TypeScript development scaffold for full-stack Web applications. The repository combines reusable server, browser, and mobile starters with GitHub Actions for testing, deployment, requirement intake, and AI-assisted implementation.
| Path | Purpose |
|---|---|
server/ |
Node.js REST API scaffold |
browser/ |
Next.js web application scaffold |
mobile/ |
Taro mobile application scaffold |
.github/workflows/ |
CI, deployment, submodule updates, and issue automation |
script/ |
Shared TypeScript automation used by workflows |
documents/ |
Requirement Markdown and its generated tasks.yml |
The three application folders start as Git submodules. Requirement automation converts selected submodules to ordinary files in a review pull request, so feature work can evolve the relevant scaffold locally.
flowchart LR
Issue[📝 Documentation issue] --> Intake[📎 Textify attachments]
Intake --> Markdown[📄 Save content.md]
Markdown --> Split[🧩 Generate tasks.yml]
Split --> Vendor[📦 Localize selected scaffolds]
Vendor --> Review[🔍 One review PR]
Review --> Closed{Requirement closed?}
Closed -->|Yes| Children[🎫 Create child issues]
Children --> Agent{Selected agent}
Agent -->|Copilot| Assign[🤖 Assign Copilot]
Agent -->|Other CLI| Implement[🛠️ Implement and open a closing PR]
Parent[📌 Parent issue closed] --> ChildrenIssue[🎫 Start eligible child issues]
ChildrenIssue --> Agent
- A
documentationissue selects one or more scopes and an AI agent. - One workflow job converts attachments to Markdown, stores
documents/{issue-title}-{issue-number}/content.md, analyzes the requirement, and stores ordered tasks in the adjacenttasks.yml. - The same job localizes selected scaffold submodules, removes their nested pnpm lockfiles, runs
pnpm -r ifrom the repository root, and opens one review PR containing the documents and code changes. - Closing the documentation issue creates each task as a child issue, labels it with the selected scope and agent, and records the child number in
tasks.yml. - A non-documentation issue with no open non-documentation parent is delegated to Copilot or the selected coding CLI. Closing an issue starts its eligible open children.
- Non-Copilot implementations are proposed in pull requests whose descriptions close the corresponding issues.
The issue-creation workflow listens both for closed issues and for changes to documents/**/tasks.yml. That covers either order of events: a requirement may close before its review PR is merged, or after the task file reaches the default branch.
Configure the provider secret for each non-Copilot agent used by the issue form:
| Agent | Repository secret | Description |
|---|---|---|
| Claude Code | ANTHROPIC_API_KEY |
|
| Gemini CLI | GEMINI_API_KEY |
|
| OpenAI Codex | OPENAI_API_KEY |
|
| Kimi CLI | MOONSHOT_API_KEY |
|
| Kilo CLI | KILO_CONFIG_CONTENT |
JSON config with model and provider credentials; see Kilo CLI docs |
| Qoder CLI | QODER_PERSONAL_ACCESS_TOKEN |
Copilot uses the workflow token unless COPILOT_GITHUB_TOKEN is configured.
Use Node.js 22+ and PNPM 11+:
pnpm install
pnpm testThe test suite uses the Node.js test runner, Jest expect, Jest mock, and Playwright. Chromium is installed by the test lifecycle. Browser tests expect the browser scaffold to be running at http://localhost:3000.
Root-level deployment workflows watch the corresponding scaffold directories. The server and browser container deploys use Docker Buildx and SCP/SSH actions, browser previews use the Vercel action, and mobile builds can upload to WeChat.
For container deployment, configure HOST, USER, and SSH_KEY. Set SSH_HOST_FINGERPRINT to verify the server's SSH host key; without it, the SSH actions do not verify the host key. Server runtime configuration uses APP_SECRET; browser runtime configuration uses ENV_FILE. Without HOST, the workflows build images but skip remote deployment.
After deployment, all stopped containers and unused images on the host are pruned, including those from other projects.