Agent skill

Writing Tests

by maread99 in maread99/market_prices

Instructions and guidance on writing tests. An agent skill from maread99/market_prices.

MITAuto-check passedTesting & QA

Install Writing Tests

skills CLI
$ npx skills add maread99/market_prices --skill writing-tests -a claude-code

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

GitHub CLI
$ gh skill install maread99/market_prices writing-tests --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/maread99/market_prices.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/writing-tests .claude/skills/writing-tests && 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
writing-tests
GitHub stars
106
Token cost
~315 tokens
SKILL.md length
180 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Instructions and guidance on writing tests. An agent skill from maread99/market_prices.

  • Testing & QA work in your project
  • SKILL.md covers Location, Framework, Creating Test Datasets and Writing tests, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Writing Tests is an agent skill from maread99/market_prices. Instructions and guidance on writing tests

Its SKILL.md is about 320 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA. It works with Python, pandas, yfinance and Bitcoin. The repository describes itself as: Get meaningful OHLCV datasets. The licence is MIT.

When your agent uses it

  • Testing & QA work in your project

Example prompts

  • “Use the writing-tests skill to instruction and guidance on writing tests. An agent skill from maread99/market_prices”
  • “/writing-tests”

What it can do on your machine

Read from SKILL.md and the folder at commit abfb3cb. 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

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    No URLs in SKILL.md.

    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

Writing Tests loads about 315 tokens when it runs. Until then it costs about 14 tokens; SKILL.md has 180 words of instructions outside code blocks.

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

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 maread99/market_prices at commit abfb3cb, republished under its MIT licence (© maread99). 180 words, ~315 tokens.

Download SKILL.mdSave it as .claude/skills/writing-tests/SKILL.md (or your agent's skills folder).
name
writing-tests
description
Instructions and guidance on writing tests

Location

  • tests are in tests/.
  • doctests can be used instead of unit tests if the doctest fully covers the function/method's functionality.
  • fixtures shared by the whole suite are located in tests/conftest.py; fixtures shared by the tests of one package are located in the conftest.py of that package's test directory.

Framework

  • tests should assume use of the pytest framework.
  • use appropriate features of the pytest framework, to include fixtures and mocking.
  • a fixture that returns a class is named in CapWords, as a class is; every other fixture is named in snake_case.

Creating Test Datasets

  • define test data to include values at the limits of where the output of tested functions/methods changes.

Writing tests

  • tests should be written to test the INTENDED implementation with a focus on finding bugs.
  • NEVER assume that the implementation is correct and that a test should pass.
  • always test on and either side of limits where output changes.
  • always seek to identify and test edge cases.

Documentation

  • if including a docstring for a test then docstring should start with an imperative, for example 'Verify' or 'Test'.

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

Files

Just SKILL.md in .agents/skills/writing-tests of maread99/market_prices.

Open the folder on GitHubat commit abfb3cb

Compare with similar skills

Writing Tests 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.

Writing Tests compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Writing Tests this skillmaread99/market_prices106—~315Automated safety check: PassMIT
Universal Data Loaderfranklee16/academic-research-skills223—~738Automated safety check: PassNone
Minute-Level Data and BacktestingHKUDS/Vibe-Trading35k—~868Automated safety check: PassMIT
Release Evidence WorkflowAli-Marandi/ClimateDataAnalyzer107—~1.6kAutomated safety check: PassMIT
Performing Threat Landscape Assessment For Sectormukul975/Anthropic-Cybersecurity-Skills34k—~3.2kAutomated safety check: PassApache-2.0
Memory Optimizationbenchflow-ai/skillsbench1.8k—~1.5kAutomated safety check: PassApache-2.0

Similar skills

  • Universal Data Loader

    franklee16/academic-research-skills

    Downloads data from publicly accessible databases (FRED, World Bank, Yahoo Finance, Kaggle, etc.) or REST APIs by generating and executing custom Python scripts.

    223 GitHub stars~738 tokensUpdated 19 days ago
    Backend & APIsAuto-check passed
  • Fetches minute candlesticks from OKX, Tushare or yfinance, computes intraday VWAP, TWAP and volume distribution, and runs minute-level backtests by setting an interval in config.json.

    35k GitHub stars~868 tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Release Evidence Workflow

    Ali-Marandi/ClimateDataAnalyzer

    Build an auditable release-evidence workflow for a desktop or packaged application.

    107 GitHub stars~1.6k tokensUpdated 1 mo ago
    Data & AnalyticsAuto-check passed
  • Performing Threat Landscape Assessment For Sector

    mukul975/Anthropic-Cybersecurity-Skills

    Conducts a sector-specific threat landscape assessment (financial, healthcare, energy, government, etc.) by profiling targeting threat actors, mapping attack vectors and MITRE ATT&CK TTPs with the…

    34k GitHub stars~3.2k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Memory Optimization

    benchflow-ai/skillsbench

    Optimize Python code for reduced memory usage and improved memory efficiency.

    1.8k GitHub stars~1.5k tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • CSV Data Summarizer

    zrt-ai-lab/opencode-skills

    CSV数据分析技能。使用Python和pandas分析CSV文件,生成统计摘要和快速可视化图表。当用户上传或提到CSV文件、需要分析表格数据时自动使用。

    287 GitHub stars~577 tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed

More from maread99/market_prices

  • Dependencies Management

    maread99/market_prices

    instructions for updating and managing project dependencies (including Github actions).

    106 GitHub stars~2.4k tokensUpdated 22 days ago
    Auto-check: notes

Questions about Writing Tests

What does Writing Tests do?

Instructions and guidance on writing tests. An agent skill from maread99/market_prices. Writing Tests is an agent skill from maread99/market_prices.

When should I use Writing Tests?

Writing Tests fits situations like: testing & QA work in your project.

How do I install Writing Tests in Claude Code?

Run `npx skills add maread99/market_prices --skill writing-tests -a claude-code`. Or copy the skill folder (.agents/skills/writing-tests in maread99/market_prices) into .claude/skills/writing-tests in your project. Claude Code loads it when a task matches its description.

How do I install Writing Tests in Codex?

Run `npx skills add maread99/market_prices --skill writing-tests -a codex`. Or copy the skill folder (.agents/skills/writing-tests in maread99/market_prices) into .agents/skills/writing-tests in your project. Codex loads it when a task matches its description.

Can I use Writing Tests 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 maread99/market_prices --skill writing-tests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/writing-tests, .gemini/skills/writing-tests, .github/skills/writing-tests and .opencode/skills/writing-tests in your project.

What does Writing Tests need to run?

SKILL.md names no scripts, command-line tools or credentials: Writing Tests is instructions for the agent only.

Does Writing Tests access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Writing Tests 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 Writing Tests use?

Writing Tests is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Writing Tests use?

About 315 tokens (SKILL.md is roughly 1.3k 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 Writing Tests?

Skills that share tags, products or a category with Writing Tests: Universal Data Loader (franklee16/academic-research-skills, 223 stars), Minute-Level Data and Backtesting (HKUDS/Vibe-Trading, 35k stars), Release Evidence Workflow (Ali-Marandi/ClimateDataAnalyzer, 107 stars) and Performing Threat Landscape Assessment For Sector (mukul975/Anthropic-Cybersecurity-Skills, 34k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Writing Tests?

maread99 (a GitHub user) maintains it in maread99/market_prices, which has 106 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on September 15, 2026.

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