Skip to content

Add Claude Code skill for Humanizer#1710

Open
gummes wants to merge 1 commit into
Humanizr:mainfrom
gummes:add-claude-code-skill
Open

Add Claude Code skill for Humanizer#1710
gummes wants to merge 1 commit into
Humanizr:mainfrom
gummes:add-claude-code-skill

Conversation

@gummes

@gummes gummes commented Apr 9, 2026

Copy link
Copy Markdown

Summary

  • Adds a Claude Code skill that provides AI agents with best practices and usage patterns for Humanizer
  • Follows the .agents/skills/ convention used by libraries like FastAPI to embed agent instructions directly in packages
  • Complements the existing AGENTS.md with structured, tool-specific guidance

What's Included

The skill covers:

  • String humanization/dehumanization and transformations
  • Enum humanization with DescriptionAttribute patterns
  • DateTime and TimeSpan humanization with precision options
  • Collection formatting
  • Number to words, ordinals, quantities
  • Byte sizes, Roman numerals, metric numbers
  • Best practices and common pitfalls to avoid

Why This Matters

As AI-assisted coding becomes more common, having embedded guidance helps developers get idiomatic Humanizer code on the first try. This skill is designed for tools like Claude Code that can read .agents/skills/*/SKILL.md files from installed packages.

Test plan

  • Skill file follows the expected YAML frontmatter + Markdown format
  • Examples are accurate and match current Humanizer behavior
  • No changes to existing code or tests

🤖 Generated with Claude Code

Adds a Claude Code skill that provides AI agents with best practices
and usage patterns for the Humanizer library. This complements the
existing AGENTS.md by providing structured guidance for:

- String humanization and transformation
- Enum humanization/dehumanization
- DateTime and TimeSpan humanization
- Collection formatting
- Number to words, ordinals, quantities
- Byte sizes, Roman numerals, metrics

The skill follows the .agents/skills/ convention used by libraries
like FastAPI to embed agent instructions directly in packages.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c50c4e28c6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

"person".Pluralize() => "people"
"people".Singularize() => "person"

"men".Pluralize() => "men" // Already plural

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove incorrect men.Pluralize() example

Pluralize() defaults inputIsKnownToBeSingular to true, so passing an already-plural word is not guaranteed to be idempotent; for irregular plurals like "men", the default path can append another plural suffix rather than returning the same word. This example teaches the unsafe call pattern and contradicts the safer overload shown below (inputIsKnownToBeSingular: false), so agents may generate incorrect inflection code for unknown-plurality inputs.

Useful? React with 👍 / 👎.


```bash
# All languages
dotnet add package Humanizer

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Document SDK requirement for dotnet add package Humanizer

This install instruction omits the repository’s documented restore constraint that the Humanizer metapackage requires tooling with the NuGet locale fix (SDK/MSBuild versions that include it). In environments still on older SDKs, this command fails during restore, so agents following this skill will recommend a non-working setup unless you add the minimum SDK note and/or the Humanizer.Core + Humanizer.Core.<locale> fallback guidance.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant