Command Resource Profiler logo

Command Resource Profiler

Community
DoiiarX
command-resource-profiler

Run a specific command under process-tree monitoring and report application-scoped CPU time, average CPU utilization, peak RSS/VMS memory, disk I/O, wall time, exit code, and optional interval samples. Use for command performance tests, runtime resource monitoring, before/after comparisons, regression checks, CLI benchmarks, or requests to measure one application's CPU and memory without mixing in unrelated system processes.

Overview

PublisherDoiiarX
Repositoryclaude-skills
Skill namecommand-resource-profiler
Stars
23
Forks
0
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by DoiiarX on GitHub. Read the source before you install it.

Installation

Install the Command Resource Profiler AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/DoiiarX/claude-skills/tree/main/command-resource-profiler
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/DoiiarX/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/command-resource-profiler .claude/skills/command-resource-profiler
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Command Resource Profiler in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Command Resource Profiler on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Command Resource Profiler is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Command Resource Profiler

Use the bundled profiler as the default measurement path:

powershell
python <skill-dir>/scripts/profile_command.py --output profile.json -- <command> <args...>

Resolve <skill-dir> to this skill's directory. Keep the target command after -- so its flags are not parsed as profiler flags.

Workflow

  1. Confirm the exact executable, arguments, working directory, and whether descendants belong to the workload.

  2. Check that Python and psutil are available. If psutil is missing, report python -m pip install psutil; do not install it without authorization.

  3. Choose a sampling interval. Use 0.2 seconds normally, 0.05-0.1 seconds for short workloads, and 0.5-1 second for long workloads.

  4. Run at least one warmup and three measured repetitions when comparing performance:

    powershell
    python <skill-dir>/scripts/profile_command.py --warmup 1 --repeat 3 --interval 0.1 --output profile.json --samples-output samples.csv -- <command> <args...>
  5. Report the command, environment, exit code, wall time, total CPU time, both CPU percentage conventions, peak concurrent RSS, I/O, interval, repetitions, and observed limitations.

  6. Compare runs only when inputs and relevant environment conditions are equivalent. Prefer medians for noisy wall-time comparisons and peak values for capacity planning.

Scope and safety

  • Measure only the root command and descendants discovered from that root; do not substitute whole-system CPU or memory.
  • Launch without a shell by default. Use --shell only when shell syntax such as pipelines, redirection, or built-ins is required.
  • Apply --timeout to unattended or potentially unbounded commands.
  • On timeout or interruption, terminate only the tracked process tree after verifying PID creation identity.
  • Preserve the target's stdout and stderr. Store the structured report with --output when clean machine-readable output matters.
  • Treat sampling as approximate for subprocesses that start and exit between samples. Read metrics.md before claiming kernel-level exactness or comparing results across platforms.

Useful options

text
--interval 0.1             Sampling interval in seconds
--warmup 1                 Unreported warmup executions
--repeat 5                 Measured executions
--timeout 120              Per-run timeout in seconds
--cwd PATH                 Target working directory
--output report.json       JSON summary and per-run metrics
--samples-output data.csv  Interval samples for graphing
--shell                    Execute through the platform shell
--label NAME               Label embedded in the report

Interpreting CPU

  • average_cpu_percent_core_scale: 100% means one logical CPU fully occupied and values may exceed 100%.
  • average_cpu_percent_machine: 100% means all logical CPUs fully occupied.
  • cpu_total_s: accumulated user plus system CPU time for observed members of the process tree.

For metric definitions and known sampling boundaries, read metrics.md.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Command Resource Profiler AI skill do?

Run a specific command under process-tree monitoring and report application-scoped CPU time, average CPU utilization, peak RSS/VMS memory, disk I/O, wall time, exit code, and optional interval samples. Use for command performance tests, runtime resource monitoring, before/after comparisons, regression checks, CLI benchmarks, or requests to measure one application's CPU and memory without mixing in unrelated system processes.

Why use Command Resource Profiler on TypingMind?

Because you install it once and use it with any model. Command Resource Profiler is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Command Resource Profiler in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/DoiiarX/claude-skills/tree/main/command-resource-profiler. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Command Resource Profiler?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Command Resource Profiler?

As many as you like. As long as a model supports skills, you can use Command Resource Profiler with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Command Resource Profiler AI skill free?

It is published on GitHub by DoiiarX. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