Catalog npm
Back to packageRELEASE DETAILS

1.0.9-beta.0

npm

3a-factory

Controlled software delivery workflow template for AI agents

3a-factoryaiclaudecopilotcursorgeminispec-packagealexalex-ai-agent
Published17 Jul 2026
Direct dependencies0
Transitive dependenciesNot calculated

README

Current package documentation

3a-factory

License: MIT Version

3A-Factory là bộ workflow template cho AI Agent (Claude Code, Gemini CLI, Cursor) nhằm vận hành vòng đời phát triển phần mềm theo kiến trúc Feature-local Spec Package (SDLC greenfield).

Giới thiệu

  • Mục tiêu: Chuẩn hóa cách agent thu thập yêu cầu, thiết kế, chia task, implement, review, QA và nghiệm thu — với traceability và approval rõ ràng.
  • Đối tượng: Team dùng AI coding agents để giao hàng feature có kiểm soát.
  • Supported agents: Claude Code, Gemini CLI, Cursor, Antigravity, Other Agents
  • Kiến trúc: Agentic Supervisor / Worker Workflow. Các Agent sẽ tự động chuyển trạng thái nội bộ, người dùng chỉ cần ra lệnh ở cấp độ High-level.

Core Principle

Spec is a Feature-local Spec Package, not a single document.

Canonical Package Structure

docs/tasks/
└── REQ-000001-example-feature/
    ├── manifest.yaml
    ├── raw.md
    ├── discovery.md
    ├── analysis.md
    ├── requirements.md
    ├── design.md
    ├── tasks.md
    ├── acceptance.md
    ├── spec-review.md
    ├── decisions/
    ├── reviews/
    ├── qa/
    └── release/

Project-wide ADR: docs/decisions/. Global misc: docs/misc/. Overview: docs/project_overview.md (onboarding).

Artifact Ownership

requirements.md = Business Truth
design.md       = Technical Truth
tasks.md        = Execution Truth
acceptance.md   = Verification Truth
manifest.yaml   = Package State Truth

Agentic Workflow (Sub-Agent Orchestration v4)

Khác với các workflow thủ công hay mô hình nguyên khối, 3A-Factory v4 vận hành theo cơ chế điều phối Sub-Agent (Delegated Orchestration) đạt chuẩn Enterprise.

Supervisor là project-manager sẽ tự động phân rã công việc và gọi các Sub-agents chuyên biệt để đảm bảo tính độc lập, tránh thiên kiến (Zero Bias):

  • 🤵 Business Analyst: (triage, analyze, requirements)
  • 🏗️ Software Architect: (adr, design, tasks, acceptance)
  • 👨‍💻 Software Engineer: (develop)
  • 🕵️ Code Reviewer: (review, spec-review)
  • 🧪 QA Automation: (qa)
  • 🚀 Release Manager: (converge, deploy)
Mô tả yêu cầu tự nhiên (Auto-intake) / `/project-manager`
├── Gọi [BA] → Triage (Phân loại)
├── Gọi [Architect] → Phân tích & Lập Spec Package (Requirements → ADR → Design → Tasks → Acceptance)
├── Chờ Approval (Xác nhận cấu trúc Spec)
├── Phát triển theo từng Task (Develop ↔ Review)
├── Đảm bảo chất lượng (QA & Repair Loops)
├── Hội tụ (Converge)
└── Chờ User Approval
    └── Done → Deploy (Chỉ khi User gọi `/deploy`)

Quick Start

  1. Cài tooling vào repo đích: npx 3a-factory --agent=cursor (hoặc claude / gemini / all).
  2. Chạy /onboarding (hoặc mô tả "onboard repo này") nếu repo mới.
  3. Bắt đầu công việc mới: Chỉ cần mô tả yêu cầu bằng ngôn ngữ tự nhiên (feature/bug/change…). Khối Intent Gate sẽ tự động kích hoạt project-manager để điều phối toàn bộ vòng đời.
  4. /grill-me nếu bạn muốn Agent chủ động "chất vấn" để làm rõ các yêu cầu mơ hồ.
  5. Tại mỗi chốt chặn (Gate), Agent sẽ dừng lại hỏi ý kiến. Bạn chỉ cần trả lời có/không (hoặc đồng ý/từ chối).
  6. Khi mọi Task đã hoàn thiện và QA pass, Agent sẽ yêu cầu nghiệm thu (User Approval).
  7. Giao hàng: Gọi /deploy + xác nhận.

