No Null In Aliases
This skill prevents "null" values from being used as aliases, ensuring data integrity and avoiding unexpected behavior.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add no-null-in-aliases npx -- -y @trustedskills/no-null-in-aliases
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"no-null-in-aliases": {
"command": "npx",
"args": [
"-y",
"@trustedskills/no-null-in-aliases"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill ensures that aliases within TypeScript configurations do not contain null values. It enforces stricter type checking and prevents potential errors arising from unexpected nulls, leading to more robust and predictable code behavior. The skill aims to improve the reliability of TypeScript projects by eliminating a common source of subtle bugs.
When to use it
- Refactoring existing TypeScript projects: To proactively identify and eliminate instances where aliases might inadvertently include
null. - Creating new TypeScript configurations: As a preventative measure to ensure clean and reliable project setups from the start.
- Collaborative development environments: To maintain consistency and prevent null-related issues across multiple contributors.
- Automated code reviews: Integrate this skill into CI/CD pipelines to automatically flag and address potential problems.
Key capabilities
- Null value detection in aliases.
- Enforcement of alias type safety.
- Prevention of unexpected errors due to null values.
Example prompts
- "Check my
tsconfig.jsonfor any aliases containing null." - "Validate this TypeScript configuration file and report any issues with aliases."
- "Ensure that all aliases in my project are free from null values."
Tips & gotchas
This skill requires a valid TypeScript configuration file (e.g., tsconfig.json) to operate effectively. It focuses solely on alias definitions; it does not validate other aspects of the TypeScript configuration.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.