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 anoopsg/agent_rules --skill create-clientgit clone --depth 1 https://github.com/anoopsg/agent_rulesWrote 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/anoopsg/agent_rules/create-client)<a href="https://agentmods.dev/skills/anoopsg/agent_rules/create-client"><img src="https://agentmods.dev/badge/skills/anoopsg/agent_rules/create-client/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/anoopsg/agent_rules/create-client"><img src="https://agentmods.dev/badge/skills/anoopsg/agent_rules/create-client.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.00060 | $0.00840 |
| Opus 5.5 | $0.00024 | $0.00336 |
| Sonnet 5.5 | $0.00012 | $0.00168 |
| Haiku 4.5 | $0.00006 | $0.00084 |
Grade A, and why
create-client 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 22d 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 — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Client Creation Skill
This skill defines the process for creating a new low-level client in
lib/src/infrastructure/.
1. Overview
Clients are high-level wrappers around third-party plugins or system APIs
(e.g., shared_preferences, flutter_secure_storage, package_info_plus). They encapsulate the
configuration and complexity of these tools, providing a clean interface
for feature repositories.
2. Directory Structure
Clients are grouped by concern under lib/src/infrastructure/:
lib/src/infrastructure/
├── api/ # Backend ApiClient & adapters (api.dart barrel)
├── network/ # HTTP client (http/), session expiry (network.dart barrel)
├── storage/ # Local persistence (storage.dart barrel)
├── device/ # OS, hardware, platform (device.dart barrel)
├── error_codes.dart # AppErrorCode
└── infrastructure.dart # Re-exports every barrel
api/ is not a client group: it holds the backend ApiClient and its
transport adapters. A new backend call goes there through the
add-api-endpoint skill, not into a new client.
Add a new folder (with barrel, exported from infrastructure.dart) only
if a client fits none of these. Pure logic with no plugin or I/O is not a
client; put it in lib/src/utils/.
3. Implementation Pattern
Follow these rules when creating a client:
- Naming: Use
PascalCase+Client(e.g.,LocationClient). - DI: Provide the client via a Riverpod provider with
keepAlive: true. - Encapsulation: Hide plugin-specific types behind your own methods where possible.
- Error Handling: Use
try/catchblocks and log errors usingdart:developer.
3.1 Example Implementation
import 'dart:developer' as developer;
import 'package:riverpod_annotation/riverpod_annotation.dart';
import 'package:my_plugin/my_plugin.dart';
part 'my_plugin_client.g.dart';
@Riverpod(keepAlive: true)
MyPluginClient myPluginClient(Ref ref) => MyPluginClient();
class MyPluginClient {
final _plugin = MyPlugin();
Future<bool> doSomething() async {
try {
await _plugin.execute();
return true;
} on Object catch (e, st) {
developer.log(
'MyPluginClient.doSomething failed',
name: 'MyPluginClient',
error: e,
stackTrace: st,
);
return false;
}
}
}
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.
- 22d ago Changed · +22 lines · +7 tokens per session efd753f4be27
- 1mo ago Changed · +8 lines · +3 tokens per session a0c154eadea1
- 1mo ago Changed 2645c269a804
- 1mo ago Changed · -3 lines 5ecbbc36d1de
- 3mo ago First seen · 91 lines · 50 tokens per session scan A 945fa382985d
create-client is a skill published in the GitHub repository anoopsg/agent_rules (2 stars, last pushed 23d ago), licensed MIT. It adds 60 tokens to every session and 840 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-08-31.
create-client compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| create-clientanoopsg/agent_rules | Skill | 2 | 23d ago | MIT | A | 60 | Claude Code, Codex |
| laravel-inertia-reactAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 59 | Claude Code, Codex |
| laravel-best-practicesAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 54 | Claude Code, Codex |
| laravel-queuesAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 105 | Claude Code, Codex |
| api-design-patternsAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 59 | Claude Code, Codex |
| laravel-mcpAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 51 | Claude Code, Codex |
| designing-data-intensive-applicationsciembor/agent-rules-books | Skill | 3.4k | 2mo ago | MIT | A | 34 | Claude Code, Codex |