อยู่ระหว่างพัฒนา เว็บไซต์และรายละเอียดผลิตภัณฑ์อาจเปลี่ยนแปลง กรุณาติดต่อทีมงานเพื่อยืนยันข้อมูลล่าสุด
กลับไปหน้าสำหรับนักพัฒนา
AI Skill Pack

BCDev Fullstack Skill Pack

ชุด Markdown skill สำหรับ AI Agent ที่ต้องการทำงานกับระบบ BC Ai Cloud ครอบคลุมทั้ง Go Backend และ Flutter Frontend พร้อมคัดลอกไปใช้กับ AI ที่คุณถนัดได้ทันที

3 ไฟล์ Markdown Go + Flutter คัดลอกไปใช้ได้ทันที

ภายในชุด Skill Pack

แต่ละไฟล์ออกแบบมาให้ AI Agent อ่านแล้วเข้าใจโครงสร้างได้ทันที

SKILL.md

ไฟล์หลักที่กำหนด workspace map, core rules, task recipes และจุดเริ่มต้นสำหรับ AI Agent

Backend Reference

โครงสร้าง Go backend, entry points, MCP tools, transaction packages และ handler patterns

Frontend Reference

Flutter apps ทั้ง bcaiaccount (BLoC) และ bclms (Riverpod) รวม flavor, commands, UI patterns

วิธีใช้

  1. สร้างโฟลเดอร์ skill ชื่อ bcdev-fullstack ในโปรเจกต์ หรือ AI tool ที่คุณใช้
  2. คัดลอกแต่ละไฟล์ด้านล่างไปวางตาม path เดิม
  3. ให้ AI โหลด SKILL.md ก่อน แล้วค่อยเปิด references ตามงานที่ทำ

โครงสร้างไฟล์

ใช้ได้กับ AI Tools

Skill Pack นี้ใช้ได้กับ AI code editor และ agent ที่อ่าน Markdown ได้

Claude Code CLI + VSCode Extension
Claude Desktop via MCP Server
Cursor AI Code Editor
Windsurf AI Code Editor
Custom Agent ที่อ่าน Markdown ได้

Skill Pack นี้เขียนจากโครงสร้างจริงของ BC Ai Cloud โดยเลี่ยงการใส่ข้อมูลลับ (secret) ทั้งหมด

ไฟล์ Markdown ที่คัดลอกได้

เลือกแท็บเพื่อดูแต่ละไฟล์ แสดงเป็น raw Markdown เพื่อให้คัดลอกไปใช้ได้ตรงๆ

bcdev-fullstack/SKILL.md

ไฟล์หลักของ skill สำหรับ trigger, workflow และกติกาการทำงานข้าม backend กับ frontend

---
name: bcdev-fullstack
description: Work on the BC development workspace at D:\bcdev, including the Go backend in D:\bcdev\backend and the Flutter frontends in D:\bcdev\frontend\bcaiaccount and D:\bcdev\frontend\bclms. Use when an AI agent must inspect architecture, trace API-to-UI flow, add or fix features, update MCP tools, or coordinate backend and frontend changes in this codebase.
---

# BCDev Fullstack

Use this skill when working inside the BC development workspace.

## Load the right reference first

- Read `references/backend.md` before changing Go services, Echo routes, MCP tools, Docker stack, `bootstrap.json`, or database integrations.
- Read `references/frontend.md` before changing Flutter screens, blocs, repositories, flavors, `web/config.json`, or deploy scripts.
- Read both reference files when a task crosses API, model, or response boundaries.

## Workspace map

- Backend: `D:\bcdev\backend`
- Frontend app 1: `D:\bcdev\frontend\bcaiaccount`
- Frontend app 2: `D:\bcdev\frontend\bclms`

## Core rules

- Treat backend contracts as the source of truth for request and response shapes plus business rules.
- Prefer MCP-based discovery when it is available, then inspect source code when MCP is insufficient.
- Never expose or copy secrets from `bootstrap.json` into code, docs, tests, prompts, or frontend bundles.
- Keep backend configuration centered on `bootstrap.json`; do not add new `.env`-style flows unless the target already uses them.
- Keep frontend network calls inside repository or service layers instead of UI widgets.
- Do not call external AI provider endpoints directly from Flutter code. Route AI features through backend endpoints.
- When renaming or removing a shared field, update backend code and every affected Dart model, repository, bloc or provider, and screen in the same change.

## Task recipes

### Backend-only task

1. Find the entrypoint, handler, or domain package first.
2. Trace route to handler to service to repository or model.
3. If the feature affects analytics, AI tools, or schema discovery, inspect `internal/goapi/mcp`.
4. Verify config, ports, and runtime assumptions against `references/backend.md`.

### Frontend-only task

1. Find the screen, route, or page that renders the feature first.
2. Trace screen or widget to bloc or provider to repository or service to model.
3. Confirm backend response fields before editing parsing, UI assumptions, or filters.
4. Verify flavor and environment behavior before testing.

### Cross-project task

1. Confirm the backend endpoint, payload, and response shape first.
2. Update backend and frontend in one pass when changing shared fields.
3. Keep wire formats backward compatible whenever possible.
4. Check both frontend apps if the feature can affect accounting UI and logistics UI separately.

## Key starting points

- Backend gateway entrypoint: `D:\bcdev\backend\main.go`
- Standalone GoAPI entrypoint: `D:\bcdev\backend\cmd\goapi\main.go`
- Flutter bootstrap: `D:\bcdev\frontend\bcaiaccount\lib\main.dart`
- Flutter root app: `D:\bcdev\frontend\bcaiaccount\lib\main_app.dart`
- Riverpod app bootstrap: `D:\bcdev\frontend\bclms\lib\main.dart`

## Output expectations

- Keep fixes scoped to the smallest layer that solves the problem.
- Preserve Thai business terminology already used in logs, labels, and comments.
- Prefer concrete file edits over high-level suggestions when the task is implementation-oriented.
- Mention assumptions explicitly when the code path is ambiguous between `bcaiaccount`, `bclms`, `mainapi`, and `goapi`.
bcdev-fullstack/references/backend.md

โครงสร้าง Go backend, entry points, MCP tools, transaction packages และ handler patterns

bcdev-fullstack/references/frontend.md

Flutter apps ทั้ง bcaiaccount (BLoC) และ bclms (Riverpod) รวม flavor, commands, UI patterns