Run a full Section 508 + WCAG 2.2 Level AA accessibility audit on a federal / .gov / public-sector website or ICT product. Triggers: "Section 508", "508 audit", "WCAG", "VPAT", "ACR".
中文简介正在准备中。当前显示原文说明。
Generate a production-grade OEE (Overall Equipment Effectiveness) measurement pipeline for a manufacturing line — data ingestion from MQTT/OPC-UA/Modbus/CSV, A×P×Q calculation engine, Six Big Losses categorizer, MTBF/MTTR/TEEP metrics, Grafana or Streamlit dashboard.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
You generate a complete, production-grade Overall Equipment Effectiveness measurement pipeline for a manufacturing line. The output is real code (Python or Node + Grafana/Streamlit), not pseudocode or chat advice.
OEE = Availability × Performance × Quality. World-class is ~85%. Most plants run 40-60%. The gap is almost always invisible because nobody is measuring correctly. Your job is to make it measurable in a few hours of work.
Before generating any code, gather and verify:
Recovery if anything is missing:
# TODO: replace with real <protocol> connection — see references/connectors.md.Generate this layout in the current working directory (or a subfolder if the user specifies one):
oee/
├── README.md # Quickstart, formulas, deployment notes
├── pyproject.toml # or package.json if Node
├── docker-compose.yml # Local stack: broker + Grafana + InfluxDB
├── src/
│ ├── ingest/
│ │ ├── mqtt_source.py # paho-mqtt + Sparkplug B decoder
│ │ ├── opcua_source.py # asyncua subscription
│ │ ├── modbus_source.py # pymodbus TCP/RTU
│ │ └── mock_source.py # for testing without hardware
│ ├── oee/
│ │ ├── calc.py # core A×P×Q formulas
│ │ ├── six_big_losses.py # downtime categorizer
│ │ └── metrics.py # MTBF, MTTR, TEEP, NEE
│ ├── storage/
│ │ └── influx_writer.py # InfluxDB or TimescaleDB writer
│ └── dashboard/
│ └── grafana_dashboard.json
└── tests/
└── test_oee_calc.py # validates formulas against published examples
VALIDATION: Every directory exists. Every file has at least a docstring and one runnable function. Tests pass against the published OEE example: A=0.80, P=0.85, Q=0.95 → OEE=0.6460.
FALLBACK: If the user's existing project structure is incompatible (Django app, Flask, etc.), embed the OEE module as a single package without forcing the folder layout.
Generate src/oee/calc.py with the exact formulas:
# Availability = Run Time / Planned Production Time
# Planned Production Time = Shift Length - Planned Stops
# Run Time = Planned Production Time - Unplanned Stops
# Performance = (Ideal Cycle Time × Total Count) / Run Time
# Equivalent: Performance = (Total Count / Run Time) / Ideal Run Rate
# Quality = Good Count / Total Count
# OEE = Availability × Performance × Quality
# TEEP = OEE × Utilization (Utilization = Planned Production Time / All Time)
# NEE = Availability_uptime × Performance × Quality (excludes planned downtime)
Edge cases the engine MUST handle:
Cite the formulas inline using a reference comment so future maintainers can audit:
# Source: ISO 22400-2:2014 Key Performance Indicators for Manufacturing Operations Management
VALIDATION: Unit tests in tests/test_oee_calc.py cover: known-good values, divide-by-zero, P>1.0 clamp, partial shift, all-scrap output. All tests must pass.
FALLBACK: If a formula edge case is ambiguous (e.g., how to handle a machine running during a planned stop), default to the ISO 22400-2 interpretation and add a TODO comment explaining the assumption.
Generate src/oee/six_big_losses.py that classifies downtime events into the canonical six categories:
| # | Loss Category | OEE Bucket | Detection Rule (default) |
|---|---|---|---|
| 1 | Breakdowns / Equipment failure | Availability | unplanned stop > 5 min, fault code present |
| 2 | Setup & Adjustments | Availability | stop tagged "changeover" or between product runs |
| 3 | Small Stops / Idling | Performance | stop 0–5 min, no operator intervention |
| 4 | Reduced Speed | Performance | running but actual_rate < ideal_rate |
| 5 | Startup Rejects | Quality | scrap within first N units after run start |
| 6 | Production Rejects | Quality | scrap during steady-state production |
The categorizer takes a stream of state events (timestamp, state, duration, fault_code, product) and emits classified loss events. Output schema must be JSON-serializable so it flows into the dashboard without ETL.
VALIDATION: Run the categorizer against a synthetic 8-hour shift in tests; verify that the six categories sum to the total loss within rounding.
FALLBACK: If fault codes are not available, classify all unplanned stops > 5 min as Breakdowns and emit a "fault_code_missing" warning so the user knows the granularity gap.
Generate the ingestion adapter matching the user's data source. Each adapter MUST:
{
"ts": "ISO8601",
"asset_id": "line-1",
"metric": "good_count",
"value": 1247,
"quality": "GOOD"
}
MQTT Sparkplug B specifics:
spBv1.0/{group}/DDATA/{edge_node}/{device}.vendor/).OPC UA specifics:
asyncua (Python) — modern, asyncio-native, maintained.config/opcua_nodes.yaml.Modbus specifics:
pymodbus. Register maps live in config/modbus_map.yaml.VALIDATION: Adapter connects to a local broker (run via docker-compose) and emits at least 10 sample events in python -m src.ingest.<adapter> --test mode.
FALLBACK: If the protocol-specific library is unavailable in the user's environment, generate mock_source.py that replays a recorded CSV — pipeline still demonstrable end-to-end.
Generate src/dashboard/grafana_dashboard.json (preferred) OR a Streamlit app at src/dashboard/app.py.
The dashboard MUST include:
Grafana panel queries must use the canonical event schema from Phase 4 so the dashboard works without per-deployment query editing.
VALIDATION: Import the JSON into a fresh Grafana instance (Grafana ≥ 10) and confirm all 6 panels render without errors against the mock data source.
FALLBACK: If Grafana setup is too heavy for the user, generate Streamlit (single streamlit run app.py).
Write README.md with:
docker-compose up && python -m src.ingest.mock_source && open http://localhost:3000.VALIDATION: README quickstart actually works on a fresh machine.
Score each dimension 1–5:
If any < 4:
After completing, append to ~/.claude/skills/oee-pipeline/LEARNINGS.md:
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Run a full Section 508 + WCAG 2.2 Level AA accessibility audit on a federal / .gov / public-sector website or ICT product. Triggers: "Section 508", "508 audit", "WCAG", "VPAT", "ACR".
中文简介正在准备中。当前显示原文说明。
Analyzes actuarial modeling systems for loss reserving accuracy, premium pricing methodology, mortality/morbidity tables, stochastic modeling, and capital adequacy per SOA and Solvency II standards..
中文简介正在准备中。当前显示原文说明。
Analyzes advertising yield across programmatic and direct-sold inventory including CPM/CPC/CPA performance, header bidding efficiency, fill rate optimization, inventory monetization strategies, and compliance with IAB standards and OpenRTB protocols..
中文简介正在准备中。当前显示原文说明。
Create and manage Architecture Decision Records using the Michael Nygard format. Triggers: you need to document architecture decisions, record technical choices, explain why a technology was chosen.
中文简介正在准备中。当前显示原文说明。
Analyzes affordable housing management software for unit allocation algorithms, waitlist management, income verification workflows, Fair Housing compliance, LIHTC and Section 8 program tracking, inspection scheduling, and tenant reporting..
中文简介正在准备中。当前显示原文说明。
Rewrites existing landing pages, blog posts, and documentation so AI search engines (Google AI Overviews, ChatGPT, Perplexity, Claude, Gemini) cite them. Triggers: an existing page underperforms in AI answers despite ranking well in classic SERPs.
中文简介正在准备中。当前显示原文说明。