Files
Rohit Ghumare 79573df7cb Initial release: 100-file Claude Code toolkit
20 specialized agents, 10 skills, 17 slash commands, 6 plugins,
12 hooks with scripts, 8 rule sets, 3 CLAUDE.md templates,
14 MCP server configs, and interactive setup installer.
2026-02-04 18:55:28 +00:00

35 lines
1.1 KiB
JavaScript

const stdinData = [];
process.stdin.on("data", (chunk) => stdinData.push(chunk));
process.stdin.on("end", () => {
const input = Buffer.concat(stdinData).toString().trim();
let prompt = "";
try {
const parsed = JSON.parse(input);
prompt = parsed.prompt || parsed.message || input;
} catch (e) {
prompt = input;
}
const words = prompt.split(/\s+/).filter(Boolean);
const warnings = [];
if (words.length < 3) {
warnings.push("Very short prompt. Consider adding more context about what you want to achieve.");
}
const vagueWords = ["fix", "update", "change", "modify", "improve", "do"];
if (words.length < 5 && vagueWords.some((w) => words.map((x) => x.toLowerCase()).includes(w))) {
warnings.push("Prompt may be vague. Specify what to fix/update and where.");
}
if (prompt.includes("everything") || prompt.includes("all files")) {
warnings.push("Broad scope detected. Consider narrowing to specific files or modules.");
}
console.log(JSON.stringify({ warnings, wordCount: words.length }));
});
if (process.stdin.isTTY) {
console.log(JSON.stringify({ warnings: [], wordCount: 0 }));
}