Skip to content

Add Mailtrap email skills (sending, API auth, domain setup, contacts, sandbox testing)#165

Open
dieudonneAwa wants to merge 11 commits into
Kilo-Org:mainfrom
dieudonneAwa:add-mailtrap-skills
Open

Add Mailtrap email skills (sending, API auth, domain setup, contacts, sandbox testing)#165
dieudonneAwa wants to merge 11 commits into
Kilo-Org:mainfrom
dieudonneAwa:add-mailtrap-skills

Conversation

@dieudonneAwa

Copy link
Copy Markdown

Adds 5 Agent Skills for Mailtrap under skills/:

  • mailtrap-sending-emails: Transactional and bulk email via Email API and SMTP
  • mailtrap-authorizing-api-requests: Bearer token auth, scopes, env var setup
  • mailtrap-setting-up-sending-domain: DNS/SPF/DKIM/DMARC verification
  • mailtrap-managing-contacts: Contacts API, lists, segments
  • mailtrap-testing-with-sandbox: Safe email capture for dev/staging

All skills include proper license and metadata.source frontmatter referencing the upstream mailtrap/mailtrap-skills repository.

Document the Mailtrap skill for sending transactional and bulk emails, including API and SMTP usage, best practices, and related skills.
This skill provides guidance on safely testing email sending in development and staging environments using Mailtrap Sandbox. It includes setup instructions and explains when to use this skill.
This skill provides guidance on verifying a sending domain in Mailtrap, including when to use it and required DNS records.
Added details about DKIM and DMARC records for Mailtrap domain verification.
This skill allows users to manage email contacts, lists, and segments using the Mailtrap Contacts API. It includes functionality for importing contacts, creating lists, and segmenting audiences.
This document provides guidance on authenticating API requests to Mailtrap using Bearer tokens, including setup instructions, best practices, and related skills.
---
name: mailtrap-sending-emails
description: Send transactional and bulk emails via Mailtrap Email API and SMTP. Use when implementing email sending features, configuring API/SMTP credentials, choosing between transactional and bulk sending, or troubleshooting delivery issues.
license: MIT

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.

WARNING: Missing required metadata.source.license_path for a contributed third-party skill

Per CONTRIBUTING.md, contributed skills sourced from an external repository (this one is author: mailtrap, sourced from mailtrap/mailtrap-skills) must set metadata.source.license_path pointing at the LICENSE file in the upstream repo (see the angular-component and frontend-design skills for the established pattern). The top-level license: MIT alone does not satisfy this for contributed skills, and there is no metadata.source.license_path anywhere in this file's frontmatter.

This same issue applies to all 5 new files in this PR: mailtrap-sending-emails, mailtrap-authorizing-api-requests, mailtrap-setting-up-sending-domain, mailtrap-managing-contacts, mailtrap-testing-with-sandbox.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

Comment thread skills/mailtrap-sending-emails/SKILL.md Outdated
description: Send transactional and bulk emails via Mailtrap Email API and SMTP. Use when implementing email sending features, configuring API/SMTP credentials, choosing between transactional and bulk sending, or troubleshooting delivery issues.
license: MIT
metadata:
category: business-marketing

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.

WARNING: category: business-marketing is not a recognized marketplace category

bin/marketplace-generator-utils.ts defines MARKETPLACE_CATEGORIES as exactly business, data, development, observability, productivity, search, web-automation. business-marketing is not in that set and no other skill in the repo uses it (the closest existing category is business). Skill categories aren't validated at generation time the way MCP/agent categories are, so this won't fail CI, but it fragments the taxonomy for marketplace browsing/sorting.

All 5 new skills in this PR use category: business-marketing.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

category: business-marketing
author: mailtrap
source:
repository: https://github.com/mailtrap/mailtrap-skills

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.

WARNING: Missing required metadata.source.commit

CONTRIBUTING.md and AGENTS.md both require metadata.source.commit ("Full 40-character Git SHA... required for new imports") for every contributed skill's source block. bin/add-remote-skill.ts always populates this automatically when importing a skill, but it is absent here, so the pinned upstream revision can't be verified or diffed on future syncs.

Same issue affects all 5 new files in this PR.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

Comment thread skills/mailtrap-sending-emails/SKILL.md Outdated
author: mailtrap
source:
repository: https://github.com/mailtrap/mailtrap-skills
path: skills/sending-emails/SKILL.md

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.

WARNING: metadata.source.path points at the SKILL.md file, not the skill directory

bin/add-remote-skill.ts and bin/update-skills.ts both treat source.path as a directory (sparse-checkout target, and update-skills.ts explicitly logs directory "${skill.source.path}" not found when checking it). Existing skills consistently point at the directory, e.g. angular-component's path: skills/angular-component. Here it's skills/sending-emails/SKILL.md (a file). When the marketplace's periodic refresh tooling (bin/update-skills.ts) runs against this source, it will attempt to sparse-checkout and copy a single file into what should be a full skill directory, breaking the sync for this skill.

Same issue affects all 5 new files in this PR (each path ends in /SKILL.md instead of the containing directory).


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

Mailtrap requires three DNS records to verify your domain:

**SPF** — Authorizes Mailtrap to send on your behalf:
**DKIM** — Signs outgoing emails cryptographically:

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.

WARNING: SPF/DKIM/DMARC entries end with a colon but never show the actual record values

Lines 28-30 introduce each DNS record with a trailing colon ("Authorizes Mailtrap to send on your behalf:", "Signs outgoing emails cryptographically:", "Sets policy for failed authentication:") but no record value, format, or example (e.g. an actual v=spf1 ... / CNAME / v=DMARC1; p=... snippet) follows. Since documenting the required DNS records is this skill's stated purpose ("Required DNS Records"), a reader following it has no idea what to actually put in DNS, unlike the other four skills in this PR which all include concrete code/config examples.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

## Creating a Contact

