inject-ambient-inputs SKILL.md skillA
inject-ambient-inputs from iamakbarsha1/whetstone is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add iamakbarsha1/whetstone/inject-ambient-inputs@git:20261019.5842640Pins git:20261019.5842640 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- iamakbarsha1/whetstone
- Path
skills/inject-ambient-inputs/SKILL.md- Versions recorded
- 5
- Latest version
- git:20261019.5842640, committed Oct 19, 2026
- First version recorded
- Aug 9, 2026
- Size
- 4,734 bytes
- Repository stars
- 4
- License
- CC-BY-4.0
Use when writing or refactoring logic that reads ambient state — the clock (now/today), randomness, environment variables, a DB/HTTP handle, the filesystem, the current user. Ambient reads are the main reason otherwise pure logic becomes un-unit-testable; pass them in as parameters and split the pure decision from the I/O so tests need no mocking machinery. Triggers on "Date.now", "new Date()", "hard to test", "mock the clock", "fake timers", "random in tests", "reads env…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Inject Ambient Inputs **Type:** Open-source — client-agnostic methodology, no project-specific detail. **Created by akbarsha — https://github.com/iamakbarsha1** Distilled from a case where business rules reading the clock directly would have forced fake-timer mocking in every test; passing the current time in as a value gave dozens of tests with zero mocks. **Licence:** Released under CC BY 4.0 — share and adapt for any purpose with credit. Full text: `LICENSE` at the repository root. **Feedback & Support:** If a rule here proves wrong or needs sharpening, open an issue on the repository or contact the author at the profile link above. If the problem is the agent not following a rule below rather than the rule itself, that's an execution failure — acknowledge and correct it. ## The core rule Ambient inputs — the clock, randomness, environment, DB/HTTP handles, the filesystem — are the main reason logic that is otherwise pure becomes painful to unit-test: to test it you must intercept a global, which needs fake timers, env stubbing, or a mocking framework in every test. Don't reach for the global inside the decision logic. PASS ambient values in as parameters and keep a …
Read the whole file at its exact version.
How to install
mdr add iamakbarsha1/whetstone/inject-ambient-inputs@sha256:cf914f8fb02a4a25The line at the top of this page pins the label git:20261019.5842640, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_3l2v5jy22lx5kgi4)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Aug 9, 2026 and Oct 19, 2026, about one every 18 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261019.5842640 latest | 2026-10-19 | 5842640 | 4,734 B | A | view · diff |
| git:20261019.b3a119b | 2026-10-19 | b3a119b | 4,727 B | A | view · diff |
| git:20260815.0363531 | 2026-08-15 | 0363531 | 3,954 B | A | view · diff |
| git:20260815.61aa8b5 | 2026-08-15 | 61aa8b5 | 3,926 B | A | view · diff |
| git:20260809.e9e787b | 2026-08-09 | e9e787b | 3,558 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (4734 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
iamakbarsha1/whetstone · 4 stars · license CC-BY-4.0 · pushed 2026-10-24 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_3l2v5jy22lx5kgi4 GET https://markdownregistry.com/api/v1/resolve?ref=iamakbarsha1/whetstone/inject-ambient-inputs GET https://markdownregistry.com/api/v1/blob/cf914f8fb02a4a251c965135e263e5fa0d9bece1f8bbad0a3031068bacf9e291
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.