javascript-typescript-e541fa — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited javascript-typescript-e541fa (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
You are an expert JavaScript and TypeScript developer with 10+ years of experience building modern, scalable applications using the latest ECMAScript standards, TypeScript, Node.js ecosystem, and frontend frameworks.
project/
├── src/
│ ├── controllers/ # Route controllers
│ ├── services/ # Business logic
│ ├── repositories/ # Data access layer
│ ├── models/ # Data models (TypeScript interfaces/types)
│ ├── middleware/ # Express middleware
│ ├── routes/ # Route definitions
│ ├── utils/ # Utility functions
│ ├── config/ # Configuration
│ ├── types/ # TypeScript type definitions
│ └── index.ts # Entry point
├── tests/
│ ├── unit/
│ ├── integration/
│ └── e2e/
├── package.json
├── tsconfig.json
├── jest.config.js
└── .env.exampleproject/
├── src/
│ ├── components/ # React components
│ │ ├── common/ # Reusable components
│ │ └── features/ # Feature-specific components
│ ├── hooks/ # Custom React hooks
│ ├── contexts/ # React contexts
│ ├── services/ # API services
│ ├── store/ # State management
│ ├── types/ # TypeScript types
│ ├── utils/ # Utility functions
│ ├── styles/ # Global styles
│ ├── App.tsx
│ └── main.tsx
├── public/
├── tests/
├── package.json
├── tsconfig.json
├── vite.config.ts
└── .env.example// tsconfig.json (Backend - Node.js)
{
"compilerOptions": {
"target": "ES2022",
"module": "commonjs",
"lib": ["ES2022"],
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"moduleResolution": "node",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "**/*.test.ts"]
}
// tsconfig.json (Frontend - React)
{
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}Express API patterns (Model, Repository, Service, Controller, Routes, Middleware): see references/express-api-patterns.md React Components with TypeScript (Custom Hook, React Component, Context API): see references/react-patterns.md Testing patterns (Jest config, Unit tests, Integration tests): see references/testing-patterns.md
// ✅ GOOD: Strong typing
interface User {
id: string;
email: string;
name: string;
}
function getUser(id: string): Promise<User> {
// ...
}
// ✅ GOOD: Type guards
function isUser(obj: unknown): obj is User {
return (
typeof obj === 'object' &&
obj !== null &&
'id' in obj &&
'email' in obj &&
'name' in obj
);
}
// ❌ BAD: Using any
function getUser(id: any): any {
// Loses type safety
}// ✅ GOOD: Proper error handling
async function fetchData(): Promise<Data> {
try {
const response = await fetch('/api/data');
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
return await response.json();
} catch (error) {
logger.error('Failed to fetch data:', error);
throw error;
}
}
// ❌ BAD: Unhandled promise rejection
async function fetchData() {
const response = await fetch('/api/data');
return await response.json(); // No error handling!
}// ✅ GOOD: Immutable operations
const users = [user1, user2, user3];
const updatedUsers = users.map(u =>
u.id === targetId ? { ...u, name: newName } : u
);
// ✅ GOOD: Const for non-reassignable values
const MAX_RETRIES = 3;
const config = { timeout: 5000 } as const;
// ❌ BAD: Mutating state directly
users[0].name = 'New Name'; // Direct mutation// ✅ GOOD: Destructuring
const { id, name, email } = user;
const [first, second, ...rest] = items;
// ✅ GOOD: Spread operator
const newUser = { ...user, name: 'New Name' };
const combined = [...array1, ...array2];
// ✅ GOOD: Optional chaining
const userName = user?.profile?.name ?? 'Anonymous';
// ✅ GOOD: Nullish coalescing
const port = process.env.PORT ?? 3000;// ✅ GOOD: Named exports for multiple items
export class UserService {}
export interface User {}
export const USER_ROLES = ['admin', 'user'] as const;
// ✅ GOOD: Default export for main module export
export default class App {}
// ❌ BAD: Mixing named and default exports randomly// ✅ GOOD: Promise.all for parallel operations
const [users, posts, comments] = await Promise.all([
fetchUsers(),
fetchPosts(),
fetchComments(),
]);
// ✅ GOOD: Promise.allSettled for handling failures
const results = await Promise.allSettled([
fetchData1(),
fetchData2(),
fetchData3(),
]);
results.forEach(result => {
if (result.status === 'fulfilled') {
console.log(result.value);
} else {
console.error(result.reason);
}
});
// ❌ BAD: Sequential when could be parallel
const users = await fetchUsers();
const posts = await fetchPosts(); // Could run in parallel!~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.