跳到正文
cccskills
免费在 GitHub 公开

code

Implement or modify Python, JavaScript, SCSS, templates, CLI, HTTP, logging, or tests. Use for code changes that require architecture, style, testing, and verification conventions.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md3.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Code in junior.guru

Design and style

  • Aim for Clean Architecture (textual slides): imperative shell wrapping functional core.
  • Use Python type hints everywhere.
  • Keep cyclomatic complexity low.
  • Order module functions from highest-level entry points to progressively smaller helpers. Exception: functions that must exist earlier because module import uses them.
  • Use httpx2 for HTTP requests. Do not add direct use of requests or plain httpx; those remain transitive dependencies.
  • Use click for CLI definitions.
  • Modern Python and walrus operators are welcome. Follow Ruff UP rules.
  • Keep Ruff target version compatible with requires-python.
  • In key= callbacks such as sorted(), max(), and min(), prefer attrgetter or itemgetter over lambda when applicable.
  • Do not use if TYPE_CHECKING: blocks. Prefer direct imports and annotations.
  • Do not place imports inside functions or methods. Keep them at module level.
  • When a comment at the start of a function documents the whole function, write it as a docstring, not a leading # comment block. Keep # comments for individual steps inside the function.
  • In SCSS, prefer $spacer over equivalent map.get($spacers, 3).

Tests

  • Develop using red-green TDD.
  • Favor many fast unit tests for functional core and few integration tests for imperative shell.
  • Tests must not depend on network, current time, or similar external state. Networked smoke/e2e tests must not run by default.
  • For remote HTML, download representative pages as fixtures under tests and test against those fixtures. Add multiple fixtures for meaningful edge cases.
  • Aim for one descriptive assertion per test function unless impractical, such as checking several small parts of one complex structure.
  • For stub objects, prefer types.SimpleNamespace over named tuples. Exception: use a named tuple when the stub must be hashable, e.g. when collected into a set.
  • Use @pytest.mark.parametrize when applicable. Include spaces after commas in parameter names, for example "secondary_school, university, expected".

Logging

  • Set LOG_LEVEL=debug to show DEBUG logs. Default level is INFO; selected muted loggers default to WARNING. Configuration lives in loggers.py.
  • Log potentially sensitive diagnostic details only at DEBUG because CI normally logs INFO.
  • Never log actual secrets or other data unsafe for CI output. CI may temporarily enable DEBUG while diagnosing failures that cannot be reproduced locally.

Verification

  • After any code changes, run uv run jg tidy --code before finishing.
  • Run uv run jg test only after substantial Python or JavaScript changes.
  • After major SCSS or JavaScript changes, consider uv run jg web build-static to catch asset build failures.
  • After template, context.py, or related rendering changes, consider uv run jg web build to verify site generation.

Sync safety

Never run uv run jg sync ... without asking user first. When authorized and necessary, use uv run jg sync --no-deps ... to avoid triggering full dependency pipeline.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

analytics

免费

Look up junior.guru web analytics (traffic, pageviews, visitors, top pages, referrers, countries, UTM sources, devices, events) via public Simple Analytics, and Google search performance (queries, impressions, clicks, positions, CTR) from Search Console data saved in the repo. Use whenever a task needs data about website visits, page popularity, SEO, or what people search for.

中文简介正在准备中。当前显示原文说明。

juniorguru/junior.guru452026年10月20日 更新

circleci

免费

Diagnose CircleCI failures for a branch, PR, and scheduled nightly builds. Use when asked to check CI, a build, or nightly; report evidence and suggested fixes without opening a PR.

中文简介正在准备中。当前显示原文说明。

juniorguru/junior.guru452026年10月20日 更新

handbook

免费

Write or edit Czech junior.guru handbook content under src/jg/coop/web/docs/handbook. Use for drafting, rewriting, structuring, or reviewing handbook pages while preserving their voice, inclusivity, practical focus, and brand style.

中文简介正在准备中。当前显示原文说明。

juniorguru/junior.guru452026年10月20日 更新

images

免费

Add, edit, generate, or organize image assets under src/jg/coop/images. Use for avatars, logos, posters, thumbnails, interest icons, project images, image formats, dimensions, cropping, or generated-image directories.

中文简介正在准备中。当前显示原文说明。

juniorguru/junior.guru452026年10月20日 更新

stories

免费

Add or edit junior.guru interview stories and participant photos under src/jg/coop/web/docs/stories and src/jg/coop/images/avatars-participants. Use for importing an interview from Google Docs, formatting story Markdown, or preparing its portrait.

中文简介正在准备中。当前显示原文说明。

juniorguru/junior.guru452026年10月20日 更新

tips

免费

Create or edit Czech club-member tips in src/jg/coop/data/tips for Discord synchronization. Use for tip content, filenames, headings, emoji identity, symbolic Discord references, voice, or parser compatibility.

中文简介正在准备中。当前显示原文说明。

juniorguru/junior.guru452026年10月20日 更新

查看 juniorguru 的全部技能

报告此技能的问题