/revit-bim:acc-reportsfrom revit-bim
Exports Autodesk Construction Cloud project data (issues, RFIs, document logs, clash summaries, transmittals) to CSV or Excel using the APS REST API and Python.
Ships in revit-bim. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Export ACC project data for:
"$ARGUMENTS"
acc-api-setup skill)pip install requests openpyxlIssues API requires a 3-legged token (user context).
import os, csv, requests
from datetime import datetime
# ── Configuration ─────────────────────────────────────────────────────────────
PROJECT_ID = os.environ.get("APS_PROJECT_ID_RAW") # WITHOUT b. prefix
OUTPUT_PATH = r"C:\Reports\acc_issues_export.csv"
BASE_ISSUES = "https://developer.api.autodesk.com/construction/issues/v1"
# ─────────────────────────────────────────────────────────────────────────────
def get_all_issues(client, project_id):
"""Fetch all issues from ACC using pagination."""
all_issues = []
offset = 0
limit = 100
while True:
url = f"{BASE_ISSUES}/projects/{project_id}/issues"
params = {"limit": limit, "offset": offset,
"filterType": "all"} # include all statuses
data = client.get(url, params=params)
issues = data.get("results", [])
total = data.get("pagination", {}).get("totalResults", 0)
all_issues.extend(issues)
offset += limit
if offset >= total or not issues:
break
return all_issues, total
def issues_to_csv(issues, output_path):
"""Write issues list to CSV."""
if not issues:
print("No issues found.")
return
os.makedirs(os.path.dirname(output_path), exist_ok=True)
fieldnames = [
"Issue Number", "Title", "Status", "Assigned To",
"Due Date", "Created By", "Created Date",
"Root Cause", "Type", "Sub-type",
"Location", "Description", "Closed Date",
]
with open(output_path, "w", newline="", encoding="utf-8") as f:
writer = csv.DictWriter(f, fieldnames=fieldnames, extrasaction="ignore")
writer.writeheader()
for issue in issues:
attrs = issue.get("attributes", {})
writer.writerow({
"Issue Number": attrs.get("displayId", ""),
"Title": attrs.get("title", ""),
"Status": attrs.get("status", ""),
"Assigned To": (attrs.get("assignedTo", {}) or {}).get("displayName", ""),
"Due Date": attrs.get("dueDate", ""),
"Created By": (attrs.get("createdBy", {}) or {}).get("displayName", ""),
"Created Date": attrs.get("createdAt", ""),
"Root Cause": attrs.get("rootCauseLabel", ""),
"Type": attrs.get("issueTypeLabel", ""),
"Sub-type": attrs.get("issueSubTypeLabel", ""),
"Location": attrs.get("locationDetails", ""),
"Description": attrs.get("description", "")[:200] if attrs.get("description") else "",
"Closed Date": attrs.get("closedAt", ""),
})
print(f"Issues exported: {len(issues)} → {output_path}")
if __name__ == "__main__":
# client must use a 3-legged token
issues, total = get_all_issues(client, PROJECT_ID)
print(f"Fetched {len(issues)} of {total} issues")
issues_to_csv(issues, OUTPUT_PATH)
import os, csv
from collections import Counter, defaultdict
def issues_summary(issues, output_path=r"C:\Reports\acc_issues_summary.csv"):
"""Generate a pivot summary of issues by status, type, and assignee."""
status_count = Counter()
type_count = Counter()
assignee_count = Counter()
overdue_count = 0
today = datetime.now().date()
for issue in issues:
attrs = issue.get("attributes", {})
status = attrs.get("status", "unknown")
iss_type = attrs.get("issueTypeLabel", "unknown")
assignee = (attrs.get("assignedTo", {}) or {}).get("displayName", "Unassigned")
due_str = attrs.get("dueDate", "")
status_count[status] += 1
type_count[iss_type] += 1
assignee_count[assignee] += 1
if due_str and status not in ("closed", "void"):
try:
due_date = datetime.fromisoformat(due_str.split("T")[0]).date()
if due_date < today:
overdue_count += 1
except Exception:
pass
os.makedirs(os.path.dirname(output_path), exist_ok=True)
with open(output_path, "w", newline="", encoding="utf-8") as f:
writer = csv.writer(f)
writer.writerow(["=== ISSUES BY STATUS ==="])
writer.writerow(["Status", "Count"])
for status, count in status_count.most_common():
writer.writerow([status, count])
writer.writerow([])
writer.writerow(["=== ISSUES BY TYPE ==="])
writer.writerow(["Type", "Count"])
for typ, count in type_count.most_common():
writer.writerow([typ, count])
writer.writerow([])
writer.writerow(["=== ISSUES BY ASSIGNEE ==="])
writer.writerow(["Assignee", "Count"])
for assignee, count in assignee_count.most_common():
writer.writerow([assignee, count])
writer.writerow([])
writer.writerow(["=== SUMMARY ==="])
writer.writerow(["Total Issues", sum(status_count.values())])
writer.writerow(["Open", status_count.get("open", 0)])
writer.writerow(["In Review", status_count.get("in_review", 0)])
writer.writerow(["Closed", status_count.get("closed", 0)])
writer.writerow(["Overdue (open)", overdue_count])
print(f"Summary saved: {output_path}")
# Usage:
# issues_summary(issues)
import os, csv
BASE_URL = "https://developer.api.autodesk.com"
def export_doc_register(client, hub_id, project_id, output_path=r"C:\Reports\acc_doc_register.csv"):
"""Export a flat file register of all documents in ACC Docs."""
# Get top folders
folders = client.get(
f"{BASE_URL}/project/v1/hubs/{hub_id}/projects/{project_id}/topFolders"
).get("data", [])
all_files = []
def traverse(folder_id, folder_path):
url = f"{BASE_URL}/data/v1/projects/{project_id}/folders/{folder_id}/contents"
page = url
while page:
data = client.get(page)
items = data.get("data", [])
next_ = data.get("links", {}).get("next", {})
for item in items:
attrs = item["attributes"]
if item["type"] == "folders":
traverse(item["id"], folder_path + "/" + attrs["name"])
elif item["type"] == "items":
all_files.append({
"File Name": attrs.get("displayName", ""),
"Folder Path": folder_path,
"Item ID": item["id"],
"Last Modified": attrs.get("lastModifiedTime", ""),
"Modified By": attrs.get("lastModifiedUserName", ""),
"Created": attrs.get("createTime", ""),
"Created By": attrs.get("createUserName", ""),
})
page = next_.get("href") if next_ else None
for folder in folders:
traverse(folder["id"], folder["attributes"]["name"])
os.makedirs(os.path.dirname(output_path), exist_ok=True)
with open(output_path, "w", newline="", encoding="utf-8") as f:
writer = csv.DictWriter(f, fieldnames=list(all_files[0].keys()) if all_files else [])
writer.writeheader()
writer.writerows(all_files)
print(f"Doc register: {len(all_files)} files → {output_path}")
return all_files
import csv, os
from datetime import datetime
BASE_MC = "https://developer.api.autodesk.com/modelcoordination/modelset/v3"
def clash_trend_report(client, container_id, model_set_id,
output_path=r"C:\Reports\acc_clash_trend.csv"):
"""Compare clash counts across all model set versions to show trend."""
url = f"{BASE_MC}/containers/{container_id}/modelsets/{model_set_id}/versions"
data = client.get(url)
versions = sorted(
data.get("results", []),
key=lambda v: v.get("versionNumber", 0)
)
os.makedirs(os.path.dirname(output_path), exist_ok=True)
with open(output_path, "w", newline="") as f:
writer = csv.writer(f)
writer.writerow(["Version", "Date", "Total Clashes", "Delta vs Previous"])
prev_count = None
for v in versions:
count = v.get("clashCount", 0)
delta = ""
if prev_count is not None:
diff = count - prev_count
delta = ("+" if diff > 0 else "") + str(diff)
writer.writerow([
"v" + str(v.get("versionNumber", "")),
v.get("createTime", "")[:10],
count,
delta,
])
prev_count = count
print(f"Clash trend saved: {output_path}")
# Usage:
# clash_trend_report(client, CONTAINER_ID, MODEL_SET_ID)
def full_project_report(client, hub_id, project_id, container_id, model_set_id):
"""Generate a complete ACC project health snapshot."""
from datetime import datetime
report = {
"Generated": datetime.now().strftime("%Y-%m-%d %H:%M"),
"Project ID": project_id,
}
# Issues
try:
issues, total = get_all_issues(client, project_id.replace("b.", ""))
open_issues = sum(1 for i in issues
if i.get("attributes", {}).get("status") == "open")
report["Total Issues"] = total
report["Open Issues"] = open_issues
report["Closed Issues"] = total - open_issues
except Exception as e:
report["Issues Error"] = str(e)
# Docs
try:
files = export_doc_register(client, hub_id, project_id,
output_path=r"C:\Reports\doc_register.csv")
report["Total Documents"] = len(files)
except Exception as e:
report["Docs Error"] = str(e)
# Clashes
try:
versions = get_model_set_versions(client, container_id, model_set_id)
if versions:
report["Latest Clash Count"] = versions[0]["clash_count"]
report["Latest Model Set Version"] = versions[0]["version_num"]
except Exception as e:
report["Clash Error"] = str(e)
return report
| Report | API | Token | Scope |
|---|---|---|---|
| Issues register | Issues API v1 | 3-legged | data:read |
| Document log | Data Management API v1 | 2-legged | data:read |
| Clash summary | Model Coordination API v3 | 2-legged | data:read |
| Project list | Project API v1 | 2-legged | account:read |
| Transmittal log | Construction Transmittals | 2-legged | data:read |
| Sheets register | Sheets API v1 | 2-legged | data:read |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
25 skills in this plugin
/acc-api-setupSet up Python authentication and a reusable client for the Autodesk Platform Services (APS) API to access Autodesk Construction Cloud (ACC). Use this skill first before any other ACC API script — it handles OAuth2 token acquisition (2-legged and 3-legged), environment configuration, hub/project discovery, and the Python boilerplate that all ACC API scripts depend on. Trigger on phrases like "ACC API setup", "authenticate with APS", "get an APS token", "connect to ACC", "Autodesk API token", "APS credentials", "set up Forge API", "configure ACC API", "get access token Autodesk", or whenever a user is starting to write ACC/APS API scripts and needs the authentication foundation. Always offer this skill before any other ACC API skill if the user hasn't authenticated yet.
/acc-coordinateWork with Autodesk Construction Cloud (ACC) Coordinate — list and inspect model sets, retrieve clash results, create clash issues, manage model activation for coordination, and export coordination reports via the APS Model Coordination API. Use this skill when a user needs to automate clash detection workflows, pull clash data from ACC for reporting, create ACC issues from clashes, check which models are active in a model set, or integrate ACC coordination data with other tools. Trigger on phrases like "ACC Coordinate", "model coordination", "model set", "clash results", "clash data", "ACC clashes", "coordination space", "activated models", "clash issues", "federated model", "coordination report", "BIM coordination", or any request to work with ACC's model coordination module via API. Also offer this when users want to export or report on clash data from ACC.
/acc-design-collaborationGuide Revit ↔ ACC Design Collaboration workflows — setting up cloud worksharing, creating and consuming design packages, shared views, Design Collaboration setup, model publishing, and Revit cloud model best practices. Also covers the API for querying shared views and design package status. Use this skill when a user needs help with Revit cloud models, BIM 360 Design / ACC Design Collaboration, creating or receiving design packages, activating models for coordination, or troubleshooting cloud worksharing issues. Trigger on phrases like "Design Collaboration", "cloud worksharing", "Revit cloud model", "design package", "shared views", "consume package", "publish model to ACC", "BIM 360 Design", "Revit cloud", "cloud model", "collaboration workflow", "ACC Revit workflow", or any request involving the Revit-to-ACC publishing and collaboration pipeline.
/acc-docsManage Autodesk Construction Cloud (ACC) Docs — list folders and files, upload documents, download files, create folder structures, manage transmittals, reviews, and packages via the APS Data Management API and ACC Docs REST API. Use this skill when a user needs to automate document control workflows in ACC: bulk uploading drawing sets, creating folder structures, listing published files, downloading specific versions, setting up transmittals, creating document packages, or writing reports of what's in their ACC Docs library. Trigger on phrases like "ACC Docs", "upload to ACC", "download from ACC", "list files in ACC", "document control", "ACC folder", "transmittal", "document package", "file versions", "publish drawings", "drawing register", "ACC file management", or any request to read, write, or organise files in Autodesk Construction Cloud Docs.
/analyze-roomsAnalyze rooms, spaces, and areas in a Revit model — GIA calculations, space program comparison, department breakdowns, unbounded/unplaced room audits, and CSV export. Use this skill when a user wants to calculate total floor area, check room areas against a brief, export a room data table, find unplaced or unbounded rooms, or produce a GIA (Gross Internal Area) report. Trigger on phrases like "room areas", "GIA", "space program", "analyze rooms", "unbounded rooms", "area schedule", "room data", "floor area summary", "net internal area", or any request involving Revit room/space quantities. Also use when someone mentions area validation before planning submission.
/audit-modelAudit and analyze Revit model health, quality, and BIM standards compliance. Use this skill when checking model file size, warning counts, element counts by category, redundant or in-place families, unused views, workset structure, model warnings, or any model performance or quality-control question. Trigger on phrases like "audit my model", "check model health", "how many warnings", "is my model clean", "model performance", "BIM QC", "quality check", or whenever someone wants a summary of what's in their Revit model. Proactively offer an audit when users mention slow model performance or submission deadlines.
npx claudepluginhub utopia5327/claude-plugin-for-revit-bim --plugin revit-bimOther plugins' skills for the same job