🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Dev Factory

by @rebugui

Automates software development by discovering ideas from GitHub, CVEs, and news, generating code with ChatDev 2.0 agents, testing, self-correcting, and publi...

Versionv1.1.0
Downloads783
Installs2
TERMINAL
clawhub install dev-factory

πŸ“– About This Skill


name: dev-factory version: 1.1.0 description: Automated software development agent using ChatDev 2.0 and GLM-5. Discovers topics from GitHub Trending, CVE databases, and security news β†’ generates code with 7-agent ChatDev team β†’ tests automatically β†’ publishes to GitHub. Self-correction loop (error β†’ fix β†’ retry, max 3 times). Use when you want to automate development, create security tools, or generate DevOps utilities. Triggers: "μžλ™ 개발", "도ꡬ 생성", "builder agent", "chatdev".

Builder Agent

κ°œμš”

λ³΄μ•ˆ 도ꡬ와 DevOps μœ ν‹Έλ¦¬ν‹°λ₯Ό μžλ™μœΌλ‘œ μƒμ„±ν•˜λŠ” 개발 μ—μ΄μ „νŠΈμž…λ‹ˆλ‹€. ChatDev 2.0의 7개 μ—μ΄μ „νŠΈκ°€ ν˜‘μ—…ν•˜μ—¬ μš”κ΅¬μ‚¬ν•­ 뢄석뢀터 λ°°ν¬κΉŒμ§€ μ „ 과정을 μžλ™ν™”ν•©λ‹ˆλ‹€.

μžκ°€ μˆ˜μ • 루프: μ—λŸ¬ λ°œμƒ μ‹œ μžλ™μœΌλ‘œ μˆ˜μ • ν›„ μž¬μ‹œλ„ (μ΅œλŒ€ 3회)

μ›Œν¬ν”Œλ‘œμš°

아이디어 발꡴ (GitHub Trending, CVE, Security News)
    ↓
Notion 큐 등둝 (아이디어 λ°μ΄ν„°λ² μ΄μŠ€)
    ↓
ChatDev 2.0 개발 (7개 μ—μ΄μ „νŠΈ ν˜‘μ—…)
    β”œβ”€ CEO: μš”κ΅¬μ‚¬ν•­ 뢄석
    β”œβ”€ CPO: μ œν’ˆ 기획
    β”œβ”€ CTO: μ•„ν‚€ν…μ²˜ 섀계
    β”œβ”€ Programmer: μ½”λ“œ 생성
    β”œβ”€ Reviewer: μ½”λ“œ 리뷰
    β”œβ”€ Tester: ν…ŒμŠ€νŠΈ 생성
    └─ CTO Final: μ΅œμ’… 검증
    ↓
μžλ™ ν…ŒμŠ€νŠΈ μ‹€ν–‰
    ↓
μ—λŸ¬ λ°œμƒ? β†’ μˆ˜μ • β†’ μž¬μ‹œλ„ (μ΅œλŒ€ 3회)
    ↓
GitHub μ €μž₯μ†Œ 생성 및 배포

μ£Όμš” κΈ°λŠ₯

1. 아이디어 발꡴ (Discovery)

  • GitHub Trending: 인기 ν”„λ‘œμ νŠΈ 뢄석
  • CVE λ°μ΄ν„°λ² μ΄μŠ€: μ΅œμ‹  취약점 기반 도ꡬ
  • Security News: λ³΄μ•ˆ λ‰΄μŠ€ 기반 μœ ν‹Έλ¦¬ν‹°
  • Notion 큐: 아이디어 μžλ™ 등둝
  • 2. ChatDev 2.0 개발 (Development)

    7개 μ—μ΄μ „νŠΈ ν˜‘μ—…:

    | μ—μ΄μ „νŠΈ | μ—­ν•  | λ‹΄λ‹Ή 업무 | |---------|------|----------| | CEO | 졜고경영자 | μš”κ΅¬μ‚¬ν•­ 뢄석, λ°©ν–₯μ„± κ²°μ • | | CPO | μ΅œκ³ μ œν’ˆμ±…μž„μž | μ œν’ˆ 기획, κΈ°λŠ₯ μ •μ˜ | | CTO | μ΅œκ³ κΈ°μˆ μ±…μž„μž | μ•„ν‚€ν…μ²˜ 섀계, 기술 μŠ€νƒ κ²°μ • | | Programmer | 개발자 | μ½”λ“œ 생성, κ΅¬ν˜„ | | Reviewer | 리뷰어 | μ½”λ“œ 리뷰, ν’ˆμ§ˆ 검증 | | Tester | ν…ŒμŠ€ν„° | ν…ŒμŠ€νŠΈ μ½”λ“œ μž‘μ„±, μ‹€ν–‰ | | CTO Final | μ΅œμ’…κ²€ν† μž | μ΅œμ’… 검증, 배포 승인 |

    3. μžκ°€ μˆ˜μ • 루프 (Self-Correction)

    ν…ŒμŠ€νŠΈ μ‹€ν–‰
        ↓
    μ—λŸ¬ 발견
        ↓
    μ—λŸ¬ 뢄석 β†’ μˆ˜μ • λ°©μ•ˆ λ„μΆœ
        ↓
    μ½”λ“œ μˆ˜μ •
        ↓
    μž¬ν…ŒμŠ€νŠΈ
        ↓
    성곡? β†’ 배포 / μ‹€νŒ¨? β†’ μž¬μ‹œλ„ (μ΅œλŒ€ 3회)
    

    4. GitHub μžλ™ 배포 (Publishing)

  • μ €μž₯μ†Œ 생성: μžλ™μœΌλ‘œ GitHub μ €μž₯μ†Œ 생성
  • μ½”λ“œ μ—…λ‘œλ“œ: μ™„μ„±λœ μ½”λ“œ μžλ™ ν‘Έμ‹œ
  • README 생성: μžλ™ λ¬Έμ„œν™”
  • 릴리즈 생성: v1.0.0 μžλ™ 릴리즈
  • μ„€μΉ˜ 방법

    1. μ €μž₯μ†Œ 클둠

    git clone --recursive https://github.com/rebugui/OpenClaw.git
    cd OpenClaw/submodules/builder-agent
    

    2. ChatDev 2.0 μ„€μ •

    cd ../chatdev-v2
    python -m venv venv
    source venv/bin/activate  # Windows: venv\Scripts\activate
    pip install -r requirements.txt
    

    3. μ˜μ‘΄μ„± μ„€μΉ˜

    cd ../builder-agent
    pip install -r requirements.txt
    

    4. ν™˜κ²½ λ³€μˆ˜ μ„€μ •

    cp .env.example .env
    

    .env 파일 μˆ˜μ •:

    # GLM API (Zhipu AI)
    GLM_API_KEY=your_glm_api_key
    GLM_BASE_URL=https://api.z.ai/api/coding/paas/v4

    GitHub

    GITHUB_TOKEN=your_github_token GITHUB_USERNAME=your_username

    Notion

    NOTION_API_KEY=your_notion_api_key NOTION_DATABASE_ID=your_database_id

    ChatDev

    CHATDEV_URL=http://localhost:6400

    5. ChatDev μ„œλ²„ μ‹œμž‘

    cd ../chatdev-v2
    python server_main.py --port 6400
    

    API: http://localhost:6400

    μ‚¬μš©λ²•

    μˆ˜λ™ μ‹€ν–‰

    #### 1. 아이디어 발꡴

    python main.py discovery
    

    #### 2. 개발 μ‹€ν–‰

    # Notion νμ—μ„œ 아이디어 κ°€μ Έμ™€μ„œ 개발
    python main.py develop

    νŠΉμ • ν”„λ‘œμ νŠΈ 개발

    python main.py develop --project "cve-scanner"

    #### 3. 큐 λͺ¨λ‹ˆν„°λ§

    python queue_monitor.py
    

    μŠ€μΌ€μ€„λŸ¬ 등둝

    OpenClaw μŠ€μΌ€μ€„λŸ¬μ— λ“±λ‘ν•˜μ—¬ μžλ™ μ‹€ν–‰:

    # config.yaml
    jobs:
      # 아이디어 발꡴ (맀일 08:00, 20:00)
      - id: "builder_discovery"
        name: "Builder Discovery - 맀일 μ˜€μ „ 8μ‹œ/μ˜€ν›„ 8μ‹œ 아이디어 발꡴"
        enabled: true
        module: "submodules.builder-agent.main"
        class: "BuilderAgentV3"
        method: "run_discovery"
        trigger:
          type: "cron"
          day_of_week: "mon-sun"
          hour: "8,20"
          minute: 0

    # 개발 큐 처리 (6μ‹œκ°„λ§ˆλ‹€) - id: "builder_queue_processor" name: "Builder Queue Processor - 6μ‹œκ°„λ§ˆλ‹€ 개발/κ°œμ„  큐 처리" enabled: true module: "submodules.builder-agent.main" class: "BuilderAgentV3" method: "run_development_from_notion" trigger: type: "interval" hours: 6

    # 큐 λͺ¨λ‹ˆν„°λ§ (6μ‹œκ°„λ§ˆλ‹€) - id: "builder_queue_monitor" name: "Builder Queue Monitor - 6μ‹œκ°„λ§ˆλ‹€ 큐 μƒνƒœ 체크 및 μ•Œλ¦Ό" enabled: true module: "modules.builder.queue_monitor" function: "main" trigger: type: "interval" hours: 6

    μ„€μ • 파일

    config.yaml

    discovery:
      sources:
        - github_trending
        - cve_database
        - security_news
      max_ideas: 5
      keywords:
        - vulnerability
        - scanner
        - automation

    development: max_retries: 3 test_timeout: 300 output_dir: "./projects"

    chatdev: url: "http://localhost:6400" model: "glm-5" timeout: 1800

    github: auto_publish: true private: false license: "MIT"

    파일 ꡬ쑰

    builder-agent/
    β”œβ”€β”€ main.py              # 메인 μ‹€ν–‰ 파일
    β”œβ”€β”€ config.yaml          # μ„€μ • 파일
    β”œβ”€β”€ .env.example         # ν™˜κ²½ λ³€μˆ˜ μ˜ˆμ‹œ
    β”œβ”€β”€ requirements.txt     # μ˜μ‘΄μ„±
    β”‚
    β”œβ”€β”€ discoverer/          # 아이디어 발꡴
    β”‚   β”œβ”€β”€ github_trending.py
    β”‚   β”œβ”€β”€ cve_analyzer.py
    β”‚   └── news_monitor.py
    β”‚
    β”œβ”€β”€ orchestrator/        # 개발 μ˜€μΌ€μŠ€νŠΈλ ˆμ΄μ…˜
    β”‚   β”œβ”€β”€ chatdev_client.py
    β”‚   β”œβ”€β”€ test_runner.py
    β”‚   └── github_publisher.py
    β”‚
    β”œβ”€β”€ improvement/         # κ°œμ„  μ‹œμŠ€ν…œ
    β”‚   └── improvement_pipeline.py
    β”‚
    β”œβ”€β”€ models/              # 데이터 λͺ¨λΈ
    β”‚   └── project.py
    β”‚
    └── logs/                # 둜그
        └── builder.log
    

    Notion λ°μ΄ν„°λ² μ΄μŠ€ μ„€μ •

    아이디어 λ°μ΄ν„°λ² μ΄μŠ€

  • Title (제λͺ©)
  • Status (선택: Idea, Developing, Testing, Completed, Failed)
  • Priority (선택: High, Medium, Low)
  • Source (선택: GitHub, CVE, News)
  • Created (생성일)
  • Repository (URL)
  • μ˜ˆμ‹œ ν”„λ‘œμ νŠΈ

    μƒμ„±λœ ν”„λ‘œμ νŠΈλ“€

    1. secure_app - λ³΄μ•ˆ μ„€μ • μžλ™ν™” 도ꡬ 2. cve-scanner-v2 - CVE 취약점 μŠ€μΊλ„ˆ 3. file-integrity-monitor - 파일 무결성 λͺ¨λ‹ˆν„°λ§

    ν”„λ‘œμ νŠΈ ꡬ쑰

    cve-scanner-v2/
    β”œβ”€β”€ README.md
    β”œβ”€β”€ requirements.txt
    β”œβ”€β”€ setup.py
    β”œβ”€β”€ src/
    β”‚   β”œβ”€β”€ __init__.py
    β”‚   β”œβ”€β”€ main.py
    β”‚   └── utils.py
    └── tests/
        β”œβ”€β”€ __init__.py
        └── test_main.py
    

    성곡/μ‹€νŒ¨ 기둝

    μ„±κ³΅ν•œ ν”„λ‘œμ νŠΈ (2026-02-22 ~ 2026-02-23)

    1. secure_app βœ… (2026-02-22 18:08) 2. cve-scanner-v2 βœ… (2026-02-23 12:17) 3. cve-scanner-v6 βœ… (2026-02-23 13:41) 4. cve-scanner-v7 βœ… (2026-02-23 13:46) 5. cve-scanner-v8 βœ… (2026-02-23 14:10)

    μ‹€νŒ¨ν•œ ν”„λ‘œμ νŠΈ

    1. file-integrity-monitor ❌ - ν…ŒμŠ€νŠΈ μ‹€νŒ¨ 2. cve-scanner-v3 ❌ - ν…ŒμŠ€νŠΈ μ‹€νŒ¨ 3. cve-scanner-v5 ❌ - ν…ŒμŠ€νŠΈ μ‹€νŒ¨

    곡톡 문제: ν…ŒμŠ€νŠΈ μ½”λ“œκ°€ κ΅¬ν˜„ 둜직과 μΌμΉ˜ν•˜μ§€ μ•ŠμŒ β†’ ν”„λ‘¬ν”„νŠΈ κ°œμ„  ν•„μš”

    문제 ν•΄κ²°

    ChatDev μ—°κ²° μ‹€νŒ¨

    # ChatDev μ„œλ²„ μƒνƒœ 확인
    curl http://localhost:6400/health

    μ„œλ²„ μž¬μ‹œμž‘

    cd ../chatdev-v2 python server_main.py --port 6400

    ν…ŒμŠ€νŠΈ μ‹€νŒ¨

    # 둜그 확인
    tail -f logs/builder.log

    μˆ˜λ™ ν…ŒμŠ€νŠΈ μ‹€ν–‰

    cd projects/cve-scanner-v2 pytest tests/

    GitHub 배포 μ‹€νŒ¨

    # Git κΆŒν•œ 확인
    ssh -T git@github.com

    토큰 κΆŒν•œ 확인

    curl -H "Authorization: token {GITHUB_TOKEN}" https://api.github.com/user

    μ˜μ‘΄μ„±

  • Python 3.11+
  • ChatDev 2.0
  • GLM-5 API
  • GitHub Personal Access Token
  • Notion API
  • λΌμ΄μ„ μŠ€

    MIT License

    μ°Έκ³ 

  • μ €μž₯μ†Œ: https://github.com/rebugui/builder-agent
  • ChatDev 2.0: https://github.com/OpenBMB/ChatDev
  • 메인 μ €μž₯μ†Œ: https://github.com/rebugui/OpenClaw