npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

3a-factory

v4.2.1

Published

Enterprise Feature-local Spec Package workflow for Claude, Gemini, and Cursor (3A-Factory)

Downloads

1,929

Readme

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 package | Sau 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 review | Sau converge PASSED (Nghiệm thu toàn bộ) | | Deploy | Trướ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:

| Tool | Native files | Notes | |---|---|---| | Mặc định (Tất cả) | AGENTS.md, docs/, .agents/{contracts, schemas} | Share Context Rule gốc. | | Claude Code | .claude/skills, .claude/commands, CLAUDE.md | Skill + Slash commands + System Prompt. | | Gemini CLI | .gemini/commands/*.toml → trỏ tới .agents/skills, GEMINI.md | Single 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.