Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add thapaliyabikendra/ai-artifacts --skill openiddict-authorizationgit clone --depth 1 https://github.com/thapaliyabikendra/ai-artifactsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/openiddict-authorization)<a href="https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/openiddict-authorization"><img src="https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/openiddict-authorization/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/openiddict-authorization"><img src="https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/openiddict-authorization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00052 | $0.03339 |
| Opus 5.5 | $0.00021 | $0.01336 |
| Sonnet 5.5 | $0.00010 | $0.00668 |
| Haiku 4.5 | $0.00005 | $0.00334 |
Grade A, and why
openiddict-authorization scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 536 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OpenIddict Authorization Patterns
OAuth 2.0 and authorization patterns for ABP Framework with OpenIddict.
When to Use
- Implementing permission-based authorization
- Configuring role-based access control (RBAC)
- Adding custom claims to tokens
- Securing API endpoints
- Implementing multi-tenant authorization
- Configuring OAuth 2.0 flows
ABP Permission System
Define Permissions
// Domain.Shared/Permissions/{ProjectName}Permissions.cs
public static class {ProjectName}Permissions
{
public const string GroupName = "{ProjectName}";
public static class {Feature1}
{
public const string Default = GroupName + ".{Feature1}";
public const string Create = Default + ".Create";
public const string Edit = Default + ".Edit";
public const string Delete = Default + ".Delete";
public const string Export = Default + ".Export";
}
public static class {Feature2}
{
public const string Default = GroupName + ".{Feature2}";
public const string Create = Default + ".Create";
public const string Edit = Default + ".Edit";
public const string Delete = Default + ".Delete";
public const string ViewAll = Default + ".ViewAll"; // Admin only
public const string Cancel = Default + ".Cancel";
}
public static class {Feature3}
{
public const string Default = GroupName + ".{Feature3}";
public const string Create = Default + ".Create";
public const string Edit = Default + ".Edit";
public const string Delete = Default + ".Delete";
public const string Manage = Default + ".Manage";
}
}
Register Permission Definitions
// Application.Contracts/Permissions/{ProjectName}PermissionDefinitionProvider.cs
public class {ProjectName}PermissionDefinitionProvider : PermissionDefinitionProvider
{
public override void Define(IPermissionDefinitionContext context)
{
var mainGroup = context.AddGroup(
{ProjectName}Permissions.GroupName,
L("Permission:{ProjectName}"));
// Feature1
var feature1Permission = mainGroup.AddPermission(
{ProjectName}Permissions.{Feature1}.Default,
L("Permission:{Feature1}"));
feature1Permission.AddChild(
{ProjectName}Permissions.{Feature1}.Create,
L("Permission:{Feature1}.Create"));
feature1Permission.AddChild(
{ProjectName}Permissions.{Feature1}.Edit,
L("Permission:{Feature1}.Edit"));
feature1Permission.AddChild(
{ProjectName}Permissions.{Feature1}.Delete,
L("Permission:{Feature1}.Delete"));
feature1Permission.AddChild(
{ProjectName}Permissions.{Feature1}.Export,
L("Permission:{Feature1}.Export"));
// Feature2
var feature2Permission = mainGroup.AddPermission(
{ProjectName}Permissions.{Feature2}.Default,
L("Permission:{Feature2}"));
feature2Permission.AddChild(
{ProjectName}Permissions.{Feature2}.Create,
L("Permission:{Feature2}.Create"));
feature2Permission.AddChild(
{ProjectName}Permissions.{Feature2}.ViewAll,
L("Permission:{Feature2}.ViewAll"));
// Feature3 - restricted to admin
var feature3Permission = mainGroup.AddPermission(
{ProjectName}Permissions.{Feature3}.Default,
L("Permission:{Feature3}"),
multiTenancySide: MultiTenancySides.Host); // Host-only permission
}
private static LocalizableString L(string name)
{
return LocalizableString.Create<{ProjectName}Resource>(name);
}
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 536 lines · 52 tokens per session scan A ba12e02c0ed7
openiddict-authorization is a skill published in the GitHub repository thapaliyabikendra/ai-artifacts (25 stars, last pushed 8mo ago), licensed Apache-2.0. It adds 52 tokens to every session and 3,339 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
openiddict-authorization compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| openiddict-authorizationthapaliyabikendra/ai-artifacts | Skill | 25 | 8mo ago | Apache-2.0 | A | 52 | Claude Code |
| coding-directivesgreenpau/caddy-security | Skill | 2.3k | 2d ago | Apache-2.0 | A | 45 | Codex |
| configuration-authentication-cookiesgreenpau/caddy-security | Skill | 2.3k | 2d ago | Apache-2.0 | A | 34 | Codex |
| configuration-authorizationgreenpau/caddy-security | Skill | 2.3k | 2d ago | Apache-2.0 | A | 48 | Codex |
| authentication-portal-apigreenpau/caddy-security | Skill | 2.3k | 2d ago | Apache-2.0 | A | 44 | Codex |
| configuration-http-integrationsgreenpau/caddy-security | Skill | 2.3k | 2d ago | Apache-2.0 | A | 43 | Codex |
| configuration-authenticationgreenpau/caddy-security | Skill | 2.3k | 2d ago | Apache-2.0 | A | 42 | Codex |