- Purpose: keep this repository stable, secure, well-tested, and aligned with existing patterns.
- Default mode: smallest safe change that solves the verified problem.
- Do not guess conventions.
- Do not disable tests, lint, type checks, or security controls to make a change pass.
- Do not introduce major-version dependency upgrades without a migration plan and a dedicated PR.
- Repository:
jtgsystems/Sentimant-Tool---Project - Default branch:
master - Visibility:
public - Summary: Sentiment analysis tool - Analyze text emotions and opinions using advanced NLP
- Detected stack: Node.js
README.mdCLAUDE.mdpackage.jsontailwind.config.tscomponents.json.github/workflows/
app/lib/components/public/hooks/styles/
app/: route/page layer; keep metadata, loading states, and server/client boundaries correct.components/: shared UI surface; reuse existing primitives before adding new ones.
- Keep changes focused on the task and match the existing file layout and naming patterns.
- Update tests and docs when behavior changes or public interfaces move.
- Do not commit secrets, credentials, ad-hoc exports, or large generated artifacts unless the repository already tracks them intentionally.
- Prefer the existing automation and CI workflow over one-off commands when both paths exist.
- Understand the repo before editing: read the local guidance, README, docs, and relevant tests first.
- Follow existing architecture, conventions, and tooling; do not guess stack-specific patterns when the repo already defines them.
- Make the smallest safe change that solves the real problem, and prefer focused diffs over broad rewrites.
- Verify changes with the repo's actual checks, and add or update regression tests for behavior changes when practical.
- Keep public APIs and backward compatibility stable unless the task explicitly allows a breaking change.
- Do not overwrite user work, unrelated changes, or existing security controls just to make a check pass.
- Update docs when commands, config, setup, architecture, or user-visible behavior changes.
- If the change is ambiguous or high-risk, stop and produce a safe partial fix or a clear plan instead of guessing.
- Leave clear notes on what changed, why it changed, what checks ran, and any remaining risk.
- Legacy agent guidance exists in
CLAUDE.md; keep it aligned withAGENTS.mdif those files remain in use.
- UI changes should preserve the current routing model, shared components, and client/server boundaries.
- Avoid duplicated fetching, unnecessary re-renders, and new global state patterns unless the repo already uses them.
- Automation-style code should fail closed on missing config, use explicit timeouts/retries for network work, and keep fetch/parse/export boundaries readable.
- Do not dump generated outputs or ad-hoc reports into the repo root unless that is already the documented convention.
- Install:
pnpm install - Lint:
pnpm run lint - Typecheck: No dedicated typecheck command detected.
- Unit tests: No dedicated unit-test command detected.
- Integration tests: No dedicated integration-test command detected.
- E2E tests: No dedicated end-to-end test command detected.
- Build:
pnpm run build - Security scan: No dedicated security scan command detected; inspect
.github/workflows/or add one before relying on automated maintenance.
- Dev:
pnpm run dev - Start:
pnpm run start
- Start by reading this
AGENTS.mdand any closerAGENTS.mdfiles in impacted directories. - Map the repo before editing: structure, package manager, lockfiles, scripts, tests, CI, and docs.
- For larger maintenance sweeps, parallelize independent review lanes for correctness, security, dependency/tooling health, and test/CI reliability when the agent runtime supports it.
- Prioritize work as P1 critical/security/production risk, P2 bugs/regressions/performance cliffs, P3 cleanup/readability.
- When fixing behavior, add or update a regression test where practical.
- Keep diffs small and reviewable; split unrelated fixes into separate PRs.
- Run all relevant checks for the area you changed: lint, typecheck, unit, integration, e2e, security, and build when the repo defines them.
- Verify results and ensure there is no obvious regression.
- Summarize changes, checks run, risks, and next steps.
- Correctness: does the change solve the problem, handle edge cases, and cover null/empty/error states?
- Regression risk: could it break existing contracts, schemas, or shared-module assumptions?
- Security: check auth, validation, injection, XSS, SSRF, CSRF, traversal, shell execution, secrets, and unsafe defaults.
- Data integrity: check migrations, partial writes, duplicate writes, stale caches, destructive updates, and rollback safety.
- Testing: ensure tests are sufficient, deterministic, and include a regression test for behavior fixes.
- Performance: look for N+1 queries, repeated computation, render loops, blocking I/O, and hot-path regressions.
- Maintainability: keep code understandable, aligned with existing abstractions, and free of dead code.
- Observability: preserve useful errors, logs, traces, and debugging context.
- severity:
P1,P2, orP3 - category
- finding
- evidence
- recommended fix
- whether a test is missing
- CI source of truth lives in
.github/workflows/.
Update this file whenever the repo's actual commands, structure, or maintenance rules change.
Generated by scripts/github/agentsmd_rollout.py.