boq — bill of quantities management Claude-Skill-Teach, community, bill of quantities management, ide skills, construction cost estimation, boq install, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Construction Planning Agents needing automated bill of quantities management and cost estimation using Excel. boq is a bill of quantities management skill that enables automated generation and management of construction cost estimates using Excel.

Features

Generates BOQ files in Excel format
Organizes output files in a dedicated workspace folder
Follows best practices outlined in BEST_PRACTICES.md
Categorizes construction work into 5 standard categories
Supports detailed cost estimation for construction projects

# Core Topics

POBIM POBIM
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The boq skill by POBIM is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for bill of quantities management, construction cost estimation, boq install.

Ideal Agent Persona

Perfect for Construction Planning Agents needing automated bill of quantities management and cost estimation using Excel.

Core Value

Empowers agents to efficiently manage construction project costs by automating bill of quantities generation, utilizing Excel for data analysis and project planning, and organizing output files in a structured workspace folder.

Capabilities Granted for boq

Automating bill of quantities creation for construction projects
Generating detailed cost estimates using Excel
Organizing project files into standardized workspace folders

! Prerequisites & Limits

  • Requires Excel for data analysis and cost estimation
  • Output files are stored in a specific workspace folder structure
  • Limited to construction project planning and bill of quantities management
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

boq

Discover how to automate bill of quantities management with BOQ skill. Learn to generate and manage construction cost estimates using Excel.

SKILL.md
Readonly

BOQ (Bill of Quantities) Skill

ทักษะสำหรับจัดทำและจัดการใบประมาณราคาค่าก่อสร้าง (BOQ) ด้วย Excel

📁 Output Location: ไฟล์ BOQ ที่สร้างจะถูกบันทึกไปที่ workspace/boq_examples/ เพื่อแยกออกจาก skill folder

📚 Best Practices: อ่านแนวทางการจัดทำ BOQ ที่ถูกต้องได้ที่ BEST_PRACTICES.md

หมวดงานมาตรฐาน

BOQ ทุกไฟล์จะมี 5 หมวดงานหลัก:

  1. งานเตรียมการ - งานรื้อถอน, ปรับพื้นที่, ขนขยะ
  2. งานโครงสร้าง - งานเทคอนกรีต, เหล็กเสริม, โครงสร้างหลัก
  3. งานสถาปัตยกรรม - งานผนัง, งานฝ้า, งานสี, งานพื้น
  4. งานระบบไฟฟ้า - ระบบไฟฟ้า, ระบบแสงสว่าง, เต้ารับ
  5. งานระบบสุขาภิบาล - งานประปา, งานท่อ, สุขภัณฑ์

โครงสร้างตาราง BOQ

แต่ละ BOQ จะมีคอลัมน์:

  • ลำดับ - เลขที่รายการ
  • รายการ - รายละเอียดงาน
  • ปริมาณ - จำนวน
  • หน่วย - หน่วยนับ (ตร.ม., ตร.วา, จุด, ชุด, etc.)
  • ค่าวัสดุต่อหน่วย - ราคาวัสดุต่อหน่วย
  • ราคารวมวัสดุ - คำนวณอัตโนมัติ: ปริมาณ × ค่าวัสดุต่อหน่วย
  • ค่าแรงต่อหน่วย - ค่าแรงต่อหน่วย
  • ค่าแรงรวม - คำนวณอัตโนมัติ: ปริมาณ × ค่าแรงต่อหน่วย
  • รวมราคา - คำนวณอัตโนมัติ: ราคารวมวัสดุ + ค่าแรงรวม
  • หมายเหตุ - หมายเหตุเพิ่มเติม

การใช้งาน

1. สร้าง BOQ ใหม่

Use the boq_helper.py script to create a new BOQ:

bash
1python boq_helper.py create <filename> [project_name] [location] [customer]

Examples:

