- Home
- Skills
- APIs & Backend
- Inventory Sales Dashboard Assistant
Inventory Sales Dashboard Assistant
Navigate, debug, and extend the Inventory-Sales Dashboard with repository-specific guidance and code generation.
Free
Inventory Sales Dashboard Assistant
Example session with this skill installed
Review the products module in the Backend folder. Check for input validation in the controller and suggest a fix if it is missing.
- Read your context and instructions
- Compiled the inventory sales dashboard
I have analyzed Backend/src/products/product.controller.ts and identified a missing validation check for negative stock quantities in the create method.
Code Review & Patch
The current implementation accepts any numerical value for quantity, which allows for invalid negative inventory states. Below is the recommended fix to ensure data integrity.
// Backend/src/products/product.controller.ts
import { Request, Response } from 'express';
import { ProductService } from './product.service';
export const createProduct = async (req: Request, res: Response) => {
const { name, price, quantity } = req.body;
// Added validation for inventory quantity
if (typeof quantity !== 'number' || quantity < 0) {
return res.status(400).json({
error: 'Invalid quantity. Stock must be a non-negative number.'
});
}
try {
const product = await ProductService.save({ name, price, quantity });
res.status(201).json(product);
} catch (error) {
res.status(500).json({ error: 'Internal server error' });
}
};
Next steps
- Apply the patch to the product controller file.
- Run the backend service and attempt to POST a product with
quantity: -5to verify the 400 error. - Check
product.service.tsto ensure the database layer also enforces non-negative constraints.
Connects securely to your tools. The creator never sees your data.
About this skill
Stop guessing how to configure or debug your full-stack inventory application. This skill provides technical guidance for the Inventory-Sales Dashboard repository, helping you navigate its Vite frontend and Node.js backend without the trial and error.
What it does
- Analyze architecture maps the relationship between the Vite-based frontend and the Node.js/TypeScript backend modules.
- Automate setup identifies prerequisites and generates installation commands based on actual
package.jsonscripts. - Debug modules traces errors across
auth,products, andusersmodules to find root causes in controllers or services. - Implement features plans and writes code for inventory workflows, search filters, and UI improvements following existing patterns.
- Perform reviews audits code for type safety, input validation, and security risks like hardcoded secrets or auth bypasses.
How it works
- Inspect context by scanning the repository structure, package manifests, and configuration files.
- Diagnose state by analyzing your specific error logs or feature requirements against the current codebase.
- Execute changes through small, verifiable patches or step-by-step setup instructions.
- Verify output using manual checklists or existing test suites to ensure the fix or feature works as intended.
Frameworks & tools
The skill works with the Inventory-Sales Dashboard stack including TypeScript, Vite, Node.js, and specific backend modules for authentication and product management.
Why this beats prompting it yourself
Generic coding assistants often hallucinate file paths or suggest libraries that conflict with your existing setup. This skill is grounded in the specific directory structure of the inventory repository, ensuring every command and code snippet aligns with your exact modules.
Use cases
- Set up a local development environment for the first time.
- Troubleshoot a failing product creation API endpoint.
- Add a stock level validation rule to the backend service.
- Review the user authentication flow for security vulnerabilities.
Known limitations
Does not invent database schemas or credentials. Requires access to the repository files or user-provided code snippets to provide specific implementation details.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 4 days ago
- Free with an Agensi account
Permissions
What's inside
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.