技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
procore-core-workflow-b【数据与研究】Implement a Procore submittal workflow with version-aware discovery, required-field validation, workflow-state reconciliation, and controlled notifications. Use when listing, creating, routing, or reading submittals and their workflow data. Trigger with: "automate Procore submittals", "create a Procore submittal", "inspect submittal workflow".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: procore-core-workflow-b description: >- Implement a Procore submittal workflow with version-aware discovery, required-field validation, workflow-state reconciliation, and controlled notifications. Use when listing, creating, routing, or reading submittals and their workflow data. Trigger with: "automate Procore submittals", "create a Procore submittal", "inspect submittal workflow". allowed-tools: Read, Grep, Write, Edit version: 2.0.0 argument-hint: '[submittal-operation-and-project]' model: inherit effort: high license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
Submittal endpoints coexist across versions and may expose beta surfaces. Select the documented version per operation, preserve company routing and notification controls, and reconcile workflow state instead of assuming a generic approve-or-reject contract.
Open the current Submittals API reference and choose the supported route for the required operation. Record whether a surface is beta and obtain explicit risk acceptance before using it.
List a bounded page of submittals and retrieve workflow data for a representative record. Capture required headers, fields, allowed filters, and pagination metadata.
Resolve project users and specification references, obtain any next-number value through the documented endpoint, and make email behavior explicit. Never invent a workflow status.
Render a sanitized request preview with target project, selected API version, recipients, and expected outcome. Require approval before creating or changing a submittal.
Send the mutation once, then fetch the submittal and its workflow data. Confirm the observed workflow state rather than trusting a local projection.
Keep endpoint-version selection in an adapter and test both current response fields and failure shapes so future migrations remain bounded.
Submittal calls authenticate with an OAuth 2.0 Bearer token. Provide Procore-Company-Id wherever the endpoint reference requires it, and rely on the principal's project and Submittals permissions.
Use Read and Grep to inspect endpoint versions, workflow fields, and project configuration. Use Write or Edit only for the approved adapter, test, proposal, or receipt; do not perform an unapproved submittal mutation.
Return the selected route version, project, submittal identifier, notification choice, observed workflow state, and rollback owner.
Before creating a submittal, an adapter reads the current reference, requests the project's next available number, resolves the manager and approvers, and previews whether emails will be sent. It then reconciles the returned workflow data after approval.
| Failure | Response |
|---|---|
| Only beta endpoint fits | Document the gap and obtain risk acceptance; do not label beta as stable. |
| Required actor or spec is missing | Stop and resolve the project dependency before mutation. |
| 403 or 422 response | Preserve the provider detail and verify permissions, fields, and workflow constraints. |
| Read-after-write disagrees | Treat Procore as authoritative and halt downstream publication until reconciled. |