bash
1# สร้าง BOQ พื้นฐาน 2python boq_helper.py create project_boq.xlsx 3 4# สร้าง BOQ พร้อมข้อมูลโครงการ 5python boq_helper.py create office_renovation.xlsx "โครงการปรับปรุงสำนักงาน" "กรุงเทพมหานคร" "บริษัท ABC จำกัด"

The script creates a formatted Excel file with:

  • Project information header (ข้อมูลโครงการ, สถานที่, ลูกค้า)
  • All 5 standard work categories with space for 3 items each
  • Automatic calculation formulas for costs
  • Summary rows for each category
  • Grand total at the bottom
  • Professional formatting with colors and borders

2. เพิ่มรายการใน BOQ

Add items to specific categories:

bash
1python boq_helper.py add <filename> <category> <item_no> <description> <quantity> <unit> [material_cost] [labor_cost] [note]

Parameters:

  • filename: BOQ file path
  • category: One of the 5 standard categories (exact match required)
  • item_no: Item number (e.g., "1.1", "2.1")
  • description: Item description
  • quantity: Quantity (number)
  • unit: Unit (e.g., "ตร.ม.", "ตร.วา", "จุด", "ชุด")
  • material_cost: Material cost per unit (optional, default: 0)
  • labor_cost: Labor cost per unit (optional, default: 0)
  • note: Additional notes (optional)

Example:

bash
1python boq_helper.py add office_renovation.xlsx "งานเตรียมการ" "1.1" "รื้อถอนผนังเก่า" 25.5 "ตร.ม." 50 150 "รวมขนย้ายเศษวัสดุ"

3. คำนวณ Formula ใหม่

After adding items, recalculate all formulas:

bash
1python recalc.py <filename>

Example:

bash
1python recalc.py office_renovation.xlsx

