Agent skill

Share Usage

by NeuroAIHub in NeuroAIHub/BrainPilot

Generate and share anonymized skill usage statistics to help the community understand which skills are most valuable

AGPL-3.0Auto-check passedData & Analytics

Install Share Usage

skills CLI
$ npx skills add NeuroAIHub/BrainPilot --skill share-usage -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install NeuroAIHub/BrainPilot share-usage --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/NeuroAIHub/BrainPilot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/skills/skills/01_Meta-Skills/share-usage .claude/skills/share-usage && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
share-usage
GitHub stars
1.1k
Token cost
~3.2k tokens
SKILL.md length
911 words
Files
2
Skills in repo
59
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Generate and share anonymized skill usage statistics to help the community understand which skills are most valuable

  • Works in 9 steps: Confirm Privacy Understanding → Analyze Claude Code Logs → Analyze Claude Code Logs → …
  • Tasks that involve Statistics
  • SKILL.md covers When to Use, What Information Will Be Shared, Privacy Notice and How to Use, plus 3 more sections
  • Calls gh

What it does

Share Usage is an agent skill from NeuroAIHub/BrainPilot. Generate and share anonymized skill usage statistics to help the community understand which skills are most valuable

Its SKILL.md is about 3.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `README.md`).

It sits in Data & Analytics, covering Statistics. The repository describes itself as: BrainPilot: Automating Brain Discovery with Agentic Research. The licence is AGPL-3.0.

When your agent uses it

  • Tasks that involve Statistics

Example prompts

  • “/share-usage”

Requirements

  • Python 3

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. Confirm Privacy Understanding
  2. Analyze Claude Code Logs
  3. Analyze Claude Code Logs
  4. Ask User for Optional Information
  5. Generate Report
  6. Generate Report
  7. Check GitHub CLI Prerequisites
  8. Save and Present
  9. Handle Edge Cases

What it can do on your machine

Read from SKILL.md and the folder at commit 93f6855. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • cli.github.com
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Share Usage loads about 3.2k tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 911 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~32
When it runs · the whole SKILL.md, loaded when a task matches
~3.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from NeuroAIHub/BrainPilot at commit 93f6855, republished under its AGPL-3.0 licence (© NeuroAIHub). 911 words, ~3,161 tokens.

Download SKILL.mdSave it as .claude/skills/share-usage/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
share-usage
description
Generate and share anonymized skill usage statistics to help the community understand which skills are most valuable
review_status
ai-generated
version
1.0.0

Share Skill Usage Statistics

This skill helps you generate and share anonymized statistics about your skill usage with the community. This helps maintainers understand which skills are most valuable and guides future development.

When to Use

Use this skill when you want to:

  • Share your experience with the skill repository
  • Help the community understand which skills are most useful
  • Contribute usage data to improve skill development priorities
  • Celebrate your research productivity with the community

What Information Will Be Shared

Before generating the report, you should understand exactly what will be shared:

✅ Information That WILL Be Shared
  1. Skill usage counts - How many times you used each skill
  2. Skill names - Which skills from this repository you used
  3. Time period - The date range of your usage data
  4. General statistics - Total skill calls, unique skills used
  5. Optional context - Your research domain (if you choose to provide it)
❌ Information That Will NOT Be Shared
  1. Your identity - No usernames, emails, or identifying information
  2. Project details - No file paths, code, or project names
  3. Conversation content - No actual research questions or discussions
  4. Timestamps - Only aggregated date ranges, not specific times
  5. System information - No machine names, IPs, or system details
  6. Other tools - Only skills from this repository are counted

Privacy Notice

This skill generates a completely anonymized report. The report contains ONLY:

  • Skill names and usage counts
  • Date range (e.g., "Last 30 days")
  • Optional research domain tag (e.g., "fMRI analysis", "EEG research")

No personally identifiable information, project details, or conversation content is included.

How to Use

When the user invokes this skill (e.g., "share my skill usage" or "generate usage report"), follow these steps:

Step 1: Confirm Privacy Understanding

First, present the privacy information to the user and confirm they understand:

Say to the user:

"I'll generate an anonymized report of your skill usage from this repository. The report will include:

