agentsclimarketplace

Lang generic

Skill xiaolai/docs-guardian-for-claude/skills/docs-guardian/languages/lang-generic

Use when writing, auditing, or generating documentation for projects in unsupported languages — covers docstring conventions, API doc extraction, and generic heuristic patterns.From its SKILL.md

Install
npx -y skills add xiaolai/docs-guardian-for-claude --skill lang-generic

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.4 KB, as published. Nobody here has run it

Generic Language Adapter

Used when the project language is not recognized or not in the supported set. Applies best-effort heuristics.

Public API Detection Heuristics

Since we don't know the language's visibility rules, use these signals:

SignalLikely PublicConfidence
export keyword presentYesHigh
public keyword presentYesHigh
pub keyword presentYesHigh
Uppercase first letter (Go-like)MaybeMedium
No underscore prefixMaybeLow
Defined at top-level / module scopeLikelyMedium

Symbol Detection

Look for common patterns across languages:

PatternLikely Symbol Type
function name( or func name( or def name( or fn name(Function
class NameClass
struct NameStruct
interface NameInterface
type NameType definition
enum NameEnum
const NAME or val NAME or let NAME (UPPER_CASE)Constant

Documentation Detection

Look for common doc comment patterns:

PatternFormat
/** ... */JSDoc / JavaDoc
/// ...Rust-style / C# XML doc
# ... after """Python docstring
// Name ... (comment starting with symbol name)Godoc-style
""" ... """ or ''' ... '''Python docstring

Completeness Check

Since we can't parse language-specific documentation format, use a simpler check:

  1. Has any comment: Symbol has a documentation comment directly above it
  2. Non-trivial: Comment is more than 5 words
  3. Mentions parameters: If function-like, comment mentions parameter names

Recommendations

When using the generic adapter, the agent should:

  1. Flag that detection is heuristic-based (confidence: low)
  2. Suggest the user configure language explicitly in config
  3. Still attempt mapping and coverage analysis using available signals
  4. Note any language-specific patterns it recognizes but can't fully parse

File Patterns

Source files: all files not matching known binary/config extensions Exclude: common non-source directories (node_modules/, vendor/, dist/, .git/)

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.