بنقرة واحدة
api-documentation-accuracy
// Write accurate API examples for library documentation blog posts
// Write accurate API examples for library documentation blog posts
| name | api-documentation-accuracy |
| description | Write accurate API examples for library documentation blog posts |
| domain | technical-writing |
| confidence | high |
| source | repository |
Use this skill when writing or patching blog posts that document library APIs, frameworks, or SDKs. The goal is to ensure every code example matches the real public API surface exactly.
ValueTask when the API uses Task. Check the actual method signature.AddService(b => b.Configure(options => ...)), others use AddService(options => ...). Verify the exact pattern.msg => msg.Amount > 1000), others accept dictionaries or options objects. Don't assume—verify..WithMessageId() might be parameterless opt-in flags, not methods that accept values.Program.cs snippet, write "The Producer console app configures the transport, registers publishers, builds a host, resolves the publisher from DI, and sends messages."bundle exec jekyll build to ensure no Liquid/Markdown syntax errors.Task and ValueTask inconsistently without checking the real API.processor => processor.WithFilter(msg => msg.Amount > 1000)
processor => processor.WithFilter(new Dictionary<string, object> { ["Amount"] = 1000 })
builder.Services.AddCabazureEventHub(b => b.Configure(options =>
{
options.WithConnection("...");
}));
builder.Services.AddCabazureEventHub(options =>
{
options.WithConnection("...");
});
// Producer/Program.cs
var host = Host.CreateApplicationBuilder();
// ... 30 lines of invented setup code
Producer console app — Publishes sample messages to demonstrate the publisher API. Configures the transport, registers publishers, builds a host, resolves the publisher from DI, and sends messages.
The GitHub repository has sample applications showing the complete setup.
Audit duplicate Jekyll posts for canonical slug, listing fallout, and redirect needs
Validate a new Jekyll post with build and local smoke checks
Safely refresh social-share branding in Jekyll includes
Core conventions and patterns for this codebase