✅ What WILL be included:

  • Skill names and usage counts
  • Date range (e.g., "2024-01-01 to 2024-03-01")
  • Optional research domain tag (if you provide it)
  • Optional comments (if you provide them)

❌ What will NOT be included:

  • Your identity (no usernames, emails, names)
  • Project details (no file paths, code, project names)
  • Conversation content (no research questions or discussions)
  • Specific timestamps (only date ranges)
  • System information (no machine names, IPs)
  • Skills from other repositories

The report is completely anonymized and sharing is optional. Shall I proceed?"

Wait for user confirmation before proceeding.

Step 2: Analyze Claude Code Logs

Implementation Steps

When this skill is invoked, follow these steps:

Step 1: Analyze Claude Code Logs

Create a Python script inline to analyze logs:

python
import json
import re
from pathlib import Path
from collections import Counter
from datetime import datetime

def analyze_usage(claude_dir="~/.claude", days=None):
    """Extract skill usage from Claude Code logs."""
    claude_dir = Path(claude_dir).expanduser()

    all_skills = []
    all_timestamps = []

    # Parse history.jsonl
    history_path = claude_dir / "history.jsonl"
    if history_path.exists():
        with open(history_path, 'r', encoding='utf-8', errors='ignore') as f:
            for line in f:
                if '"name":"Skill"' in line or '"name": "Skill"' in line:
                    match = re.search(r'"skill":\s*"([^"]+)"', line)
                    if match:
                        skill_name = match.group(1)
                        # Only count skills from this repository
                        if skill_name.startswith('awesome-cognitive-and-neuroscience-skills:'):
                            clean_name = skill_name.replace('awesome-cognitive-and-neuroscience-skills:', '')
                            all_skills.append(clean_name)

                # Extract timestamp
                timestamp_match = re.search(r'"timestamp":(\d+)', line)
                if timestamp_match:
                    ts = int(timestamp_match.group(1)) / 1000
                    all_timestamps.append(datetime.fromtimestamp(ts))

    # Parse debug files
    debug_dir = claude_dir / "debug"
    if debug_dir.exists():
        for debug_file in debug_dir.glob("*.txt"):
            if days:
                file_age = (datetime.now().timestamp() - debug_file.stat().st_mtime) / 86400
                if file_age > days:
                    continue

            with open(debug_file, 'r', encoding='utf-8', errors='ignore') as f:
                content = f.read()
                matches = re.finditer(r'"name":\s*"Skill".*?"skill":\s*"([^"]+)"', content, re.DOTALL)
                for match in matches:
                    skill_name = match.group(1)
                    if skill_name.startswith('awesome-cognitive-and-neuroscience-skills:'):
                        clean_name = skill_name.replace('awesome-cognitive-and-neuroscience-skills:', '')
                        all_skills.append(clean_name)

    if not all_skills:
        return None

    # Calculate statistics
    skill_counts = Counter(all_skills)

    if all_timestamps:
        min_date = min(all_timestamps)
        max_date = max(all_timestamps)
        date_range = f"{min_date.strftime('%Y-%m-%d')} to {max_date.strftime('%Y-%m-%d')}"
        days_span = (max_date - min_date).days
    else:
        date_range = "Unknown"
        days_span = None

    return {
        'skills': skill_counts,
        'total_calls': len(all_skills),
        'unique_skills': len(skill_counts),
        'date_range': date_range,
        'days_span': days_span,
        'most_used': skill_counts.most_common(1)[0] if skill_counts else None
    }
Step 3: Ask User for Optional Information

Use the AskUserQuestion tool to gather optional information:

Question 1: Research Domain

  • Header: "Domain"
  • Question: "What research domain do you work in? (This helps others find relevant skills)"
  • Options:
    • "fMRI analysis"
    • "EEG/MEG research"
    • "Cognitive modeling"
    • "Behavioral experiments"
    • "Other (specify in notes)"

Question 2: Comments

  • Header: "Experience"
  • Question: "Would you like to add comments about your experience with these skills?"
  • Options:
    • "Yes, I'll add comments"
    • "No comments"

