agentleFS
ttracxttracx/oil-and-gas-claude-skills/skills/drilling_kpi_analyzer/SKILL.md

drilling_kpi_analyzer

Skill7 starsChanged 9 months agoMITView on GitHub

Extracts, computes, and benchmarks drilling key performance indicators from daily drilling reports, morning reports, and bit records. Produces section-level and well-level performance summaries including ROP, MSE, flat time, NPT classifications, and cost per foot. Benchmarks against offset wells when context is provided.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use rotating + sliding hours only (exclude tripping, flat time)

    line 152
  2. Distinctive:

    If hourly data unavailable, compute from depth intervals between DDRs

    line 153
  3. Distinctive:

    When offset well data is provided:

    line 175

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Drilling KPI Analyzer

What this skill does

Extracts, computes, and benchmarks drilling key performance indicators from daily drilling reports, morning reports, and bit records. Produces section-level and well-level performance summaries including ROP, MSE, flat time, NPT classifications, and cost per foot. Benchmarks against offset wells when context is provided.

When to use

  • User uploads daily drilling reports (DDRs), morning reports, or bit records
  • User asks to analyze drilling performance, compute KPIs, or benchmark a well
  • User wants to identify performance improvement opportunities
  • User needs a drilling performance summary for end-of-well reporting

Trigger phrases

  • "Analyze drilling performance for this well"
  • "Compute drilling KPIs from these DDRs"
  • "Benchmark ROP against offset wells"
  • "How does our drilling efficiency compare?"
  • "Summarize NPT breakdown for the past 30 days"
  • "What is the flat time percentage for this section?"
  • "Calculate mechanical specific energy for this bit run"
  • "Generate end-of-well drilling performance report"

Inputs

  • Daily drilling reports (PDF, DOCX, TXT)
  • Morning reports
  • Bit records or bit performance sheets
  • Drilling parameter time series (CSV, XLSX)
  • Optional: offset well KPI benchmarks
  • Optional: AFE cost data for cost-per-foot calculation

Outputs

  • Section-level KPI summary (surface, intermediate, lateral per section)
  • Well-level KPI summary
  • NPT breakdown by category with Pareto ranking
  • Flat time analysis (tripping, circulating, WOC, rigging)
  • ROP comparison by formation and bit type
  • MSE trend if WOB/RPM/torque/ROP data available
  • Cost per foot if AFE or day rate data provided
  • Benchmark comparison table if offset data provided
  • Quality flags and data gap warnings

Core KPIs extracted

Drilling efficiency

KPIDefinitionUnits
Average ROPTotal footage / rotating hoursft/hr
Instantaneous ROPPer-stand or per-30-min intervalft/hr
Mechanical ROPROP during pure rotary drillingft/hr
Slide ROPROP during motor slidingft/hr
Slide percentageSlide footage / total footage%
MSEMechanical Specific Energy = (480 × RPM × Torque + WOB) / (ROP × bit area)psi

Time distribution

CategoryDescription
Rotating timeDrill string rotating, bit on bottom
Sliding timeDownhole motor, bit on bottom, string not rotating
Reaming timeRotating but not drilling new formation
Tripping timePulling out of hole or running in hole
Connection timePer-stand time including wiper trips
Flat timeAll non-drilling time (tripping + connections + NPT)
NPTNon-productive time with cause classification

NPT classifications

  • Mechanical failure (equipment)
  • Wellbore instability (stuck pipe, tight hole, washout)
  • Mud/fluid related (losses, gains, influx)
  • Directional issues (stuck BHA, survey problems)
  • Rig equipment (top drive, pump, hoisting)
  • Weather / environmental
  • HSE / safety stop
  • Waiting on orders / personnel
  • Third-party service failure

Cost performance (when AFE data available)

  • Day rate cost per foot
  • Service company cost per foot
  • Projected vs. actual AFE
  • Cost overrun by NPT category

Output schema

{
  "well_summary": {
    "well_name": "string",
    "rig_name": "string",
    "spud_date": "string",
    "total_depth_ft": 0.0,
    "total_drilling_days": 0.0,
    "overall_rop_ft_hr": 0.0,
    "total_npt_hrs": 0.0,
    "npt_percentage": 0.0,
    "flat_time_percentage": 0.0,
    "rotating_percentage": 0.0
  },
  "sections": [
    {
      "name": "string",
      "from_depth_ft": 0.0,
      "to_depth_ft": 0.0,
      "footage_ft": 0.0,
      "avg_rop_ft_hr": 0.0,
      "rotating_hrs": 0.0,
      "sliding_hrs": 0.0,
      "tripping_hrs": 0.0,
      "npt_hrs": 0.0,
      "slide_pct": 0.0
    }
  ],
  "npt_breakdown": [
    {
      "category": "string",
      "total_hrs": 0.0,
      "event_count": 0,
      "percentage_of_total_npt": 0.0
    }
  ],
  "bit_runs": [
    {
      "run_number": 0,
      "bit_size_in": "string",
      "bit_type": "string",
      "from_depth_ft": 0.0,
      "to_depth_ft": 0.0,
      "footage_ft": 0.0,
      "rop_ft_hr": 0.0,
      "avg_wob_klbs": 0.0,
      "avg_rpm": 0.0,
      "dull_grade": "string"
    }
  ],
  "benchmark": {
    "offset_well_avg_rop": 0.0,
    "this_well_rop": 0.0,
    "rop_delta_pct": 0.0,
    "offset_well_npt_pct": 0.0,
    "this_well_npt_pct": 0.0
  },
  "quality_flags": ["string"]
}

Calculation notes

ROP calculation

  • Use rotating + sliding hours only (exclude tripping, flat time)
  • If hourly data unavailable, compute from depth intervals between DDRs
  • Report separate ROP for each bit run and each wellbore section

MSE calculation

MSE (psi) = (480 × RPM × Torque_ft-lbs) / (ROP_ft_hr × Bit_area_in²) + WOB_lbs / Bit_area_in²

MSE < 2× UCS (unconfined compressive strength) indicates efficient drilling. Flag runs where MSE exceeds 3× formation strength.

Flat time

Flat Time % = (Total hours - Rotating hours - Sliding hours) / Total hours × 100

NPT percentage

NPT % = Total NPT hours / Total elapsed hours × 100

Industry benchmark: best-in-class unconventional wells achieve < 5% NPT.

Benchmarking logic

When offset well data is provided:

  1. Match sections by formation or depth range
  2. Compute ROP percentile (P10/P50/P90) for the offset population
  3. Identify which NPT categories are outliers vs. offset average
  4. Flag bit runs with significantly below-P50 ROP as improvement opportunities

Example response

DRILLING KPI SUMMARY — Wolfcamp B 3H
═══════════════════════════════════════
Well Total Depth:     12,450 ft MD
Total Drilling Time:  18.3 days
Overall Average ROP:  147 ft/hr
Total NPT:            12.8 hrs (2.9%)
Flat Time:            22.4%

SECTION BREAKDOWN
─────────────────
Surface (0–2,400 ft):       Avg ROP 45 ft/hr, NPT 0.5 hrs
Intermediate (2,400–7,200 ft): Avg ROP 92 ft/hr, NPT 3.2 hrs
Lateral (7,200–12,450 ft):  Avg ROP 168 ft/hr, NPT 9.1 hrs

NPT PARETO (Lateral Section)
─────────────────────────────
1. Mechanical failure (pump liner)  4.8 hrs  (53%)
2. Wellbore instability (stuck pipe) 2.5 hrs  (28%)
3. Third-party (MWD tool failure)   1.8 hrs  (20%)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.