user-1: I read this in another answer on this site:

"and later I regretted" -- remorse is a klesha, an obscuring emotion.

my person thought it's worthy to lift the question if shame and remorse (before, while and after a deed be mind, speech or body) are generally unskillful, therefore to be abandoned, or if certain shame and remorse is actually skillful and very needed, therefore to develop and relay on it.
(Note that remorse/kukkucca, as a hindrance, falls by abounding sense-desire, end of reason for ill-will)
Feel invited to reflect, and possible share even Buddhas view on this mind qualities: An invitation of shameless making merits, so that one might not feel remorse, having not done, later.
[Note: This is a gift of Dhamma, not meant for commercial purpose or other low wordily gain by means of trade and exchange]

user254: I suppose it's part of a skillful response to unskillful action.
Conversely, "shameless" is usually portrayed as undesirable.
The response to skillful virtue is said to be "lack of remorse".

user5000: Sometimes yes, sometimes no. It depends on the circumstances.
Sometimes shame and remorse can guide you to do skillful actions.
Sometimes it can guide you to do unskillful actions.

user8157: The other answer on this site was fine in its essence, spirit, purpose & intent. 
There is the unwholesome 'remorse' or 'guilt' (kukkucca), which is a hindrance; and there is the wholesome 'sense of shame' (hiri), which is a virtue and one of the five gates to Dhamma. 
As the other answer on this site implied shame towards unskilful deeds is for a Buddha a means of learning a lesson and moving beyond guilt & remorse. 
The Lord Buddha said: 

He who having been heedless is heedless no more, illuminates this world like the moon freed from clouds.
He, who by good deeds covers the evil he has done, illuminates this world like the moon freed from clouds.
For it is a cause of growth in the Dhamma & Discipline of the noble
  ones when, seeing a transgression as such, one makes amends in
  accordance with the Dhamma and exercises restraint in the future.


-1: <p>I read this <a href="https://buddhism.stackexchange.com/a/3949/254">in another answer</a> on this site:</p>

<blockquote>
  <p>"and later I regretted" -- remorse is a klesha, an obscuring emotion.</p>
</blockquote>

<p>my person thought it's worthy to lift the question if shame and remorse (before, while and after a deed be mind, speech or body) are generally unskillful, therefore to be abandoned, or if certain shame and remorse is actually skillful and very needed, therefore to develop and relay on it.</p>

<p>(Note that remorse/<em>kukkucca</em>, as a hindrance, falls by abounding sense-desire, end of reason for ill-will)</p>

<p>Feel invited to reflect, and possible share even Buddhas view on this mind qualities: An invitation of shameless making merits, so that one might not feel remorse, having not done, later.</p>

<p><em>[Note: This is a gift of Dhamma, not meant for commercial purpose or other low wordily gain by means of trade and exchange]</em></p>
 254: <p>I suppose it's part of a skillful response to unskillful action.</p>

<p>Conversely, "shameless" is usually portrayed as undesirable.</p>

<p>The response to skillful virtue is said to be "lack of remorse".</p>
 5000: <p>Sometimes yes, sometimes no. It depends on the circumstances.</p>

<p>Sometimes shame and remorse can guide you to do skillful actions.</p>

<p>Sometimes it can guide you to do unskillful actions.</p>
 8157: <p>The <a href="https://buddhism.stackexchange.com/a/3949/254">other answer</a> on this site was fine in its essence, spirit, purpose &amp; intent. </p>

<p>There is the unwholesome 'remorse' or 'guilt' (<a href="https://suttacentral.net/define/kukkucca" rel="nofollow noreferrer"><em>kukkucca</em></a>), which is a hindrance; and there is the wholesome 'sense of shame' (<a href="https://suttacentral.net/define/hiri" rel="nofollow noreferrer"><em>hiri</em>)</a>, which is a virtue and one of the five gates to Dhamma. </p>

<p>As the <a href="https://buddhism.stackexchange.com/a/3949/254">other answer</a> on this site implied shame towards unskilful deeds is for a Buddha a means of learning a lesson and moving beyond guilt &amp; remorse. </p>

<p>The Lord Buddha said: </p>

<blockquote>
  <p>He who having been heedless is heedless no more, illuminates this world like the moon freed from clouds.</p>
  
  <p>He, who by good deeds covers the evil he has done, illuminates this world like the moon freed from clouds.</p>
  
  <p>For it is a cause of growth in the Dhamma &amp; Discipline of the noble
  ones when, seeing a transgression as such, one makes amends in
  accordance with the Dhamma and exercises restraint in the future.</p>
</blockquote>
