Logo de Javdb Cli Code Commenting

Javdb Cli Code Commenting

Comunidade
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.

Visão geral

Publicado porFlanChanXwO
Repositóriojavdb-cli
Nome da habilidadejavdb-cli-code-commenting
Estrelas
76
Forks
15
Arquivos incluídos
1
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 1

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por FlanChanXwO no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Javdb Cli Code Commenting no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/FlanChanXwO/javdb-cli/tree/main/.agents/skills/javdb-cli-code-commenting
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Javdb Cli Code Commenting em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Javdb Cli Code Commenting automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Javdb Cli Code Commenting não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Javdb Cli Code Commenting faz?

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.

Por que usar Javdb Cli Code Commenting no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Javdb Cli Code Commenting é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Javdb Cli Code Commenting no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/FlanChanXwO/javdb-cli/tree/main/.agents/skills/javdb-cli-code-commenting. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Javdb Cli Code Commenting?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Javdb Cli Code Commenting?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Javdb Cli Code Commenting com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Javdb Cli Code Commenting é gratuita?

Sim. A habilidade é publicada no GitHub por FlanChanXwO sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