code-contribution

A contribution guide for adding code to Agent Topic Lab. It explains the project’s frontend and backend locations, commit-message format, and expected checks.

In plain words
What is it for?
Implementing features, fixing bugs, adding tests, preparing pull requests, and following the project’s commit and verification workflow.
Why use it?
It reduces uncertainty about where changes belong, how commits should be named, and how to check that a contribution builds or tests correctly.

Skill for Claude CodeCodexCursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/tashangkd/tashan-topiclab/code-contribution
Any agent
npx skills add TashanGKD/Tashan-TopicLab --skill code-contribution
Clone the repo
git clone --depth 1 https://github.com/TashanGKD/Tashan-TopicLab

Made for: Claude Code, Codex, Cursor.

Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,227 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00046 $0.01227
Opus 5 $0.00023 $0.00613
Sonnet 5 $0.00009 $0.00245
Haiku 4.5 $0.00005 $0.00123

Measured 3d ago against content hash c4668a4ee895, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-contribution scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/skills/code-contribution/SKILL.md · 117 lines

How it starts

The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code Contribution Guide

When contributing code to Agent Topic Lab, follow this workflow.

Project Structure

  • Frontend: frontend/ — React 18 + TypeScript + Vite
  • Backend: backend/Resonnet submodule (FastAPI, Python 3.11+)

Commit Convention

Use Conventional Commits:

<type>(<scope>): <short description>

[optional body]

Types: feat, fix, docs, refactor, test, chore

Scopes (preferred):

  • frontend — UI, components, pages, API client
  • api — Backend API routes (in backend/app/api/)
  • agent — Backend agent logic (in backend/app/agent/)
  • posts, topics, experts, moderator — Domain-specific

Examples:

feat(frontend): add reply button to post thread
fix(api): handle empty body in mention reply
docs(readme): add backend link to Resonnet
test(api): add 404 cases for topic experts
chore: update backend submodule

Rules:

  • Lowercase subject; no period at end
  • Breaking changes: feat(api)!: remove deprecated field

Unit Tests

Frontend

  • Run: cd frontend && npm test (if test script exists)
  • Lint: cd frontend && npm run build (TypeScript + Vite)
  • Follow existing component patterns; new logic should have tests when feasible

Backend (Resonnet)

  • Required: New or changed logic must have corresponding tests
  • Run before PR: cd backend && pytest -q -m "not integration"
  • CI: Must pass unit tests
  • Fixtures: Use tmp_path for isolated workspace; monkeypatch.setenv("WORKSPACE_BASE", ...)
  • API tests: See backend/tests/API_TEST_GUIDE.md

Integration tests (Agent SDK):

  • Mark with @pytest.mark.integration and @pytest.mark.slow
  • Require real .env; ANTHROPIC_API_KEY must not be test
  • Run: cd backend && pytest tests/test_agent_sdk.py -m integration -v -s
  • Full local CI: cd backend && bash scripts/ci_local.sh

Read the full file on GitHub · 117 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 117 lines · 46 tokens per session scan A c4668a4ee895

Subscribe to this mod's changes

code-contribution is a skill published in the GitHub repository TashanGKD/Tashan-TopicLab (5 stars, last pushed 8d ago), licensed MIT. It adds 46 tokens to every session and 1,227 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens

oma-scholar

Scholarly research companion using Knows sidecar spec (.knows.yaml). Generates, validates, reviews, queries, and compares structured research-paper sidecars, and fetches them from knows.academy. Use for academic literature search, survey synthesis, paper authoring assistance, and peer review with token-efficient…

first-fluke/oh-my-agent · 73 tokens

github

Interact with GitHub (issues, PRs, repos, releases) using the gh CLI. Use when asked to read or write GitHub state — open an issue, fetch PR diff, comment, list runs, etc.

Team-Commonly/commonly · 49 tokens

agentic-workflow-designer

Conversational skill that interviews users to design new agentic workflows.

bradygaster/squad · 19 tokens

creating-skills

Guide for creating Claude Code skills following Anthropic's official best practices. Use when user wants to create a new skill, build a skill, write SKILL.md, update an existing skill, or needs skill creation guidelines. Provides structure, frontmatter fields, naming conventions, and new features like dynamic context…

redai-infra/Relax · 70 tokens

task-planning

计算任务 gap 并产出下一步可执行子任务 List[TaskSpec];gap 已闭返回空数组。对齐案例剧本 gwqie46v7hzr1w6h(存储行业尽调)确定式分解。.

inclusionAI/Avernet · 58 tokens