Question 3: Sharing Preference

  • Header: "Action"
  • Question: "What would you like to do with the report?"
  • Options:
    • "Share to GitHub Discussions (Recommended)"
    • "Save locally only"
    • "Just preview, don't save"

If user chose "Yes" for comments, ask them to provide their comments in a follow-up message.

Show full SKILL.md (362 more words)Show less
Step 4: Generate Report
Step 4: Generate Report

Create the markdown report with this exact format:

markdown
# Skill Usage Report

**Time Period**: [date_range] ([days_span] days)
**Research Domain**: [user_provided or "Not specified"]

## Summary
- Total skill calls: [total_calls]
- Unique skills used: [unique_skills]
- Most used skill: [skill_name] ([count] times)

## Top 10 Skills
1. [skill]: [count] uses
2. [skill]: [count] uses
...

## All Skills Used
- [skill]: [count]
- [skill]: [count]
...

## User Comments
[user_comments or "No comments provided"]

---
*This report was generated using the `share-usage` skill. All data is anonymized.*
Step 5: Check GitHub CLI Prerequisites

Before offering to share, check if gh CLI is available:

bash
gh auth status

If gh is not installed or not authenticated, inform the user:

To share usage reports directly, you need the GitHub CLI. Install it from https://cli.github.com/ and run gh auth login. I can save the report locally for you to post manually, or you can set up gh and run this skill again.

Step 6: Save and Present
  1. Save the report to the current working directory as skill-usage-report-[YYYYMMDD].md

  2. Display the report to the user in full

  3. Provide next steps based on user's preference:

    • If "Share to GitHub Discussions" (and gh is available):

      Get repository and category IDs:

      bash
      gh api graphql -f query='
      {
        repository(owner: "HaoxuanLiTHUAI", name: "awesome_cognitive_and_neuroscience_skills") {
          id
          discussionCategories(first: 10) {
            nodes {
              id
              name
            }
          }
        }
      }'

      Create the discussion:

      bash
      gh api graphql -f query='
      mutation {
        createDiscussion(input: {
          repositoryId: "REPO_ID",
          categoryId: "SHOW_AND_TELL_CATEGORY_ID",
          title: "Skill Usage Report - [Research Domain]",
          body: "REPORT_CONTENT_HERE"
        }) {
          discussion {
            url
          }
        }
      }'

      On success:

      ✅ Report saved to: skill-usage-report-[date].md
      🎉 Shared to GitHub Discussions: [URL]
      
      Thank you for contributing to the community!

      On failure:

      ✅ Report saved to: skill-usage-report-[date].md
      ❌ Failed to post to GitHub Discussions
      
      You can manually share at:
      https://github.com/HaoxuanLiTHUAI/awesome_cognitive_and_neuroscience_skills/discussions/new?category=show-and-tell
    • If "Save locally only":

      ✅ Report saved to: skill-usage-report-[date].md
      
      Your report is saved locally. Sharing is completely optional - you can share it later if you'd like!
    • If "Just preview, don't save":

      📊 Here's your usage report (not saved):
      
      [Display report]
      
      If you'd like to save or share this later, just run this skill again!
Step 7: Handle Edge Cases

If no skill usage found:

❌ No skill usage found from this repository.

This could mean:
- You haven't used any skills from awesome-cognitive-and-neuroscience-skills yet
- The Claude Code logs don't contain skill usage data
- The log format may have changed

Try using some skills first, then run this report again!

If Claude directory not found:

❌ Could not find Claude Code directory at ~/.claude/

Please check your Claude Code installation or specify a different directory.

Example Report

Here's what a typical usage report looks like:

markdown
# Skill Usage Report

**Time Period**: 2024-01-15 to 2024-03-03 (48 days)
**Research Domain**: fMRI analysis

## Summary
- Total skill calls: 47
- Unique skills used: 12
- Most used skill: fmri-glm-analysis-guide (15 times)

## Top 10 Skills
1. fmri-glm-analysis-guide: 15 uses
2. fmri-preprocessing-pipeline-guide: 8 uses
3. cogsci-statistics: 6 uses
4. neuroimaging-power-guide: 4 uses
5. fmri-task-design-guide: 3 uses
6. cogsci-visualization: 3 uses
7. research-literacy: 2 uses
8. cognitive-paradigm-design: 2 uses
9. brain-connectivity-modeler: 2 uses
10. contribute-skill: 1 use

## All Skills Used
- brain-connectivity-modeler: 2
- cognitive-paradigm-design: 2
- cogsci-statistics: 6
- cogsci-visualization: 3
- contribute-skill: 1
- fmri-glm-analysis-guide: 15
- fmri-preprocessing-pipeline-guide: 8
- fmri-task-design-guide: 3
- neuroimaging-power-guide: 4
- paper-to-skill: 1
- research-literacy: 2
- verify-skill: 1

## User Comments
These skills have been incredibly helpful for my fMRI analysis pipeline. The GLM analysis guide saved me hours of debugging by helping me understand proper contrast specification. The preprocessing guide helped me make informed decisions about motion correction parameters.

---
*This report was generated using the `share-usage` skill. All data is anonymized.*

Important Notes

  • Privacy First: This skill respects user privacy completely. All data is anonymized.
  • Review Before Sharing: Users can review and edit the report before sharing.
  • Sharing is Optional: Sharing is completely voluntary - users can keep reports private.
  • Repository-Specific: Only skills from this repository are counted (excludes superpowers, scientific-writer, etc.).
  • Community Value: Reports help maintainers prioritize skill development and help others discover useful skills.
  • No Sensitive Data: No personal information, project details, or conversation content is included.

© NeuroAIHub, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in packages/skills/skills/01_Meta-Skills/share-usage of NeuroAIHub/BrainPilot.

  • SKILL.md
  • README.md

Open the folder on GitHubat commit 93f6855

Compare with similar skills

Share Usage next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Share Usage compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Share Usage this skillNeuroAIHub/BrainPilot1.1k—~3.2kAutomated safety check: PassAGPL-3.0
Sandbox Benchvercel/next.js143k—~4.1kAutomated safety check: PassMIT
Statistical Analysisspacering-net/codeg3.9k3 repos~5kAutomated safety check: PassMIT
StatsmodelszLanqing/codex-claude-academic-skills4.7k15 repos~4.9kAutomated safety check: PassBSD-3-Clause
AI Daily DigestvigorX777/ai-daily-digest1.6k—~1.3kAutomated safety check: PassNone
Statistical Powerspacering-net/codeg3.9k1 repos~3.6kAutomated safety check: NotesMIT

Similar skills

  • Sandbox Bench

    vercel/next.js

    Official

    Benchmark React or Next.js changes on Vercel Sandbox VMs with paired A/B statistics: react PR/commit vs base, or Next.js PR/commit vs base, measured end-to-end through the bench/render-pipeline app…

    143k GitHub stars~4.1k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Statistical Analysis

    spacering-net/codeg

    Guided statistical analysis for research data - test selection, assumption checking, effect sizes, power analysis, Bayesian alternatives, and APA-formatted reporting.

    3.9k GitHub starsUsed in 3 repos~5k tokens
    Data & AnalyticsAuto-check passed
  • Statsmodels

    zLanqing/codex-claude-academic-skills

    Statistical models library for Python. An agent skill from zLanqing/codex-claude-academic-skills.

    4.7k GitHub starsUsed in 15 repos~4.9k tokens
    Data & AnalyticsAuto-check passed
  • AI Daily Digest

    vigorX777/ai-daily-digest

    Fetches RSS feeds from 90 top Hacker News blogs (curated by Karpathy), uses AI to score and filter articles, and generates a daily digest in Markdown with Chinese-translated titles, category…

    1.6k GitHub stars~1.3k tokensUpdated 7 mo ago
    Data & AnalyticsAuto-check passed
  • Statistical Power

    spacering-net/codeg

    Sample-size and statistical power calculations for planning studies.

    3.9k GitHub starsUsed in 1 repo~3.6k tokens
    Data & AnalyticsAuto-check: notes
  • Agent Session Monitor

    higress-group/higress

    Real-time agent conversation monitoring - monitors Higress access logs, aggregates conversations by session, tracks token usage.

    9.5k GitHub stars~3.3k tokensUpdated 2 days ago
    Data & AnalyticsAuto-check passed

