Did you know ... Search Documentation:
Pack logtalk -- logtalk-3.103.0/coding/ai/NOTES.md

This file is part of Logtalk https://logtalk.org/ SPDX-FileCopyrightText: 1998-2026 Paulo Moura <pmoura@logtalk.org> SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Core Files

AGENTS.md

The single source of truth for project-level context. It tells AI agents:

  • What Logtalk is and how it relates to Prolog
  • Preferred entity kinds (objects, categories, protocols) and when to use them
  • File and directory conventions (loaders, testers, packs, libraries)
  • Build, load, and test commands
  • Coding style, idioms, and common anti-patterns
  • Pointers to the official documentation and examples Keep this file concise. Detailed procedures belong in skills.

Skills (`skills/*/SKILL.md`)

Portable, on-demand task knowledge following the Agent Skills standard. Each skill is a directory containing at least a SKILL.md file with YAML frontmatter (name + description) and a clear procedure. Copy or adapt them into the location expected by your tool (e.g. `.agents/skills/ or .claude/skills/`).

Current skills cover common Logtalk workflows such as:

  • Scaffolding a new application (settings, loader, tests)
  • Following coding guidelines
  • Writing and running tests with lgtunit
  • Performance (indexing, determinism, tail recursion)
  • Reusing standard libraries
  • Debugging applications
  • Documenting entities
  • Writing portable applications and libraries
  • Authoring packs and pack registries Skills are loaded only when relevant, keeping the main context window clean.

Agents (`agents/`)

Definitions for specialized sub-agents (tester, documenter, reviewer, etc.). These are more tool-specific. Copy or adapt them into the location expected by your tool (e.g. `.claude/agents/`, `.github/agents/`).

Tool-Specific Adapters

ToolRecommended fileNotes
Most toolsAGENTS.md (root of project)Preferred cross-tool standard
Claude CodeCLAUDE.md (can `@import` AGENTS.md)Also supports `.claude/skills/ and .claude/agents/`
CursorAGENTS.md or `.cursor/rules/`Skills can live under `.cursor/skills/`
GitHub CopilotAGENTS.md + `.github/copilot-instructions.md`Custom agents under `.github/agents/`
OthersAGENTS.mdMany tools already look for it

You can keep a single canonical AGENTS.md and create thin adapters (or symlinks) for tools that prefer a different filename.

How to Add a New Skill

  1. Create a new directory under `skills/`, e.g. `skills/my-task/`.
  2. Add a SKILL.md with:
    • YAML frontmatter containing at least name and description
    • Clear “When to use" and step-by-step procedure
    • Logtalk-specific conventions and verification steps
  3. Optionally add `references/`, `examples/`, or `scripts/`.
  4. Keep the skill focused on one coherent task.

Philosophy

  • AGENTS.md answers “What is this project and how should I work here?"
  • Skills answer “How do I perform this specific task well in Logtalk?"
  • Agents provide focused personas or isolated context for particular roles. Prefer short, actionable instructions over long narrative. Update these files when Logtalk conventions or tooling change.

Contributing

Improvements to the guidance, new skills, or better examples are welcome. Please keep changes focused and consistent with the existing style.