shepsci/kaggle-skill / skills/kaggle
kaggle
FlaggedUnified Kaggle skill. Use when the user explicitly mentions Kaggle, kaggle.com, a Kaggle URL, Kaggle competitions, Kaggle datasets/models/notebooks, Kaggle forums/discussions/writeups, Kaggle benchmarks, hackathons hosted on Kaggle, Kaggle badges, or Kaggle account setup. Do not use for generic ML, GPU/TPU, notebook, dataset, benchmark, or data-science tasks unless the user clearly ties them to Kaggle.
modules/competitions/scripts/competition_pages.py
View on GitHub#!/usr/bin/env python3
"""Read the pages of a Kaggle competition: rules, evaluation, data, timeline.
competition_pages.py titanic list the pages and their sizes
competition_pages.py titanic --page evaluation print one page as text
competition_pages.py titanic --all print every page
The pages are long: a rules page alone is 6,000 to 9,000 tokens. Start with the
list, then read the page that answers the question. For the metric, the
deadline and the limits, competition_brief.py is one short call.
Public competitions need no credential. A token, when one is configured, is
sent so that competitions you have joined privately also resolve. Works for
hackathons too; hackathon_overview.py adds the track and judging pages.
"""
from __future__ import annotations
import argparse
import sys
from pathlib import Path
SKILL_ROOT = Path(__file__).resolve().parents[3]
sys.path.insert(0, str(SKILL_ROOT))
from shared import competition, credentials, script # noqa: E402
TOOL = competition.PAGES_TOOL
def main(argv: list[str] | None = None) -> int:
parser = argparse.ArgumentParser(
description="Read the pages of a Kaggle competition: rules, evaluation, data, timeline.",
epilog="No credential is needed for a public competition.",
)
script.add_competition(parser)
competition.add_page_arguments(parser)
args = parser.parse_args(argv)
(slug,) = script.positionals(parser, args)
credentials.load_configured_env_file()
result = competition.fetch_pages(slug)
if not result.ok:
return result.fail(competition=slug, indent=2 if args.pretty else None)
return competition.print_pages(args, slug, result, tool=TOOL)
if __name__ == "__main__":
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |