typescript-strict-guard
Enforce TypeScript Strict Mode
Strict TypeScript projects fail when weak typing enters reviews or generated code. This skill gives Claude, Codex, and Claude Code clear patterns for safer TypeScript output.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "typescript-strict-guard" from https://skillstore.io/skills/barnhardt-enterprises-inc-typescript-strict-guard.md and its manifest at https://skillstore.io/api/skills/barnhardt-enterprises-inc-typescript-strict-guard/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "typescript-strict-guard". A React form component uses broad event types and unsafe assertions.
Expected outcome:
- Lists the unsafe event and assertion patterns.
- Recommends exact React event types and nullable state handling.
- Explains how the changes satisfy strict mode.
Using "typescript-strict-guard". An API client returns unknown data without validation.
Expected outcome:
- Defines the expected domain shape in plain terms.
- Suggests runtime guards before returning typed values.
- Adds error handling guidance for invalid responses.
Using "typescript-strict-guard". A project wants a pre-commit TypeScript sanity check.
Expected outcome:
- Explains which validator checks apply.
- Shows when to run the validator during review.
- Notes that compiler and linter checks are still required.
Security Audit
SafeStatic analysis flagged many patterns because this skill is documentation-heavy and includes TypeScript examples. Manual review found the backticks, fetch calls, environment variable names, and file paths are examples or validator messages, not malicious runtime behavior. No prompt-injection attempt or exfiltration intent was found.
Risk Factors
โ๏ธ External commands (117)
๐ Network access (45)
โก Contains scripts (4)
๐ Filesystem access (4)
๐ Env variables (13)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/barnhardt-enterprises-inc-typescript-strict-guard/audits/8?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/barnhardt-enterprises-inc-typescript-strict-guard?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/barnhardt-enterprises-inc-typescript-strict-guard?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/barnhardt-enterprises-inc-typescript-strict-guard/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/barnhardt-enterprises-inc-typescript-strict-guard.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
Barnhardt-Enterprises-Inc. (2026). typescript-strict-guard security audit report (audit version 8) [Author version unspecified]. Skillstore. https://skillstore.io/skills/barnhardt-enterprises-inc-typescript-strict-guard/audits/8BibTeX citation
@techreport{barnhardt-enterprises-inc-barnhardt-enterprises-inc-typescript-strict-guard-2026,
author = {Barnhardt-Enterprises-Inc},
title = {typescript-strict-guard security audit report (audit version 8)},
institution = {Skillstore},
year = {2026},
number = {8},
url = {https://skillstore.io/skills/barnhardt-enterprises-inc-typescript-strict-guard/audits/8},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "typescript-strict-guard security audit report (audit version 8)"
version: "unspecified"
type: report
authors:
- name: "Barnhardt-Enterprises-Inc"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/barnhardt-enterprises-inc-typescript-strict-guard/audits/8"
identifiers:
- type: other
value: "skillstore:barnhardt-enterprises-inc-typescript-strict-guard:audit:8"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: HighWhat You Can Build
Review generated TypeScript
Find strict mode problems before generated code reaches a pull request.
Standardize React typing
Apply consistent props, event, hook, and form patterns across React components.
Harden external data handling
Replace unsafe casts with type guards, assertions, and runtime validation patterns.
Try These Prompts
Review this TypeScript file for strict mode issues. Identify unsafe any, @ts-ignore, non-null assertions, and missing return types.
Refactor this React TypeScript code to use explicit props, typed events, safe refs, and precise hook return types.
Create type guards and assertion helpers for this external data shape. Avoid unsafe casts and explain each narrowing step.
Audit this TypeScript workflow for strict mode gaps, async error typing, third-party type boundaries, and validator coverage.
Best Practices
- Use the guide before generating TypeScript that touches external data or React state.
- Run the validator on changed files, then confirm results with TypeScript and project lint rules.
- Prefer unknown plus type guards when data crosses a trust boundary.
Avoid
- Do not treat examples as final code without adapting project-specific types.
- Do not replace the TypeScript compiler, ESLint, or tests with this skill alone.
- Do not silence errors with assertions when a guard or safer model is practical.
Frequently Asked Questions
Does this skill write TypeScript code automatically?
Can it replace TypeScript compiler checks?
Does the validator need network access?
Is it useful for React projects?
How does it handle external API data?
Which AI tools can use it?
Developer Details
Author
Barnhardt-Enterprises-IncLicense
MIT
Skillstore revision
r1
Version notice
The author did not declare a version.
Ref
c4231f0153ccd2a2ed62274c5a372bf8f2386d3f
Maintenance freshness
7/18/2026
Usage
8 downloads ยท 192 views
File structure
๐ async-typing.md
๐ generic-patterns.md
๐ react-typescript-patterns.md
๐ SKILL.md
๐ strict-mode-violations.md
๐ validate-types.py