Skip to content

chore(ai): add agent notes, Cursor rules, and skills - #2133

Merged
felipebergamin merged 4 commits into
kernelci:mainfrom
profusion:chore/ai-initial-harness
Sep 25, 2026
Merged

felipebergamin merged 4 commits into
kernelci:mainfrom
profusion:chore/ai-initial-harness

Conversation

@felipebergamin

@felipebergamin felipebergamin commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add AGENTS.md with where-to-look, commands, when/how to run the app, Postgres caveats, and project invariants for coding agents.
  • Add Cursor rules (frontend/backend/filters, collaboration, ponytail) plus vendored .agents skills and skills-lock.json.

Human onboarding stays in docs/Onboarding.md / CONTRIBUTING.md; this is the short agent-facing map.

Test plan

  • Open AGENTS.md and confirm commands/URLs match docs/dev-environment.md (make dev, ports 9000/5173/8000).
  • Confirm .cursor/rules/ and .agents/skills/ load in Cursor for this repo.

Give coding agents a local map of commands, invariants, and review
skills so they follow project conventions without copying onboarding.

Signed-off-by: Felipe Bergamin <felipebergamin@profusion.mobi>
@felipebergamin
felipebergamin marked this pull request as draft September 22, 2026 20:29
@felipebergamin

Copy link
Copy Markdown
Member Author

@alanpeixinho please feel free to suggest your own rules and skills that you find relevant

@alanpeixinho

Copy link
Copy Markdown
Contributor

#1719 also brings some skills on it, might be worth it reviewing.

@@ -0,0 +1,40 @@
#!/usr/bin/env bash

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what exatcly is this sript?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

it is part of the skill. The agent can use it to append logs by invoking the script

Comment thread AGENTS.md Outdated

## Git

Conventional Commits with a scope, e.g. `fix(tree-compare): restore drawer navigation`. One concern per commit/PR. PR titles match; describe why, how, trade-offs, tests; link issues; screenshots/GIFs for UI. CI green before asking for review. Commit with "Signed-off-by".

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we could include reminder to a github closes tags

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

good point. I will update with this

4. Pass each subagent the same scoped diff/file context and ask it to return prioritized findings with file references and evidence.
5. After both finish, synthesize the results with findings first, deduplicated across reviewers. Weight overlapping findings more heavily, resolve disagreements with your own judgment, and keep summaries brief.

If individual background summaries are already visible to the user, do not restate them wholesale. Surface the unified verdict, the highest-signal findings, and any remaining uncertainty.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe worth including a guard to ask for human intervention for review after it finishes running pre-review

Comment thread .cursor/rules/filters.mdc
@@ -0,0 +1,16 @@
---

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

might be worth keeping a kci-dashboard folder, so we can know which skills are specific written for the project

@@ -0,0 +1,68 @@
---

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is it worth keeping a non development related skill?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think so. This skill is referenced by another ones (e.g. show-me-your-work) and we can also use to generate summaries, issues, ai reviews, etc.

@alanpeixinho alanpeixinho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Left some comments, none are blockers

disable-model-invocation: true
---

# Unslop

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@tales-aparecida

Copy link
Copy Markdown
Contributor

Did you generate all of this yourself or did you copy it from somewhere? I'm concerned you might have forgotten proper attribution

Comment thread AGENTS.md
@tales-aparecida

tales-aparecida commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

I might've missed, but I'd also like "Assisted-by:" tags in commits heavily influenced by LLMs, to alert humans reviewing the code that it could contain hallucinations, or generally inform future readers about it

@felipebergamin

Copy link
Copy Markdown
Member Author

Did you generate all of this yourself or did you copy it from somewhere? I'm concerned you might have forgotten proper attribution

skills are from https://www.skills.sh/, installed via npx.

agents.md is mine.

@felipebergamin
felipebergamin force-pushed the chore/ai-initial-harness branch from d3bfa33 to 68fe12c Compare September 24, 2026 19:40
@felipebergamin

Copy link
Copy Markdown
Member Author

Did you generate all of this yourself or did you copy it from somewhere? I'm concerned you might have forgotten proper attribution

skills are from https://www.skills.sh/, installed via npx.

agents.md is mine.

rules are also mine. except for ponytail

Give agents a short index of vendored skills and Cursor rules
before the rest of the notes.

Signed-off-by: Felipe Bergamin <felipebergamin@profusion.mobi>
@felipebergamin
felipebergamin marked this pull request as ready for review September 25, 2026 13:17
@felipebergamin
felipebergamin added this pull request to the merge queue Sep 25, 2026
Merged via the queue into kernelci:main with commit dcc9b23 Sep 25, 2026
14 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.

3 participants