← Back to Skills Marketplace
jawadsadiq01

Backend Developer

by JawadSadiq01 · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
963
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install langchain-email-agent
Description
Compose and send emails using AI with human approval for sending, allowing edits or rejection before delivery.
README (SKILL.md)

EmailAgent README

Overview

The EmailAgent class provides an AI-powered email composition and sending capability using LangChain with OpenAI's GPT model. It includes human-in-the-loop middleware that requires approval before emails are sent.

Configuration

Environment Variables

Variable Default Description
OPENAI_MODEL gpt-4o-mini OpenAI model to use

Usage

import { EmailAgent } from './email.agent';
import { SendEmailDto } from '../dto/send-email.dto';

const agent = new EmailAgent();

const dto: SendEmailDto = {
  email: '[email protected]',
  name: 'John Doe',
  subject: 'Meeting Request',      // optional
  body: 'Initial email content',   // optional
  instructions: 'Keep it formal'   // optional
};

const result = await agent.sendEmail(dto);

Human-in-the-Loop Middleware

The agent uses humanInTheLoopMiddleware which interrupts execution on the EmailTool before sending emails. This allows for:

  • approve - Send the email as composed
  • edit - Modify the email before sending
  • reject - Cancel the email operation

The readEmailTool is excluded from interruption (false), allowing read operations to proceed without approval.

Parameters

Parameter Type Required Description
email string Yes Recipient email address
name string Yes Recipient name
subject string No Email subject line
body string No Initial email body content
instructions string No AI instructions for composing the email

Return Value

Returns the final message content from the agent as a string.

Usage Guidance
This package claims to be an email-sending agent but the bundle is incomplete and metadata is sparse: key modules (EmailTool, DTOs, message templates) are missing and required credentials (OpenAI API key and likely SMTP/email provider credentials) are not declared. Before installing or enabling it: 1) ask the publisher for the missing files and a clear description of what credentials are required and why; 2) review the implementation of the send_email.tool and any email/SMTP integration to ensure it won't send messages without explicit approval; 3) require explicit environment-variable documentation (including OpenAI API key usage) and check where any credentials would be sent or stored; 4) prefer packages with a homepage, repository, or known publisher; 5) if you must test, run it in a restricted/sandboxed environment and do not provide real credentials until you’ve reviewed the missing code. The inconsistencies make this suspicious rather than clearly benign.
Capability Analysis
Type: OpenClaw Skill Name: langchain-email-agent Version: 1.0.0 The skill is designed to compose and send emails using an AI agent. While it accepts user-provided instructions that could be a vector for prompt injection, the critical safeguard is the `humanInTheLoopMiddleware` applied to the `EmailTool` in `email.agent.ts`. This middleware explicitly requires human approval (approve, edit, or reject) before any email is sent, effectively preventing unauthorized email sending or data exfiltration via email, even if the AI agent is compromised by prompt injection. The `SKILL.md` clearly documents this human-in-the-loop process.
Capability Assessment
Purpose & Capability
The skill bundle's name is 'Backend Developer' and no description/homepage is provided, but the README and code implement an EmailAgent. This naming/metadata mismatch is confusing. The code imports an EmailTool, DTOs, and message constants from relative paths that are not included in the package, so the included file alone cannot perform the stated email-sending function.
Instruction Scope
SKILL.md describes an EmailAgent with human-in-the-loop approval before sending, and the code enforces middleware interrupt for EmailTool. The instructions do not request unrelated data. However, the runtime instructions and code rely on external modules (send_email.tool, dto, messages) that are absent from the bundle, so actual behavior is undefined and could change depending on the missing implementations.
Install Mechanism
There is no install specification (instruction-only + one code file). That minimizes installer-level risk because nothing is downloaded or extracted by the skill installer.
Credentials
SKILL.md documents an OPENAI_MODEL env var but the package manifest declares no required environment variables. The code constructs a ChatOpenAI instance which in practice requires OpenAI credentials (e.g., OPENAI_API_KEY) but that credential is not declared. Additionally, sending email normally requires SMTP/integration credentials (not declared). The skill asks for no credentials yet can't function without at least an OpenAI API key and likely email provider credentials — a mismatch that should be clarified.
Persistence & Privilege
The skill does not request always:true and uses default autonomous invocation settings (disable-model-invocation: false). Autonomous invocation plus the ability to send emails is a potential risk if the skill actually has send capability, but on its own the persistence/privilege settings are normal.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install langchain-email-agent
  3. After installation, invoke the skill by name or use /langchain-email-agent
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of EmailAgent with AI-powered email composition and sending - Integrated human-in-the-loop middleware for approval, editing, or rejection of outgoing emails - Supports configuration of OpenAI model via environment variable (default: gpt-4o-mini) - Allows email composition customization with optional subject, body, and instructions fields - Read-only email operations proceed without interruption or approval
Metadata
Slug langchain-email-agent
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Backend Developer?

Compose and send emails using AI with human approval for sending, allowing edits or rejection before delivery. It is an AI Agent Skill for Claude Code / OpenClaw, with 963 downloads so far.

How do I install Backend Developer?

Run "/install langchain-email-agent" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Backend Developer free?

Yes, Backend Developer is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Backend Developer support?

Backend Developer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Backend Developer?

It is built and maintained by JawadSadiq01 (@jawadsadiq01); the current version is v1.0.0.

💬 Comments