The recalc script:

  • Recalculates all formulas (ราคารวมวัสดุ, ค่าแรงรวม, รวมราคา, etc.)
  • Updates summary rows for each category
  • Updates grand total
  • Checks for Excel errors (#REF!, #DIV/0!, etc.)
  • Returns JSON with status and any errors found

Workflow Example

Complete workflow for creating a BOQ:

python
1import subprocess 2import json 3 4# 1. Create new BOQ 5result = subprocess.run([ 6 'python', 'boq_helper.py', 'create', 7 'renovation.xlsx', 8 'โครงการปรับปรุงอาคาร', 9 'กรุงเทพฯ', 10 'บริษัท XYZ' 11], capture_output=True, text=True) 12print(json.loads(result.stdout)) 13 14# 2. Add items to different categories 15items = [ 16 ('งานเตรียมการ', '1.1', 'รื้อถอนผนัง', 30, 'ตร.ม.', 50, 150), 17 ('งานโครงสร้าง', '2.1', 'เทพื้นคอนกรีต', 50, 'ตร.ม.', 800, 400), 18 ('งานสถาปัตยกรรม', '3.1', 'ทาสีภายใน', 100, 'ตร.ม.', 80, 120), 19] 20 21for category, no, desc, qty, unit, mat, lab in items: 22 subprocess.run([ 23 'python', 'boq_helper.py', 'add', 24 'renovation.xlsx', category, no, desc, 25 str(qty), unit, str(mat), str(lab) 26 ], capture_output=True, text=True) 27 28# 3. Recalculate formulas 29result = subprocess.run([ 30 'python', 'recalc.py', 'renovation.xlsx' 31], capture_output=True, text=True) 32print(json.loads(result.stdout))

Using Python Directly (Alternative Method)

For more flexibility, directly use openpyxl with the xlsx skill patterns:

python
1from openpyxl import load_workbook 2 3wb = load_workbook('renovation.xlsx') 4ws = wb.active 5 6# Add custom item to specific row 7row = 8 # Example row number 8ws[f'A{row}'] = '1.2' 9ws[f'B{row}'] = 'งานขุดดิน' 10ws[f'C{row}'] = 15.5 11ws[f'D{row}'] = 'ลบ.ม.' 12ws[f'E{row}'] = 200 13ws[f'F{row}'] = f'=C{row}*E{row}' # Auto-calculate 14ws[f'G{row}'] = 300 15ws[f'H{row}'] = f'=C{row}*G{row}' # Auto-calculate 16ws[f'I{row}'] = f'=F{row}+H{row}' # Total 17ws[f'J{row}'] = 'รวมค่าขนย้ายดิน' 18 19wb.save('renovation.xlsx')

Then recalculate:

bash
1python recalc.py renovation.xlsx

Important Notes

Formula Usage

  • ALWAYS use Excel formulas instead of calculating in Python
  • Formulas ensure the BOQ remains dynamic and updateable
  • Let Excel calculate: ราคารวมวัสดุ, ค่าแรงรวม, รวมราคา

Category Limits

  • Each category can hold up to 3 items by default
  • To add more items, modify the BOQ structure or use Python directly

Recalculation

  • MANDATORY: Always run recalc.py after creating or modifying BOQ
  • This ensures all formulas are calculated correctly
  • Check the JSON output for any errors

Thai Language Support

  • All output uses Thai language
  • File names can be in Thai or English
  • Category names must match exactly (including Thai characters)

Error Handling

  • Scripts return JSON output for easy parsing
  • Check status field: "success" or "error"
  • Error messages are in Thai for clarity

Bundled Scripts

  • boq_helper.py - Main BOQ creation and management script
  • recalc.py - Formula recalculation script
  • validate_boq.py - Validation script for checking budget proportions
  • BEST_PRACTICES.md - Guidelines for creating proper BOQ

Best Practices

สัดส่วนงบประมาณมาตรฐาน (สำหรับบ้านพักอาศัย):

  • งานเตรียมการ: ≤ 5%
  • งานโครงสร้าง: 28-32% (เป้าหมาย 30%)
  • งานสถาปัตยกรรม: 38-42% (เป้าหมาย 40%)
  • งานระบบไฟฟ้า: 10-14% (เป้าหมาย 12%)
  • งานระบบสุขาภิบาล: 12-16% (เป้าหมาย 13%)

อ่านรายละเอียดเพิ่มเติมใน BEST_PRACTICES.md

Examples

ตัวอย่างการใช้งานอยู่ที่ examples/ folder:

bash
1# สร้าง BOQ บ้านพักอาศัย 2 ชั้น (ตาม Best Practices) 2python examples/create_house_boq.py

ไฟล์ที่สร้างจะอยู่ที่: workspace/boq_examples/

Validation

ตรวจสอบสัดส่วนงบประมาณ:

python
1from validate_boq import validate_from_data 2 3boq_totals = { 4 "งานเตรียมการ": 186916, 5 "งานโครงสร้าง": 1122092, 6 "งานสถาปัตยกรรม": 1495327, 7 "งานระบบไฟฟ้า": 448598, 8 "งานระบบสุขาภิบาล": 485981 9} 10 11validate_from_data(boq_totals)

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is boq?

Perfect for Construction Planning Agents needing automated bill of quantities management and cost estimation using Excel. boq is a bill of quantities management skill that enables automated generation and management of construction cost estimates using Excel.

How do I install boq?

Run the command: npx killer-skills add POBIM/Claude-Skill-Teach/boq. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for boq?

Key use cases include: Automating bill of quantities creation for construction projects, Generating detailed cost estimates using Excel, Organizing project files into standardized workspace folders.

Which IDEs are compatible with boq?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for boq?

Requires Excel for data analysis and cost estimation. Output files are stored in a specific workspace folder structure. Limited to construction project planning and bill of quantities management.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add POBIM/Claude-Skill-Teach/boq. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use boq immediately in the current project.

Related Skills

Looking for an alternative to boq or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI