Logo : Javdb Cli Code Commenting

Javdb Cli Code Commenting

Communauté
FlanChanXwO
javdb-cli-code-commenting

In javdb-cli, write and review intent-focused code comments, API documentation, docstrings, and numbered workflow stages. Use when an implementation changes a contract or non-obvious invariant, a multi-stage function needs navigation, or existing comments are noisy or stale. Keep natural-language choice neutral and preserve compiler/tool directives. Do not require comments for every function or statement.

Présentation

ÉditeurFlanChanXwO
Dépôtjavdb-cli
Nom de la compétencejavdb-cli-code-commenting
Étoiles
76
Forks
15
Fichiers inclus
1
LicenceMIT
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 1

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par FlanChanXwO sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Javdb Cli Code Commenting dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/FlanChanXwO/javdb-cli/tree/main/.agents/skills/javdb-cli-code-commenting
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/FlanChanXwO/javdb-cli.git /tmp/javdb-cli
mkdir -p .claude/skills
cp -r /tmp/javdb-cli/.agents/skills/javdb-cli-code-commenting .claude/skills/javdb-cli-code-commenting
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Javdb Cli Code Commenting dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Javdb Cli Code Commenting dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Javdb Cli Code Commenting n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

javdb-cli Code Commenting

Expose information that names and structure cannot express clearly: caller contracts, intent, constraints, invariants, and meaningful workflow stages. Optimize understanding, not comment count or code length.

Repository context

Read root AGENTS.md and the affected owner before editing. This checked-in skill is self-contained; it does not require the personal code-commenting skill. Keep SDK/CLI ownership, pipeline versus asset-stream semantics, exact identity before writes, and media publication outcomes precise. A checksum or file write must not be described as authenticated or atomic without the actual guarantee; distinguish pre-commit failure from committed output. Use javdb-cli-test for verification scope and javdb-cli-develop for any authorized structural change.

Editing workflow

  1. Read the affected symbol, enclosing flow, nearby comments, and applicable repository conventions. Inspect callers or tests when a claimed contract is unclear; do not infer thread safety, atomicity, retry safety, or ownership from a name.
  2. Identify the missing information before adding prose. Keep accurate contract and intent comments, correct stale ones, and remove narration that adds no information. Leaving self-explanatory code uncommented is a valid outcome.
  3. Choose the nearest useful location: API documentation for a caller contract, a type/field comment for an invariant or unit, an inline comment for a surprising choice, or numbered comments for a meaningful multi-stage flow.
  4. Keep edits within the requested scope. A comment review is not permission to rename APIs, extract helpers, redesign modules, add tests, or introduce dependencies. Report structural or behavioral defects separately unless their correction is authorized.
  5. Re-read comments against the final code and applicable documentation output. Confirm stage order, symbol references, factual guarantees, and protected directives. Report uncertain claims rather than documenting them as facts.

Language and syntax

  • Accept either English or Chinese source comments; this skill's English instructions do not select a comment language. Follow the explicit task preference, otherwise the surrounding code and intended readers. Keep a coherent language within a comment; do not bulk-translate unrelated code or duplicate every comment bilingually.
  • Preserve identifier spelling, protocol values, units, URLs, issue references, and required documentation tags. Natural-language freedom does not waive language-specific syntax.
  • Use the repository's existing formatter and documentation conventions. For Go, place a doc comment directly before its declaration, normally start with the declared identifier (or Package name for a package), and use complete sentences. Chinese prose can follow the unchanged identifier.
  • Document newly added or changed exported Go declarations and caller-visible field semantics. A concise, accurate contract is enough; avoid boilerplate headings and parameter lists that only repeat the signature. A private helper does not automatically need a doc comment.

Documentation comments

Describe only the caller-relevant facts that apply: observable behavior, preconditions, zero/nil/absent semantics, units or formats, ordering, side effects, ownership/lifetime, concurrency, cancellation, and error or partial-commit outcomes.

Give important structs and domain types their meaning and invariants. Document fields individually only when their meaning is not already clear from the type contract and names. Keep implementation walkthroughs out of API documentation.

For example, a useful contract states an ownership rule:

go
// Snapshot returns a copy of the current settings.
// The caller may modify the result without changing the store.

Use that wording only when the implementation actually provides a copy. Avoid vacuous prose such as Snapshot returns a snapshot, and do not promise guarantees that the code or accepted contract does not establish.

Keep a shared contract in its authoritative location and link or name it where helpful; do not copy long explanations into every caller.

Numbered workflow comments

Use // 1. ..., // 2. ..., and // 3. ... when stable, meaningful phases make an orchestration function easier to scan. Number phases, not statements; there is no mandatory number of stages, comments, or function length.

A useful outline reveals sequencing constraints rather than translating helper names. For a workflow that actually enforces these boundaries:

go
// 1. Validate the complete batch before any record becomes visible.
// 2. Recheck revisions under the transaction lock to avoid lost updates.
// 3. Publish the batch; report post-commit cleanup errors as committed.

Place each comment immediately before its actual block, not as a detached table of contents. Use the native comment syntax in languages other than Go.

  • Keep stages at one abstraction level with parallel action wording and sequential numbering. Renumber after reordering, insertion, or deletion.
  • Prefer a flat sequence. Nested numbering is justified only by a real nested workflow that benefits from navigation, not by nested if statements.
  • Leave trivial getters, setters, forwarding wrappers, obvious short flows, assignments, and ordinary error checks unnumbered. If helper names already tell the whole story, omit the redundant outline.
  • Keep an independent intent comment next to a subtle operation inside a stage; not every explanation needs a number.
  • A difficult outline may reveal mixed responsibilities, but do not split code merely to shorten functions or obtain neat numbering. Preserve a coherent local flow unless an in-scope extraction reduces the reader's total effort.

Intent, constraints, and temporary work

Explain why the obvious alternative is wrong, why ordering matters, which invariant later code depends on, or which external constraint requires a workaround. State uncertainty honestly and keep sensitive inputs out of examples and links.

go
// Ranking positions change between requests; key by the stable artwork ID.
key := strconv.FormatInt(artwork.ID, 10)

The comment Convert the ID to a string adds no information to that statement.

For a timeout, retry, limit, or fallback, identify its actual requirement, platform constraint, established protocol, or demonstrated failure. A comment does not justify an arbitrary restriction or a hidden fallback. Explain the relevant trigger and successful-path impact without inventing measurements or evidence.

Make TODO/FIXME comments actionable with the specific issue or removal condition when known. Preserve real references; do not invent issue IDs, owners, deadlines, or speculative future work. Prefer Remove this compatibility path when the upstream v1 API is retired over fix this later.

Protected comments and behavior

Treat compiler, build, generator, linter, type-checker, and tooling directives as executable inputs, not expendable prose. Examples include Go build/embed/generate directives, cgo preambles, shell shebangs, type-checker directives, and snapshot or documentation-test markers. Preserve required position, spacing, and scope. Keep license notices and generated-file provenance intact; change a generator's source rather than its output when applicable.

Ordinary prose-only edits need a diff/doc/formatter check appropriate to the repository, not a new behavioral test per comment or function. A directive, doctest, reflected docstring, generated schema description, or other consumed comment can affect behavior; inspect its consumer and run the relevant existing check. Any actual behavior change follows the project's test-first contract. Do not create a scanner, new test framework, or exact-comment wording test merely to enforce this style.

Readability review and completion

Check whether each edited comment adds a contract, reason, invariant, or navigation cue. Remove line-by-line narration, decorative banners, repeated function names, and unsupported guarantees; preserve meaningful explanations and required legal/tooling text.

Keep clear names, explicit data flow, and cohesive responsibilities ahead of prose. A short expression is not inherently clearer, and extracting many tiny helpers may make a flow harder to follow. Do not replace good structure with explanations or force unrelated refactoring to reduce comments.

Finish when affected contracts are accurate, helpful comments remain close to their code, numbering follows actual phases, and required document/tool checks have been observed. No comment-density target, per-function quota, mandatory translation, or new-test count defines success.

For Go-specific details, consult Go Doc Comments and Go Code Review Comments when needed. Repository behavior and verified evidence still determine what a comment may claim.

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Javdb Cli Code Commenting ?

In javdb-cli, write and review intent-focused code comments, API documentation, docstrings, and numbered workflow stages. Use when an implementation changes a contract or non-obvious invariant, a multi-stage function needs navigation, or existing comments are noisy or stale. Keep natural-language choice neutral and preserve compiler/tool directives. Do not require comments for every function or statement.

Pourquoi utiliser Javdb Cli Code Commenting sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Javdb Cli Code Commenting se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Javdb Cli Code Commenting dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/FlanChanXwO/javdb-cli/tree/main/.agents/skills/javdb-cli-code-commenting. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Javdb Cli Code Commenting ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Javdb Cli Code Commenting ?

Autant que vous le souhaitez. Vous pouvez utiliser Javdb Cli Code Commenting avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Javdb Cli Code Commenting est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par FlanChanXwO sous licence MIT. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