```javascript
const response = await fetch("https://mailtrap.io/api/contacts", {

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.

SUGGESTION: Contacts API endpoint may be missing the required account_id path segment

https://mailtrap.io/api/contacts looks incomplete; Mailtrap's Contacts API is account-scoped and typically requires the form https://mailtrap.io/api/accounts/{account_id}/contacts. Worth verifying against current Mailtrap API docs before merge, since a copy-pasted example that 404s undermines the skill's usefulness.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

@kilo-code-bot

kilo-code-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: 4 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 3
SUGGESTION 1
Issue Details (click to expand)

WARNING

File Line Issue
skills/mailtrap-sending-emails/SKILL.md 4 Missing required metadata.source.license_path for a contributed third-party skill (top-level license: MIT alone is not sufficient per CONTRIBUTING.md); affects all 5 new skills
skills/mailtrap-sending-emails/SKILL.md 9 Missing required metadata.source.commit (Git SHA) for new imports; affects all 5 new skills
skills/mailtrap-setting-up-sending-domain/SKILL.md 29 SPF/DKIM/DMARC entries end with a colon but never show actual record values, leaving the skill's core "Required DNS Records" content incomplete
Issue Details - SUGGESTION
File Line Issue
skills/mailtrap-managing-contacts/SKILL.md 27 Contacts API endpoint https://mailtrap.io/api/contacts may be missing a required account_id path segment; recommend verifying against current Mailtrap docs

Notes

  • Resolved in this update: the invalid category: business-marketing value was corrected to category: business (a valid marketplace category) across all 5 skills, and metadata.source.path now correctly points at the skill directory instead of the SKILL.md file, matching how bin/update-skills.ts resolves source paths. Both fixes were verified against bin/marketplace-generator-utils.ts (MARKETPLACE_CATEGORIES) and bin/update-skills.ts (directory-based sparse-checkout/copy logic).
  • The license_path/commit metadata gaps and the DNS-records/API-endpoint content issues were not touched by the latest commits and remain outstanding; no new inline comments were added since active comments for these already exist on the PR.
  • No sub-agents were used — this incremental diff touched only 2 lines (category, path) per file across 5 files, well within the tiny-tier direct-review threshold.

Fix these issues in Kilo Cloud

Files Reviewed (5 files)
  • skills/mailtrap-sending-emails/SKILL.md - 2 issues (fixed: category, path)
  • skills/mailtrap-authorizing-api-requests/SKILL.md - fixed: category, path
  • skills/mailtrap-setting-up-sending-domain/SKILL.md - fixed: category, path; 1 outstanding issue
  • skills/mailtrap-managing-contacts/SKILL.md - fixed: category, path; 1 outstanding issue
  • skills/mailtrap-testing-with-sandbox/SKILL.md - fixed: category, path
Previous Review Summary (commit e75387a)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit e75387a)

Status: 6 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 5
SUGGESTION 1
Issue Details (click to expand)

WARNING

File Line Issue
skills/mailtrap-sending-emails/SKILL.md 4 Missing required metadata.source.license_path for a contributed third-party skill (top-level license: MIT alone is not sufficient per CONTRIBUTING.md); affects all 5 new skills
skills/mailtrap-sending-emails/SKILL.md 6 category: business-marketing is not a recognized marketplace category (MARKETPLACE_CATEGORIES only has business/data/development/observability/productivity/search/web-automation); affects all 5 new skills
skills/mailtrap-sending-emails/SKILL.md 9 Missing required metadata.source.commit (Git SHA) for new imports; affects all 5 new skills
skills/mailtrap-sending-emails/SKILL.md 10 metadata.source.path points at the SKILL.md file instead of the skill directory, which will break bin/update-skills.ts refresh tooling; affects all 5 new skills
skills/mailtrap-setting-up-sending-domain/SKILL.md 29 SPF/DKIM/DMARC entries end with a colon but never show actual record values, leaving the skill's core "Required DNS Records" content incomplete

SUGGESTION

File Line Issue
skills/mailtrap-managing-contacts/SKILL.md 27 Contacts API endpoint https://mailtrap.io/api/contacts may be missing a required account_id path segment; recommend verifying against current Mailtrap docs

Notes

  • The four cross-cutting metadata findings (license_path, commit, source.path, category) are each commented once on mailtrap-sending-emails/SKILL.md as a representative file but apply identically to all 5 new SKILL.md files in this PR.
  • The Contacts API endpoint finding is based on general knowledge of Mailtrap's account-scoped API and could not be confirmed against live docs in this read-only review; please verify before merge.
  • No sub-agents were used (5 files, all new additions, no scripts/executables/binaries) — this PR was reviewed directly per the small-tier guidance.
Files Reviewed (5 files)
  • skills/mailtrap-sending-emails/SKILL.md - 3 issues
  • skills/mailtrap-authorizing-api-requests/SKILL.md - shares 4 cross-cutting issues
  • skills/mailtrap-setting-up-sending-domain/SKILL.md - shares 4 cross-cutting issues + 1 issue
  • skills/mailtrap-managing-contacts/SKILL.md - shares 4 cross-cutting issues + 1 issue
  • skills/mailtrap-testing-with-sandbox/SKILL.md - shares 4 cross-cutting issues

Fix these issues in Kilo Cloud


Reviewed by claude-sonnet-5-20260630 · Input: 32 · Output: 9.4K · Cached: 554.9K

Review guidance: REVIEW.md from base branch main

Fixed category from business-marketing to business and updated metadata path to remove /SKILL.md suffix, per Kilo marketplace validation requirements.
…equests

Fixed category from business-marketing to business and updated metadata path to remove /SKILL.md suffix, per Kilo marketplace validation requirements.
Fixed category from business-marketing to business and updated metadata path to remove /SKILL.md suffix, per Kilo marketplace validation requirements.
…g-domain

Fixed category from business-marketing to business and updated metadata path to remove /SKILL.md suffix, per Kilo marketplace validation requirements.
Fixed category from business-marketing to business and updated metadata path to remove /SKILL.md suffix, per Kilo marketplace validation requirements.
@dieudonneAwa

Copy link
Copy Markdown
Author

Hi! I've fixed all 5 skill files: updated the category from business-marketing to business and corrected the metadata path format (removed /SKILL.md suffix) across all skills. Ready for review whenever you get a chance, thanks!

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.

1 participant