More from NeuroAIHub/BrainPilot

All 59 skills in this repo
  • Deeplabcut

    NeuroAIHub/BrainPilot

    Toolbox for markerless animal pose estimation with DeepLabCut.

    1.1k GitHub stars~1.7k tokensUpdated 7 days ago
    Auto-check passed
  • Fmriprep

    NeuroAIHub/BrainPilot

    Preprocess task-based or resting-state fMRI data with fMRIPrep — a robust, BIDS-App preprocessing pipeline built on FSL, ANTs, FreeSurfer, AFNI, and Nilearn.

    1.1k GitHub stars~4.1k tokensUpdated 7 days ago
    Auto-check passed
  • Mne Python Guide

    NeuroAIHub/BrainPilot

    Domain-validated pipeline guidance for EEG/MEG data analysis using MNE-Python: data loading, preprocessing (filtering, ICA, re-referencing), epoching, ERP/ERF computation, time-frequency…

    1.1k GitHub stars~2.3k tokensUpdated 7 days ago
    Auto-check passed
  • Netneurotools Guide

    NeuroAIHub/BrainPilot

    Domain-validated guidance for network neuroscience analysis using netneurotools: datasets, brain network metrics, connectivity consensus, modularity, spatial statistics, null models, and cortical…

    1.1k GitHub stars~2.6k tokensUpdated 7 days ago
    Auto-check passed
  • Nature Figure

    NeuroAIHub/BrainPilot

    Submission-grade Nature/high-impact journal figure workflow for Python or R.

    1.1k GitHub starsUsed in 1 repo~1.3k tokens
    Auto-check passed
  • Pycortex Guide

    NeuroAIHub/BrainPilot

    Domain-validated guidance for cortical surface visualization and brain surface rendering of fMRI data using pycortex: data types (Volume, Vertex, Dataset), 2D cortical flatmaps, 3D WebGL brain…

    1.1k GitHub stars~1.6k tokensUpdated 7 days ago
    Auto-check passed

Questions about Share Usage

What does Share Usage do?

Generate and share anonymized skill usage statistics to help the community understand which skills are most valuable. Share Usage is an agent skill from NeuroAIHub/BrainPilot.

When should I use Share Usage?

Share Usage fits situations like: tasks that involve Statistics.

How do I install Share Usage in Claude Code?

Run `npx skills add NeuroAIHub/BrainPilot --skill share-usage -a claude-code`. Or copy the skill folder (packages/skills/skills/01_Meta-Skills/share-usage in NeuroAIHub/BrainPilot) into .claude/skills/share-usage in your project. Claude Code loads it when a task matches its description.

How do I install Share Usage in Codex?

Run `npx skills add NeuroAIHub/BrainPilot --skill share-usage -a codex`. Or copy the skill folder (packages/skills/skills/01_Meta-Skills/share-usage in NeuroAIHub/BrainPilot) into .agents/skills/share-usage in your project. Codex loads it when a task matches its description.

Can I use Share Usage in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add NeuroAIHub/BrainPilot --skill share-usage -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/share-usage, .gemini/skills/share-usage, .github/skills/share-usage and .opencode/skills/share-usage in your project.

What does Share Usage need to run?

Going by SKILL.md and its folder, Share Usage needs the command-line tools its instructions call (gh). Our summary lists: Python 3.

Does Share Usage access the network?

SKILL.md names 2 domains. As links in the text: cli.github.com and github.com. This is read from the text; nothing was executed.

Is Share Usage safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Share Usage use?

Share Usage is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Share Usage use?

About 3.2k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Share Usage?

Skills that share tags, products or a category with Share Usage: Sandbox Bench (vercel/next.js, 143k stars), Statistical Analysis (spacering-net/codeg, 3.9k stars), Statsmodels (zLanqing/codex-claude-academic-skills, 4.7k stars) and AI Daily Digest (vigorX777/ai-daily-digest, 1.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Share Usage?

NeuroAIHub (a GitHub organization) maintains it in NeuroAIHub/BrainPilot, which has 1,062 GitHub stars. The repository holds 59 skills in this directory. The repository was last updated on October 2, 2026.

Source: NeuroAIHub/BrainPilot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.