Commands (Lệnh cho Người Dùng)

Người dùng chỉ cần tương tác qua các Entry Point & Utility Commands dưới đây. Toàn bộ các bước kỹ thuật nội bộ (như viết spec, chia task, code, review) đều do project-manager gọi dưới dạng Native Tools.

/project-manager           # Ép buộc khởi động luồng Supervisor (Dành cho session mới)
/deploy                    # Triển khai hệ thống (Chỉ chạy khi đã qua nghiệm thu)
/onboarding                # Đưa 1 Repo mới vào quy trình 3A-Factory
/handoff                   # Bàn giao bối cảnh hiện tại cho Session/Agent khác
/caveman                   # Kích hoạt chế độ trả lời siêu ngắn gọn (Tiết kiệm token)
/qa-issues                 # Mở danh sách theo dõi QA Issues
/specification-synthesizer # Phân tách, hợp nhất tài liệu Spec bằng cấu trúc Declarative
/grill-me                  # Yêu cầu Agent chất vấn người dùng để làm rõ yêu cầu

Approval gates

Tại mỗi gate, agent hỏi xác nhận; user trả lời có/không, đồng ý/từ chối, hoặc ngôn ngữ tự nhiên.

Gate (internal)Khi nào
Spec packageSau spec-review PASSED — trước khi bắt đầu code (develop)
Develop(Tùy chọn) Khi thay đổi chạm vào High-risk policy
User reviewSau converge PASSED (Nghiệm thu toàn bộ)
DeployTrước mọi hành động deploy (Tách biệt hoàn toàn với code)

Safety Guarantees

  • Không code trước khi user xác nhận Spec package approval.
  • Không auto-approve / auto-deploy.
  • Không commit/push mặc định.
  • Installer không tạo feature package (docs/tasks/), không pre-create docs/decisions / docs/misc.

Tài liệu thêm

Install (agents)

npx 3a-factory --agent=claude
npx 3a-factory --agent=gemini,cursor --force
npx 3a-factory --target=all --dry-run

Luôn truyền --agent=… (hoặc --target=all) khi muốn scaffold. npm postinstall không tự động ghi file vào repo.

Skills & Tool Mapping

Kiến trúc phân bổ thư mục khi bạn cài đặt:

ToolNative filesNotes
Mặc định (Tất cả)AGENTS.md, docs/, .agents/{contracts, schemas}Share Context Rule gốc.
Claude Code.claude/skills, .claude/commands, CLAUDE.mdSkill + Slash commands + System Prompt.
Gemini CLI.gemini/commands/*.toml → trỏ tới .agents/skills, GEMINI.mdSingle skill body (Dùng chung ruột với Cursor).
Cursor.cursor/rules/*.mdc + ai-workflow.mdcĐọc rule qua Prompt, không có native folder skill.

License

MIT — see LICENSE.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "da8947a452815c6d06f1e6fe991c8571230e7255",
  "tarball": "https://registry.npmjs.org/3a-factory/-/3a-factory-1.0.9-beta.0.tgz",
  "fileCount": 26,
  "integrity": "sha512-/TsdWloJg20LChKq6q49kRAZ8otAVU9jqI3NSiujsWqglQecnd14qLLkrNtEdpeQhLcS/mp4F9PTQ3T8BQ8krQ==",
  "signatures": [
    {
      "sig": "MEQCIGIJr190mTgMc3pPSpUmEzdTQjBgl9Y5qGjX2HRkv5+hAiA7Si5gGA04mHcjnZyieNruQBHChwSTuqOCcefwZyqE5w==",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 115918
}

Repository

PENDING
ai-deep-labs/3a-factory

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:29 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:e06c39cccee1ac91a82bc60d3b35fe6f32038d0777b0986c127c9e11ef8bb7fc

Other collected versions

4.2.230 Sept4.2.110 Sept4.2.010 Sept4.1.227 Aug4.1.124 Aug4.1.017 AugView all collected versions →