agentleFS
topprismdatatopprismdata/cultivating-ml-agent/skills/examples/kaggle-discussion-search/SKILL.md

kaggle-discussion-search

Skill5 starsChanged 36 days agoMITView on GitHub

Use when looking for top-solution tricks on a Kaggle competition, when needing CV-LB gap discussions, when validating a strategy against community experience, or when seeking hyperparameter advice from competition winners. Triggers on phrases like "what did top scorers do", "CV-LB gap in this competition", "winning trick for X", or when starting any Kaggle competition.

The file

Files
SKILL.md

Kaggle Discussion Search (Community Knowledge)

Context

Kaggle discussions contain non-official, practitioner-tested wisdom that often beats academic papers in practical value. Top solution write-ups, hyperparameter choices, CV-LB gap analyses — all are public. This skill teaches the agent to mine this gold mine at decision time, especially when starting a new competition or validating an existing skill against community evidence.

The core insight: paper says "5-10% improvement", Kaggle discussion says "actually 2% on LB, watch out for X". Different signal, complementary.

Guidance

Basic Usage

from framework.src.knowledge import KaggleForum

kf = KaggleForum()
# Get top-voted discussions for a specific competition
top_discs = kf.get_top_solutions("spaceship-titanic", top_n=20)

for d in top_discs:
    print(f"[{d.votes}↑ {d.comments_count}💬] {d.title}")
    print(f"  by {d.author}: {d.url}")

Search by Keyword

# Find discussions mentioning a specific technique
discs = kf.search_competition(
    competition_slug="store-sales-time-series-forecasting",
    query="CatBoost ensemble",
    sort_by="votes"
)

Global Search (Cross-Competition)

# Search across all Kaggle discussions
discs = kf.search_global("CV-LB gap", max_results=20)

Decision Workflow

Starting new Kaggle competition?
  ↓
1. kf.get_top_solutions(competition_slug, top_n=30)
   → Read the top-voted discussions
   → Note: hyperparameter choices, CV strategies, common pitfalls
  ↓
2. kf.search_competition(slug, query="LB score CV correlation")
   → Find CV-LB gap analysis specific to this competition
  ↓
3. Cross-reference with skills:
   → cv-lb-gap-acknowledgment (general principle)
   → time-series-walk-forward-validation (if time series)
  ↓
4. After submission, search for related discussions:
   → kf.search_competition(slug, query="your technique here")
   → Validate your approach

Combine with Papers

from framework.src.knowledge import KnowledgeAggregator

agg = KnowledgeAggregator()
# One-shot: papers + Kaggle + vault combined
report = agg.search_all("feature engineering saturation", max_per_source=10)
# report.scholar_papers, report.arxiv_papers, report.kaggle_discs

Why This Matters

SourceStrengthWeakness
arxiv paperNovel, rigorous, citableOften idealistic, not battle-tested
Kaggle discussionReal-world validated, hyperparameter-specificAncedotal, scattered
Skills (static)Curated, distilledCutoff knowledge

Real example: The feature-engineering-saturation-detection skill was created after seeing multiple Kaggle discussions warning about feature engineering saturation in tabular competitions — combining community signal with formal theory.

When to Apply

When to Use

  • Starting any new Kaggle competition (read top solutions first)
  • Looking for hyperparameter advice from competition winners
  • Validating whether your CV score will translate to LB
  • Finding "non-obvious" tricks (post-processing, ensemble weights, etc.)
  • Comparing your approach to community consensus

When NOT to Use

  • Pure research / academic projects (no Kaggle context)
  • When network unavailable
  • For deep technical theory (use arxiv instead)
  • Privacy-sensitive contexts

Notes

  • Sort by votes first — top-voted discussions are usually most informative
  • Read comments, not just post — often the real insight is in comments
  • Cross-check across competitions — same author posting on multiple competitions is a strong signal
  • Combine with paper search — best insights usually combine theory (arxiv) + practice (Kaggle)
  • Cache results in vault (importance=0.7+) for future reference
  • See also: arxiv-paper-search, cv-lb-gap-acknowledgment, memory-hierarchy-management

References

  • Implementation: framework/src/knowledge/kaggle_forum.py
  • Aggregator: framework/src/knowledge/aggregator.py
  • Kaggle discussions: https://www.kaggle.com/discussions
  • Real skills enabled by Kaggle mining: feature-engineering-saturation-detection, cv-lb-gap-acknowledgment, ml-sweet-spot
  • Related skill: arxiv-paper-search (complementary data source)

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.