Skip to main content

refactoring

This skill enables systematic code refactoring to enhance maintainability and structure without altering behavior, ensuring safer development.

Install this skill

or
56/100

Security score

The refactoring skill was audited on Feb 28, 2026 and we found 12 security issues across 3 threat categories. Review the findings below before installing.

Categories Tested

Security Issues

medium line 225

Template literal with variable interpolation in command context

SourceSKILL.md
225fetch(`/api/users/${userId}`).then(r => r.json()).then(setUser);
medium line 226

Template literal with variable interpolation in command context

SourceSKILL.md
226fetch(`/api/users/${userId}/posts`).then(r => r.json()).then(setPosts);
medium line 227

Template literal with variable interpolation in command context

SourceSKILL.md
227fetch(`/api/users/${userId}/followers`).then(r => r.json()).then(setFollowers);
medium line 270

Template literal with variable interpolation in command context

SourceSKILL.md
270fetch(`/api/users/${userId}`)
medium line 286

Template literal with variable interpolation in command context

SourceSKILL.md
286fetch(`/api/users/${userId}/posts`).then(r => r.json()).then(setPosts);
medium line 304

Template literal with variable interpolation in command context

SourceSKILL.md
304fetch(`/api/users/${userId}/followers`).then(r => r.json()).then(setFollowers);
medium line 913

Template literal with variable interpolation in command context

SourceSKILL.md
913console.log(`${post.title} by ${author.name}`); // Note: Use structured logger in production
medium line 926

Template literal with variable interpolation in command context

SourceSKILL.md
926console.log(`${post.title} by ${post.author.name}`); // Note: Use structured logger in production
low line 771

Access to .env file

SourceSKILL.md
771const client = new SendGridClient(process.env.SENDGRID_API_KEY!); // BAD: Non-null assertion bypasses runtime validation
low line 798

Access to .env file

SourceSKILL.md
798if (process.env.NODE_ENV === 'test') {
low line 801

Access to .env file

SourceSKILL.md
801const apiKey = process.env.SENDGRID_API_KEY;
low line 1284

External URL reference

SourceSKILL.md
1284- Martin Fowler's Refactoring Catalog - https://refactoring.com/catalog/
Scanned on Feb 28, 2026
View Security Dashboard