Skip to content

[LCORE-1393] chore: add agents.md and symlinked claude.md#1250

Merged
tisnik merged 1 commit intolightspeed-core:mainfrom
asamal4:agents-md
Mar 2, 2026
Merged

[LCORE-1393] chore: add agents.md and symlinked claude.md#1250
tisnik merged 1 commit intolightspeed-core:mainfrom
asamal4:agents-md

Conversation

@asamal4
Copy link
Contributor

@asamal4 asamal4 commented Mar 2, 2026

Description

Standard practice:

  • Add AGENTS.md
  • CLAUDE.md symlinked to AGENTS.md

Type of change

  • Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up service version
  • Bump-up dependent library
  • Bump-up library or tool used for development (does not change the final image)
  • CI configuration change
  • Konflux configuration change
  • Unit tests improvement
  • Integration tests improvement
  • End to end tests improvement
  • Benchmarks improvement

Tools used to create PR

Identify any AI code assistants used in this PR (for transparency and review context)

  • Assisted-by: N/A

Related Tickets & Documents

Checklist before requesting a review

  • I have performed a self-review of my code.
  • PR has passed all pre-merge test jobs.
  • If it is a core feature, I have added thorough tests.

Testing

  • Please provide detailed steps to perform tests related to this code change.
  • How were the fix/results from this change verified? Please provide relevant screenshots or results.

Summary by CodeRabbit

  • Documentation
    • Added comprehensive development guide covering project overview, architecture, coding standards, testing strategies, and development workflow guidance.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 2, 2026

Walkthrough

This PR adds a comprehensive development guide document to the Lightspeed Core Stack project, covering environment setup, architecture, coding standards, testing strategies, dependencies, and development workflows, without introducing functional code changes.

Changes

Cohort / File(s) Summary
Development Guide Documentation
AGENTS.md, CLAUDE.md
Added comprehensive Lightspeed Core Stack development guide detailing project layout, import practices, logging conventions, Pydantic usage, async patterns, error handling, testing frameworks (pytest, behave), linting, security checks, and development commands.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

  • adds instructions for Claude #530 — Adds the same Lightspeed Core Stack development guide documentation with similar or duplicate content covering architecture, coding standards, and development workflow.

Suggested labels

ok-to-test

Suggested reviewers

  • tisnik
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The PR title accurately describes the main change: adding AGENTS.md and symlinking CLAUDE.md as documentation files.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
AGENTS.md (1)

16-42: Add languages to fenced code blocks (markdownlint MD040).

Line 16 and Line 124 use unlabeled fenced blocks; this will keep lint warnings active.

Proposed doc fix
-```
+```text
 src/
 ├── app/                  # FastAPI application
 ...
 └── constants.py          # Shared constants

@@
- +text
tests/
├── unit/ # Unit tests (pytest)
├── integration/ # Integration tests (pytest)
└── e2e/ # End-to-end tests (behave)
└── features/ # Gherkin feature files

Also applies to: 124-130

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@AGENTS.md` around lines 16 - 42, The markdown fenced code blocks in AGENTS.md
are unlabeled (the directory listing and the tests block) causing markdownlint
MD040 warnings; update each triple-backtick fence (the top directory tree block
around the src/ listing and the tests/ block later) to include a language
identifier (e.g., text) after the opening ``` so the blocks read ```text and
silence the MD040 lint error while preserving formatting.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@AGENTS.md`:
- Around line 11-12: Update the "Linting Tools" section to match the actual
`make verify` target: replace the listed tools so they exactly match the verify
command (black, pylint, pyright, ruff, docstyle, check-types) and remove mypy
from that list (or alternatively split the section into two subsections clearly
labeled "verify tools" and "additional/optional tools" and move mypy into the
optional list); ensure the section text references the `make verify` target and
the same tool names used in the header so readers see an exact correspondence
between `uv run make verify` and the listed tools.

---

Nitpick comments:
In `@AGENTS.md`:
- Around line 16-42: The markdown fenced code blocks in AGENTS.md are unlabeled
(the directory listing and the tests block) causing markdownlint MD040 warnings;
update each triple-backtick fence (the top directory tree block around the src/
listing and the tests/ block later) to include a language identifier (e.g.,
text) after the opening ``` so the blocks read ```text and silence the MD040
lint error while preserving formatting.

ℹ️ Review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6528bc2 and 00fa862.

📒 Files selected for processing (3)
  • AGENTS.md
  • CLAUDE.md
  • CLAUDE.md

Comment on lines +11 to +12
- `uv run make verify` - Run all linters (black, pylint, pyright, ruff, docstyle, check-types)

Copy link
Contributor

@coderabbitai coderabbitai bot Mar 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify the actual tools behind `make verify` and compare with AGENTS.md claims.

set -euo pipefail

makefile_path="$(fd -HI '^Makefile$' | head -n1 || true)"
if [ -z "${makefile_path}" ]; then
  echo "Makefile not found"
  exit 0
fi

echo "== Makefile path =="
echo "${makefile_path}"

echo
echo "== verify target (with context) =="
rg -n -A20 -B2 '^[[:alnum:]_.-]*verify[[:space:]]*:' "${makefile_path}"

echo
echo "== AGENTS.md references =="
rg -n -A4 -B2 'make verify|Linting Tools|mypy|pydocstyle|check-types|pyright|pylint|ruff|black' AGENTS.md

Repository: lightspeed-core/lightspeed-stack

Length of output: 1884


Align make verify tool list in the Linting Tools section.

Line 11 correctly lists the verify target tools (black, pylint, pyright, ruff, docstyle, check-types), but the Linting Tools section at lines 173-180 includes tools not part of verify (mypy) and omits check-types. Update lines 173-180 to match what verify actually runs, or clarify which tools are part of verify versus optional/additional type checking tools.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@AGENTS.md` around lines 11 - 12, Update the "Linting Tools" section to match
the actual `make verify` target: replace the listed tools so they exactly match
the verify command (black, pylint, pyright, ruff, docstyle, check-types) and
remove mypy from that list (or alternatively split the section into two
subsections clearly labeled "verify tools" and "additional/optional tools" and
move mypy into the optional list); ensure the section text references the `make
verify` target and the same tool names used in the header so readers see an
exact correspondence between `uv run make verify` and the listed tools.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is correct the tool section highlights the tool name itself.. mypy is the tool, check-types is the make target.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asamal4, thank you for the clarification! You're absolutely right—I misunderstood the intent. The Linting Tools section correctly lists the actual tool names (mypy, pylint, pyright, ruff, black), while check-types is the make target that invokes mypy. My apologies for the confusion.


✏️ Learnings added
Learnt from: asamal4
Repo: lightspeed-core/lightspeed-stack PR: 1250
File: AGENTS.md:11-12
Timestamp: 2026-03-02T15:57:10.746Z
Learning: In lightspeed-stack's AGENTS.md, the Linting Tools section lists actual tool names (e.g., mypy, pylint, pyright, ruff, black), not make target names. For example, `check-types` is a make target that runs mypy, but mypy is the tool name documented in the Linting Tools section.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.


🧠 Learnings used
Learnt from: CR
Repo: lightspeed-core/lightspeed-stack PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-02-17T13:52:19.771Z
Learning: Run `uv run make verify` to execute all linters (black, pylint, pyright, ruff, docstyle, check-types) before completion

@asamal4 asamal4 changed the title chore: add agents.md and symlinked claude.md [LCORE-1393] chore: add agents.md and symlinked claude.md Mar 2, 2026
Copy link
Contributor

@tisnik tisnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tisnik tisnik merged commit 579818f into lightspeed-core:main Mar 2, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants